Difference between revisions of "Template:Chest"

From Fallen Sword Wiki
Jump to: navigation, search
(New page: <includeonly>__NOTOC__ {|cellpadding="5" width="100%" |width="50%" valign="top" align="left"| == Item == {| | valign="top" |{{ItemBox4|{{{image|}}}}} | valign="top" | '''Name:''' {{{name|{...)
 
 
(178 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
<includeonly>__NOTOC__
 
<includeonly>__NOTOC__
 +
__NOEDITSECTION__
 
{|cellpadding="5" width="100%"
 
{|cellpadding="5" width="100%"
|width="50%" valign="top" align="left"|
+
|width="15%" valign="top" align="left"|
== Item ==
+
== Information ==
 
{|
 
{|
| valign="top" |{{ItemBox4|{{{image|}}}}}
+
<!-- Once chest images have been uploaded consider adding the image to the chest information section -->
 +
<!-- | {{ItemBox|{{{image|}}}}} -->
 +
<!-- The action icon will do for now. -->
 +
| valign="top" |{{ItemBox4|https://cdn2.fallensword.com/ui/world/icon_action_crate.png}}
 
| valign="top" |
 
| valign="top" |
'''Name:''' {{{name|{{PAGENAME}}}}}<br>
+
'''Name:''' {{{name|{{PAGENAME}}}}}<br>
'''Type:''' [[:Category:Components|Component]]<br>
+
'''Type:''' [[:Category:Chests|Chest]]
'''Rarity:''' {{#switch: {{lc:{{{rarity}}}}}
+
| common = {{Common Item}}
+
| rare = {{Rare Item}}
+
| unique = {{Unique Item}}
+
| legendary = {{Legendary Item}}
+
| super elite = {{Super Elite Item}}
+
| crystalline = {{Crystalline Item}}
+
| epic = {{Epic Item}}
+
|
+
}}
+
 
|}
 
|}
|width="50%" valign="top" align="left"|
+
|width="20%" valign="top" align="center"|
== Information ==
+
== Opens With ==
'''Extracted From:'''<br>'''&bull;''' [[{{{resource|}}}]]
+
{{ItemBox5|{{#switch: {{lc:{{{key}}}}}
 +
| crystal || crystal key= {{ItemPicture|8548}}
 +
| gold || gold key= {{ItemPicture|8547}}
 +
| silver || silver key= {{ItemPicture|8546}}
 +
| bronze || bronze key= {{ItemPicture|8545}}
 +
|
 +
}}}}{{#switch: {{lc:{{{key}}}}}
 +
| crystal || crystal key= [[Crystal Key]]
 +
| gold || gold key= [[Gold Key]]
 +
| silver || silver key= [[Silver Key]]
 +
| bronze || bronze key= [[Bronze Key]]
 +
|
 +
}}
  
=== Recipes ===
+
|width="65%" valign="top" align="left"|
{{#ifeq: {{{recipe|No}}} | No || '''&bull;''' [[{{{recipe|}}}]] ({{{recipe-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-2|No}}} | No || '''&bull;''' [[{{{recipe-2|}}}]] ({{{recipe-2-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-3|No}}} | No || '''&bull;''' [[{{{recipe-3|}}}]] ({{{recipe-3-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-4|No}}} | No || '''&bull;''' [[{{{recipe-4|}}}]] ({{{recipe-4-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-5|No}}} | No || '''&bull;''' [[{{{recipe-5|}}}]] ({{{recipe-5-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-6|No}}} | No || '''&bull;''' [[{{{recipe-6|}}}]] ({{{recipe-6-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-7|No}}} | No || '''&bull;''' [[{{{recipe-7|}}}]] ({{{recipe-7-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-8|No}}} | No || '''&bull;''' [[{{{recipe-8|}}}]] ({{{recipe-8-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-9|No}}} | No || '''&bull;''' [[{{{recipe-9|}}}]] ({{{recipe-9-amt|0}}}x)<br>}}{{#ifeq: {{{recipe-10|No}}} | No || '''&bull;''' [[{{{recipe-10|}}}]] ({{{recipe-10-amt|0}}}x)<br>}}
+
== 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-2-name|}}}| {{ItemBox5|{{{reward-2-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-2-name}}}]]</div></div><br>
 +
<div style="display: flex; align-items: center; ">{{#if: {{{reward-3-name|}}}| {{ItemBox5|{{{reward-3-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-3-name}}}]]</div></div><br>
 +
<div style="display: flex; align-items: center; ">{{#if: {{{reward-4-name|}}}| {{ItemBox5|{{{reward-4-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-4-name}}}]]</div></div><br>
 +
<div style="display: flex; align-items: center; ">{{#if: {{{reward-5-name|}}}| {{ItemBox5|{{{reward-5-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-5-name}}}]]</div></div><br>
 +
<div style="display: flex; align-items: center; ">{{#if: {{{reward-6-name|}}}| {{ItemBox5|{{{reward-6-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-6-name}}}]]</div></div><br>
 +
<div style="display: flex; align-items: center; ">{{#if: {{{reward-7-name|}}}| {{ItemBox5|{{{reward-7-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-7-name}}}]]</div></div><br>
 +
<div style="display: flex; align-items: center; ">{{#if: {{{reward-8-name|}}}| {{ItemBox5|{{{reward-8-image}}}}} <div style="margin-left:1.5%;"> [[{{{reward-8-name}}]]</div></div>}}}}}}}}}}}}}}}}
 
|}
 
|}
__NOEDITSECTION__
+
 
[[Category:Items]][[Category:Components]]{{#switch: {{lc:{{{rarity}}}}}
+
 
| common = [[Category:Common Items]]
+
[[Category:Chests]]
| rare = [[Category:Rare Items]]
+
| unique = [[Category:Unique Items]]
+
| legendary = [[Category:Legendary Items]]
+
| super elite = [[Category:Super Elite Items]]
+
| crystalline = [[Category:Crystalline Items]]
+
| epic = [[Category:Epic Items]]
+
|
+
}}
+
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
<center>
 
<center>
Line 48: Line 54:
 
|}
 
|}
 
</center>
 
</center>
This template allows for chests. To use, copy the following code to the chest page and fill in the blanks.
+
<br>This template allows easy adding of chest pages. [[:Category:Chests|Chests]] differ from [[:Category:Containers|Containers]] in that chests require a key to be opened.<br><br>
 +
To use this template, copy the following code to the chest page and fill in the blanks.
 
<pre>
 
<pre>
 
{{Chest
 
{{Chest
|image=
+
|key=
|description=
+
|reward-1-name=
|name=
+
|reward-1-image=
|drop=
+
|reward-2-name=
|drop-2=
+
|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=
 
}}
 
}}
 
</pre>
 
</pre>

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=
}}