Difference between revisions of "Template:Resource"

From Fallen Sword Wiki
Jump to: navigation, search
(New page: Resource <noinclude> {{PAGENAME}} </noinclude>)
 
Line 1: Line 1:
[[:Category:Resources|Resource]]
+
<includeonly>__NOTOC__
<noinclude>
+
{| cellpadding="5" width="100%"
 +
| width="50%" valign="top" align="left" |
 +
== Item ==
 +
{|
 +
| {{ItemBox|{{{image|}}}}}
 +
| valign="top" |
 +
'''Name:''' {{{name|{{PAGENAME}}}}}<br>
 +
'''Type:''' [[:Category:Resources|Resource]]<br>
 +
'''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}}
 +
|
 +
}}
 +
|}
 +
=== Extracts Into ===
 +
{|
 +
{{ResExtract|image={{{extract-image|}}}|name={{{extract-name|}}}}}
 +
{{#ifeq: {{{extract-image-2|No}}} | No |{{!end}}| {{ResExtract|image={{{extract-image-2|}}}|name={{{extract-name-2|}}}}}
 +
{{#ifeq: {{{extract-image-3|No}}} | No |{{!end}}| {{ResExtract|image={{{extract-image-3|}}}|name={{{extract-name-3|}}}}}
 +
{{!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: {{{quest-rewarded|No}}} | No || '''Obtained from quest:'''<br>'''&bull;''' [[{{{quest-rewarded|}}}]]<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}}
 +
|}
 +
__NOEDITSECTION__
 +
[[Category:Items]][[Category:Resources]]{{#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>
 +
<center>
 +
{| width="100%" style="border:3px dashed #f00;"
 +
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Do not edit this page!
 +
|-
 +
| align="center" valign="middle" style="font-family:Verdana;font-weight:normal;" |
 +
<small>If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there.</small>
 +
|-
 +
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Editing this page may cause the template to stop working properly for other pages currently using this template.
 +
|}
 +
</center>
 +
This template allows easy adding of resource pages. To use, copy the following code to the resource's page and fill in the banks. Remove anything that is extra. If a resource cannot be completely represented by this template, please use the talk page to ask for this template to be updated.
 +
<pre>
 +
{{Resource
 +
|image=
 +
|name=
 +
|rarity=
 +
|extract-image=
 +
|extract-name=
 +
|extract-image-2=
 +
|extract-name-2=
 +
|extract-image-3=
 +
|extract-name-3=
 +
|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=
 +
|won=
 +
}}
 +
</pre>
 +
 
 +
There are also parameters for drops-2 through drops-10 and shop-2 through shop-5. Since shop prices remain constant, there are no alternate shop-price parameters.
 +
 
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 23:06, 5 October 2008

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 resource pages. To use, copy the following code to the resource's page and fill in the banks. Remove anything that is extra. If a resource cannot be completely represented by this template, please use the talk page to ask for this template to be updated.

{{Resource
|image=
|name=
|rarity=
|extract-image=
|extract-name=
|extract-image-2=
|extract-name-2=
|extract-image-3=
|extract-name-3=
|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=
|won=
}}

There are also parameters for drops-2 through drops-10 and shop-2 through shop-5. Since shop prices remain constant, there are no alternate shop-price parameters.