Template:ShopItem: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
 
(50 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>|{{#switch:{{lc:{{{t}}}}}| nl= | &#91;&#91; }}{{#switch:{{lc:{{{t}}}}}| n= | w=Weapon: | a=Armor: | s=Shield: | i | Item: }}{{ucfirst:{{lc:{{{1}}}}}}}{{#if:{{{name|}}}|{{!}}{{{name}}}|{{!}}{{{1}}}}}{{#switch:{{lc:{{{t}}}}} | nl= | &#93;&#93; }}{{#If:{{{note|}}}|&nbsp;-&nbsp;''{{{note}}}''}}||{{{2|?}}}
<includeonly>| {{#switch:{{lc:{{{t}}}}} | nl={{{1}}} | [[source for::{{#switch:{{lc:{{{t}}}}}| n= | w=Weapon: | a=Armor: | s=Shield: | i | Item: }}{{{1}}}{{#if:{{{name|}}}|{{!}}{{{name}}}|{{!}}{{{1}}}}}]]}}{{#If:{{{note|}}}|&nbsp;-&nbsp;''{{{note}}}''}}
| align="right" | {{#if:{{{2|}}}|{{{2}}}|''?''}}||&nbsp;&nbsp;{{#switch:{{{t|}}}|nl=|{{#switch:{{#show:{{#switch:{{lc:{{{t}}}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{{1}}}|?is incomplete}}|true|yes=<font color="red">!!</font>[[Has incomplete items::true| ]]|}}{{#if:{{#show:{{#switch:{{lc:{{{t|}}}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}} {{{1|}}}|?page type is}}||<font color="red">No</font>[[Has incomplete items::true| ]]|{{cat|Shops needing merchandise}}}}{{#switch:{{#show:{{#switch:{{lc:{{{t}}}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{{1}}}|?is outdated}}|true|yes=!![[Has incomplete items::true| ]]|}}{{#switch:{{#show:{{#switch:{{lc:{{{t}}}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{{1}}}|?page type is}}|disambiguation=<font color="red">DG</font>{{cat|Shops needing merchandise}}|}}}}
|-</includeonly><noinclude>
|-</includeonly><noinclude>
==Usage Documentation:==
==Usage Documentation:==
<pre>
<pre>
{{ShopItem|item|price|t=type|note=notes}}
{{ShopItem|t=type|item|note=notes|price}}


OR
OR


{{ShopItem|item page name|t=type|name=name displayed|price|note=notes}}
{{ShopItem|t=type|item page name|name=name displayed|note=notes|price}}
</pre>
</pre>


The case of the text used will not matter. All entries not included in the notes section will be reduced to lower case and the first letter capitalized.<br/>
The case of the text used will not matter. All entries not included in the notes section will be reduced to lower case and the first letter capitalized.<br />
The notes will display in italics below the main entry.<br/>
The notes will display in italics to the right of the main entry.<br />
Use the second one if you wish the display name to be different from the page it links to.<br/>
Use the second one if you wish the display name to be different from the page it links to.<br />
Use the type field to declair the namespace, (n=none,i=item,w=weapon,s=shield,a=armor)<br/>
Use the type field to declare the namespace, (n=none,i=item,w=weapon,s=shield,a=armor)<br />
The type field also supports several tags that default to item, but may be used in the future: h=housing, j=jewelry, and c=clothing, f=food or drink.


If the link needs to be disabled, add "t=nl".
If the link needs to be disabled, add "t=nl".


'''NOTE:''' You do not need to input the coin type. Also, do not include the article (a, an, some) in the item; it will cause issues with linking.
'''NOTE:''' You do not need to input the coin type. Also, do not include the article (a, an, some) in the item; it will cause issues with linking.

[[Category:Shop Templates|{{PAGENAME}}]]
==Warnings==
[[Category:Templates|{{PAGENAME}}]]</noinclude>
The final column will display a number of error codes:
:<font color="red">!!</font> links to a page that is incomplete.
:<font color="red">No</font> indicates a redlink (used for successful population of the ''Fest'' template).
:!! links to a page that is outdated.
:<font color="red">DG</font> links to a disambiguation page.
{{cat|Shop templates,Templates}}</noinclude>

Latest revision as of 15:31, 13 August 2019

Usage Documentation:

{{ShopItem|t=type|item|note=notes|price}}

OR

{{ShopItem|t=type|item page name|name=name displayed|note=notes|price}}

The case of the text used will not matter. All entries not included in the notes section will be reduced to lower case and the first letter capitalized.
The notes will display in italics to the right of the main entry.
Use the second one if you wish the display name to be different from the page it links to.
Use the type field to declare the namespace, (n=none,i=item,w=weapon,s=shield,a=armor)

If the link needs to be disabled, add "t=nl".

NOTE: You do not need to input the coin type. Also, do not include the article (a, an, some) in the item; it will cause issues with linking.

Warnings

The final column will display a number of error codes:

!! links to a page that is incomplete.
No indicates a redlink (used for successful population of the Fest template).
!! links to a page that is outdated.
DG links to a disambiguation page.