Difference between revisions of "Template:Container"

From Fallen Sword Wiki
Jump to: navigation, search
(New page: <includeonly>__NOTOC__ {| cellpadding="5" width="100%" | width="50%" valign="top" align="left" | == Item == {| | {{ItemBox|{{{image|}}}}} | valign="top" | '''Name:''' {{{name|{{PAGENAME}}}...)
 
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly>__NOTOC__
 
<includeonly>__NOTOC__
{| cellpadding="5" width="100%"
+
__NOEDITSECTION__
| width="50%" valign="top" align="left" |
+
{{#ifeq: {{lc:{{{player-bound|}}}}}| yes | <div style="align-items: left">{{BoundNoTrade}}</div>}}
== Item ==
+
{|cellpadding="5" width="100%"
 +
|width="25%" valign="top" align="left"|
 +
== Item Information ==
 
{|
 
{|
| {{ItemBox|{{{image|}}}}}
+
| valign="top" |{{#if: {{{image|}}}| {{ItemBox|{{ItemPicture|{{{image}}}}}}} | {{ItemBox4|[[File:Icon action crate.png]]}}}}
 
| valign="top" |
 
| valign="top" |
'''Name:''' {{{name|{{PAGENAME}}}}}<br>
+
'''Name:''' {{{name|{{PAGENAME}}}}}<br>
'''Type:''' [[:Category:Containers|Container]]<br>
+
'''Type:''' [[:Category:Containers|Container]]<br>
'''Rarity:''' {{#switch: {{lc:{{{rarity}}}}}
+
'''Level:''' {{{level}}}<br>
| common = {{Common Item}}
+
{{#ifeq: {{lc:{{{donation-reward|}}}}}| yes |'''Reward:''' Game Donation Reward}}{{#ifeq: {{lc:{{{game-gift|}}}}}| yes |'''Reward:''' Game Gift}}<br>
| rare = {{Rare Item}}
+
{{#if: {{{occasion|}}}| '''Occasion:''' {{{occasion}}}}}
| unique = {{Unique Item}}
+
{{#ifeq: {{lc:{{{player-bound|}}}}}| yes |<br> '''Item is:''' {{Bound (Non-Tradable)}}}}
| legendary = {{Legendary Item}}
+
| super elite = {{Super Elite Item}}
+
| crystalline = {{Crystalline Item}}
+
| epic = {{Epic Item}}
+
|
+
}}
+
 
|}
 
|}
=== You can open and choose: ===
+
== Actions ==
{|
+
{{#ifeq: {{lc:{{{player-bound|}}}}}| no |'''&bull;''' {{AHlong|{{{name|{{PAGENAME}}}}}|Search '''Auction House''' for {{PAGENAME}}}}<br>}}'''&bull;''' {{SearchUFSG|{{{name|{{PAGENAME}}}}}|Search the '''UFSG''' for {{PAGENAME}}}}
{{#ifeq: {{{potion-image|No}}} | No |{{!end}}| {{Respotion|image={{{potion-image|}}}|name={{{potion-name|}}}}}}}
+
 
{{#ifeq: {{{potion-image-2|No}}} | No |{{!end}}| {{Respotion|image={{{potion-image-2|}}}|name={{{potion-name-2|}}}}}
+
|width="40%" valign="top" align="left"|
{{#ifeq: {{{potion-image-3|No}}} | No |{{!end}}| {{Respotion|image={{{potion-image-3|}}}|name={{{potion-name-3|}}}}}
+
== Possible Rewards ==
{{#ifeq: {{{potion-image-4|No}}} | No |{{!end}}| {{Respotion|image={{{potion-image-4|}}}|name={{{potion-name-4|}}}}}
+
{{#if: {{{reward-1-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-1-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-1-name}}}]]</div></div><br>}}{{#if: {{{reward-2-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-2-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-2-name}}}]]</div></div><br>}}{{#if: {{{reward-3-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-3-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-3-name}}}]]</div></div><br>}}{{#if: {{{reward-4-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-4-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-4-name}}}]]</div></div><br>}}{{#if: {{{reward-5-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-5-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-5-name}}}]]</div></div><br>}}{{#if: {{{reward-6-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-6-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-6-name}}}]]</div></div><br>}}{{#if: {{{reward-7-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-7-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-7-name}}}]]</div></div><br>}}{{#if: {{{reward-8-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-8-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-8-name}}}]]</div></div><br>}}{{#if: {{{reward-9-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-9-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-9-name}}}]]</div></div><br>}}{{#if: {{{reward-10-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-10-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-10-name}}}]]</div></div><br>}}{{#if: {{{reward-11-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-11-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-11-name}}}]]</div></div><br>}}{{#if: {{{reward-12-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-12-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-12-name}}}]]</div></div><br>}}{{#if: {{{reward-13-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-13-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-13-name}}}]]</div></div><br>}}{{#if: {{{reward-14-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-14-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-14-name}}}]]</div></div><br>}}{{#if: {{{reward-15-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-15-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-15-name}}}]]</div></div><br>}}{{#if: {{{reward-16-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-16-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-16-name}}}]]</div></div><br>}}{{#if: {{{reward-17-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-17-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-17-name}}}]]</div></div><br>}}{{#if: {{{reward-18-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-18-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-18-name}}}]]</div></div><br>}}{{#if: {{{reward-19-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-19-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-19-name}}}]]</div></div><br>}}{{#if: {{{reward-20-name|}}}| <div style="display: flex; align-items: center; ">{{ItemBox5|{{ItemPicture|{{{reward-20-image}}}}}}} <div style="margin-left:1.5%;"> [[{{{reward-20-name}}}]]</div></div><br>}}
{{#ifeq: {{{potion-image-5|No}}} | No |{{!end}}| {{Respotion|image={{{potion-image-5|}}}|name={{{potion-name-5|}}}}}
+
{{!end}}  }}}}}}}}
+
| width="50%" valign="top" align="left" |
+
== Information ==
+
{{#ifeq: {{{drops|No}}} | No || '''Dropped by:'''<br>'''&bull;''' [[{{{drops|}}}]]<br>}}{{#ifeq: {{{drops-2|No}}} | No || '''&bull;''' [[{{{drops-2|}}}]]<br>}}{{#ifeq: {{{drops-3|No}}} | No || '''&bull;''' [[{{{drops-3|}}}]]<br>}}{{#ifeq: {{{drops-4|No}}} | No || '''&bull;''' [[{{{drops-4|}}}]]<br>}}{{#ifeq: {{{drops-5|No}}} | No || '''&bull;''' [[{{{drops-5|}}}]]<br>}}{{#ifeq: {{{drops-6|No}}} | No || '''&bull;''' [[{{{drops-6|}}}]]<br>}}{{#ifeq: {{{drops-7|No}}} | No || '''&bull;''' [[{{{drops-7|}}}]]<br>}}{{#ifeq: {{{drops-8|No}}} | No || '''&bull;''' [[{{{drops-8|}}}]]<br>}}{{#ifeq: {{{drops-9|No}}} | No || '''&bull;''' [[{{{drops-9|}}}]]<br>}}{{#ifeq: {{{drops-10|No}}} | No || '''&bull;''' [[{{{drops-10|}}}]]<br>}}{{#ifeq: {{{shop|No}}} | No || '''Purchased at:'''<br>'''&bull;''' [[{{{shop|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-2|No}}} | No || '''&bull;''' [[{{{shop-2|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-3|No}}} | No || '''&bull;''' [[{{{shop-3|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-4|No}}} | No || '''&bull;''' [[{{{shop-4|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-5|No}}} | No || '''&bull;''' [[{{{shop-5|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-6|No}}} | No || '''&bull;''' [[{{{shop-6|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-7|No}}} | No || '''&bull;''' [[{{{shop-7|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-8|No}}} | No || '''&bull;''' [[{{{shop-8|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-9|No}}} | No || '''&bull;''' [[{{{shop-9|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{shop-10|No}}} | No || '''&bull;''' [[{{{shop-10|}}}]]: {{formatnum:{{{shop-price}}}}}&nbsp;{{gold}}<br>}}{{#ifeq: {{{quest-rewarded|No}}} | No || '''Obtained from quest:'''<br>'''&bull;''' [[{{{quest-rewarded|}}}]]<br>}}{{#ifeq: {{{game-gift|No}}} | No || '''Game Gift from:'''<br>'''&bull;''' {{{game-gift|}}}<br>}}{{#ifeq: {{{won|No}}} | No || '''Won in:'''<br>'''&bull;''' [[{{{won|}}}]]<br>}}{{#ifeq: {{{recipe|No}}} | No || '''Made from Recipe:'''<br>'''&bull;''' [[{{{recipe|}}}]]<br>}}
+
=== Actions ===
+
{{AHlong|{{{name|{{PAGENAME}}}}}|Search Auction House}}
+
 
|}
 
|}
{{#ifeq: {{{player-bound|No}}} | No || {{BoundNoTrade}} }}
+
 
__NOEDITSECTION__
+
[[Category:Containers]]
[[Category:Items]][[Category:Containers]]{{#switch: {{lc:{{{rarity}}}}}
+
| common = [[Category:Common Items]]
+
| 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 56: Line 35:
 
|}
 
|}
 
</center>
 
</center>
This template allows easy adding of conatainer pages. To use, copy the following code to the containers page and fill in the banks. Remove anything that is extra. If a container cannot be completely represented by this template, please use the talk page to ask for this template to be updated.
+
This template allows easy adding of chest pages. To use, copy the following code to the chest page and fill in the blanks.
 
<pre>
 
<pre>
 
{{Container
 
{{Container
 
|image=
 
|image=
|name=
+
|level=
|rarity=
+
|donation-reward=
|potion-image=
+
|potion-name=
+
|potion-image-2=
+
|potion-name-2=
+
|potion-image-3=
+
|potion-name-3=
+
|potion-image-4=
+
|potion-name-4=
+
|potion-image-5=
+
|potion-name-5=
+
|drops=
+
|drops-2=
+
|drops-3=
+
|drops-4=
+
|drops-5=
+
|shop=
+
|shop-price=
+
|shop-2=
+
|shop-3=
+
|shop-4=
+
|shop-5=
+
|quest-rewarded=
+
|quest-gained=
+
|quest-used=
+
 
|game-gift=
 
|game-gift=
|won=
+
|occasion=
 
|player-bound=
 
|player-bound=
 +
|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=
 +
|reward-9-name=
 +
|reward-9-image=
 +
|reward-10-name=
 +
|reward-10-image=
 
}}
 
}}
 
</pre>
 
</pre>
 
There are also parameters for drops-2 through drops-10 and shop-2 through shop-10. Since shop prices remain constant, there are no alternate shop-price parameters.
 
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:58, 23 November 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. To use, copy the following code to the chest page and fill in the blanks.

{{Container
|image=
|level=
|donation-reward=
|game-gift=
|occasion=
|player-bound=
|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=
|reward-9-name=
|reward-9-image=
|reward-10-name=
|reward-10-image=
}}