Template:Costitem/doc

From CotH-Wiki
Jump to navigationJump to search

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.

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}}: Template:Costitem
{{costitem|1|Alterac VALLEY mark OF Honor}}: Template:Costitem
Look-up through item page
{{costitem|1|Silken Thread}}: Template:Costitem
{{costitem|1|SILKEN Thread}}: Template:Costitem
Look-up through disambiguated item page + apply caption
{{costitem|1|Atiesh, Greatstaff of the Guardian (Mage)|Atiesh, Greatstaff of the Guardian}}: Template:Costitem
Nonsense
{{costitem}}: Template:Costitem
{{costitem|q}}: Template:Costitem
{{costitem|q|}}: Template:Costitem
{{costitem|q|Bad Item}}: Template:Costitem

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.