Template:ShopItem: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added semantic wiki support as well as ability to disable)
m (Undo revision 47001 by Caraamon (Talk))
Line 1: Line 1:
<includeonly>|[[{{#switch:{{{smw}}}|n=|shop sells::}}{{#switch:{{lc:{{{t|}}}}}|n=|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{ucfirst:{{lc:{{{1}}}}}}}{{#if:{{{name|}}}|{{!}}{{{name}}}|{{!}}{{{1}}}}}]]{{#If:{{{note|}}}|&nbsp;-&nbsp;''{{{note}}}''}}||{{{2|?}}}
<includeonly>|[[{{#switch:{{lc:{{{t|}}}}}|n=|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{ucfirst:{{lc:{{{1}}}}}}}{{#if:{{{name|}}}|{{!}}{{{name}}}|{{!}}{{{1}}}}}]]{{#If:{{{note|}}}|&nbsp;-&nbsp;''{{{note}}}''}}||{{{2|?}}}
|-</includeonly><noinclude>
|-</includeonly><noinclude>
==Usage Documentation:==
==Usage Documentation:==
<pre>
<pre>
{{ShopItem|item|price|t=type|note=notes|smw=semantic wiki support}}
{{ShopItem|item|price|t=type|note=notes}}


OR
OR
Line 10: Line 10:
</pre>
</pre>


The case of the text used will not matter for linking purposes. 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 below 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 declair 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.<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.
Use "smw=n" to disable the addition of <nowiki>[[shop sells::<item>]]</nowiki> for semantic wiki searches.


'''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.

Revision as of 17:22, 15 August 2008

Usage Documentation:

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

OR

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

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 below 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 declair the namespace, (n=none,i=item,w=weapon,s=shield,a=armor)
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.

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.