Difference between revisions of "Template:Icon item"

From Team Fortress Wiki
Jump to: navigation, search
(removed line break)
(add title parameter that passes text to the <a> title attribute (allowing hoverover text to be defined instead of just using the title of the linked page).)
 
Line 1: Line 1:
<includeonly>[[File:Item icon {{{1|{{{item|{{{weapon|Unknown}}}}}}}}}.png|link={{{link|{{{1|{{{item|{{{weapon|error}}}}}}}}}{{if lang}}}}}|{{{icon-size|{{{size|{{{2|48px}}}}}}}}}|alt={{{alt|{{{1|{{{item|}}}}}}}}}|]]</includeonly><noinclude>
+
<includeonly>[[File:Item icon {{{1|{{{item|{{{weapon|Unknown}}}}}}}}}.png|link={{{link|{{{1|{{{item|{{{weapon|error}}}}}}}}}{{if lang}}}}}|{{{icon-size|{{{size|{{{2|48px}}}}}}}}}|{{{alt|{{{title|{{{1|{{{item|}}}}}}}}}}}}]]</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>

Latest revision as of 03:24, 16 October 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 )