Wikia

WoWWiki

Changes: Template:Costitem

Edit this page

Back to page

(doc)
m (prefer display name to page name as alt text)
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
|n=INV_Misc_QuestionMark.png
 
|n=INV_Misc_QuestionMark.png
 
|warsong gulch mark of honor|alterac valley mark of honor|arathi basin mark of honor|eye of the storm mark of honor|mark of honor hold|mark of thrallmar|halaa battle token|halaa research token|={{lc:{{{2|}}}}}.png
 
|warsong gulch mark of honor|alterac valley mark of honor|arathi basin mark of honor|eye of the storm mark of honor|mark of honor hold|mark of thrallmar|halaa battle token|halaa research token|={{lc:{{{2|}}}}}.png
|#default={{:{{{2|}}}|mode=arg|arg=icon|tpl=costitem/arg}}.png}}|16px|link={{{3|{{{2|Template:costitem}}}}}}]]</span>}}</onlyinclude>
+
|#default={{:{{{2|}}}|mode=arg|arg=icon|tpl=costitem/arg}}.png}}|{{{3|{{{2|}}}}}}|16px|link={{{3|{{{2|Template:costitem}}}}}}]]</span>}}</onlyinclude>

Revision as of 23:02, January 14, 2010

A single-item implementation of {{cost}}, linking icon to item page. Note that this is designed only for actual items. For gold/honor points/achievement points/arena points, use cost.

Note
If the item page for the currency item you want to use doesn't exist, please use {{cost}} instead like this:
{{cost|<cost=>|<name=item_name>|<icon=icon_image>}}
Use |icon=inv_misc_questionmark.png if you don't know the icon image


Syntax

{{costitem|<Numeric count>|<Item page name>|<Display name/desired link>}}

The third parameter is optional and should only be supplied if it differs from the second.

Examples

Hardcoded item name/icon resolution
{{costitem|1|Alterac Valley Mark of Honor}}: 1 Inv jewelry necklace 21
{{costitem|1|Alterac VALLEY mark OF Honor}}: 1 [[File:Alterac VALLEY mark OF Honor.png|Alterac VALLEY mark OF Honor|16px|link=Alterac VALLEY mark OF Honor]]
Look-up through item page
{{costitem|1|Silken Thread}}: 1 Inv fabric silk 02
{{costitem|1|SILKEN Thread}}: 1 [[File:SILKEN Thread.png|SILKEN Thread|16px|link=SILKEN Thread]]
Look-up through disambiguated item page + apply caption
{{costitem|1|Atiesh, Greatstaff of the Guardian (mage)|Atiesh, Greatstaff of the Guardian}}: 1 Inv staff medivh
Nonsense
{{costitem}}: 1 Inv misc questionmark
{{costitem|q}}: q Inv misc questionmark
{{costitem|q|}}: q Inv misc questionmark
{{costitem|q|Bad Item}}: q [[File:Bad Item.png|Bad Item|16px|link=Bad Item]]

Conclusion: if not using an item that has been hard-coded into the template, use proper capitalization and make sure the item page implements {{tooltip}} correctly.

If item page doesn't exist
{{cost|cost=1|icon=inv_misc_questionmark.png|name=Missing item}}: 1 Inv misc questionmark

See also

1 Inv misc questionmark

Around Wikia's network

Random Wiki