Difference between revisions of "Template:Icon item"

From Team Fortress Wiki
Jump to: navigation, search
m (Reverted edits by Pilk (Talk) to last revision by Moussekateer)
(add border and tracking key to icon item calls that don't use a correctly capitalized item name)
Line 511: Line 511:
 
  | #default = <!-- NULL -->
 
  | #default = <!-- NULL -->
  
  }}|{{{icon-size|{{{size|{{{2|48px}}}}}}}}}|alt={{#if:{{{alt|}}}|{{{alt|}}}|{{{1|{{{item|}}}}}}}}]]<!--
+
  }}|{{{icon-size|{{{size|{{{2|48px}}}}}}}}}|alt={{#if:{{{alt|}}}|{{{alt|}}}|{{{1|{{{item|}}}}}}}}|{{If official en name|item-name={{{weapon|{{{item|{{{1|}}}}}}}}}|true={{ns:0}}|false=border}}]]<!--
-->{{ {{#ifeq:{{{weapon|{{{item|{{{1|}}}}}}}}}|{{lc:{{{weapon|{{{item|{{{1|}}}}}}}}}}}|tracking key 01|ns:0}} }}</includeonly><noinclude>
+
-->{{If official en name|item-name={{{weapon|{{{item|{{{1|}}}}}}}}}|true={{ns:0}}|false={{Tracking key 03}}}}<!--
 +
--></includeonly><noinclude>
 
{{Template doc}}
 
{{Template doc}}
 
[[Category:Formatting templates|Icon item]]
 
[[Category:Formatting templates|Icon item]]
 
[[Category:Image insertion templates|Icon item]]
 
[[Category:Image insertion templates|Icon item]]
 
</noinclude>
 
</noinclude>

Revision as of 01:02, 20 March 2011

Template documentation [view] [edit] [history] [purge]

Usage

Generates an image of a weapon or other item and creates a link to it. There are several parameters available for use.

Examples

  • {{icon item|Grenade Launcher|100px}} generates
Grenade Launcher
  • {{icon item|Grenade Launcher|100px}} when used on any de language page will generate the below (click the icon):
Grenade Launcher
  • {{icon item|Grenade Launcher|100px|link=Article name here}} generates
Grenade Launcher

Accepted names

This template accepts the name of any cosmetic, weapon, taunt etc.

The template is spelling and case sensitive. For example:

  • Killing Gloves of Boxing is correct and K.G.B. is not
  • Medi Gun is correct and Medigun is not
  • Batter's Helmet is correct and batter's helmet is not

See also

Image insertion templatesview  edit )