Difference between revisions of "Template:Chest"

From Fallen Sword Wiki
Jump to: navigation, search
 
(69 intermediate revisions by one user not shown)
Line 13: Line 13:
 
'''Type:'''  [[:Category:Chests|Chest]]
 
'''Type:'''  [[:Category:Chests|Chest]]
 
|}
 
|}
<br>
+
|width="20%" valign="top" align="center"|
 
== Opens With ==
 
== Opens With ==
 
{{ItemBox5|{{#switch: {{lc:{{{key}}}}}
 
{{ItemBox5|{{#switch: {{lc:{{{key}}}}}
Line 28: Line 28:
 
|
 
|
 
}}
 
}}
<br>
+
 
|width="60%" valign="top" align="left"|
+
|width="65%" valign="top" align="left"|
 
== Possible Rewards ==
 
== Possible Rewards ==
 
<div style="display: flex; align-items: center; ">{{#if: {{{reward-1-name|}}}| {{ItemBox5|{{{reward-1-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-1-name}}}]]</div></div><br>
 
<div style="display: flex; align-items: center; ">{{#if: {{{reward-1-name|}}}| {{ItemBox5|{{{reward-1-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-1-name}}}]]</div></div><br>
Line 77: Line 77:
 
}}
 
}}
 
</pre>
 
</pre>
 
Produces:
 
<br>
 
{{Chest
 
|key=Crystal Key
 
|reward-1-name=Zipporino the Crazys Amulet
 
|reward-1-image={{ItemPicture2|8909}}
 
|reward-2-name=Draft of the Revenant Hunter
 
|reward-2-image={{ItemPicture2|13878}}
 
|reward-3-name=Crystal Frag Stash
 
|reward-3-image={{ItemPicture2|13894}}
 
|reward-4-name=Super Elite Frag Stash
 
|reward-4-image={{ItemPicture2|13895}}
 
}}
 
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:44, 30 January 2023

Do not edit this page!

If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there.

Editing this page may cause the template to stop working properly for other pages currently using this template.


This template allows easy adding of chest pages. Chests differ from Containers in that chests require a key to be opened.

To use this template, copy the following code to the chest page and fill in the blanks.

{{Chest
|key=
|reward-1-name=
|reward-1-image=
|reward-2-name=
|reward-2-image=
|reward-3-name=
|reward-3-image=
|reward-4-name=
|reward-4-image=
|reward-5-name=
|reward-5-image=
|reward-6-name=
|reward-6-image=
|reward-7-name=
|reward-7-image=
|reward-8-name=
|reward-8-image=
}}