Difference between revisions of "Template:Icon item/doc"

From Team Fortress Wiki
Jump to: navigation, search
(upd doc so people use |item= syntax less)
Line 3: Line 3:
  
 
=== Examples ===
 
=== Examples ===
* {{tlx|icon item|2=item=Grenade Launcher|3=icon-size=100px}} generates
+
* {{tlx|icon item|Grenade Launcher|100px}} generates
::{{icon item|item=Grenade Launcher|icon-size=100px}}
+
::{{icon item|Grenade Launcher|100px}}
* {{tlx|icon item|2=item=Grenade Launcher|3=icon-size=100px}} when used on any {{code|de}} language page will generate
+
* {{tlx|icon item|Grenade Launcher|100px}} when used on any {{code|de}} language page will generate the below (click the icon):
::{{icon item|item=Grenade Launcher|icon-size=100px|link=Grenade Launcher/de}}
+
::{{icon item|Grenade Launcher|100px|link=Grenade Launcher/de}}
* {{tlx|icon item|2=item=Grenade Launcher|3=icon-size=100px|4=link=Article name here}} generates
+
* {{tlx|icon item|Grenade Launcher|100px|4=link=Article name here}} generates
::{{icon item|item=Grenade Launcher|icon-size=100px|link=Article name here}}
+
::{{icon item|Grenade Launcher|100px|link=Article name here}}
  
 
=== Accepted names ===
 
=== Accepted names ===
Line 14: Line 14:
  
 
The template is spelling and case sensitive. For example:
 
The template is spelling and case sensitive. For example:
* {{xt|{{code|1=item=Killing Gloves of Boxing}}}} is correct and {{!xt|{{code|1=item=K.G.B.}}}} is not
+
* {{xt|{{code|Killing Gloves of Boxing}}}} is correct and {{!xt|{{code|K.G.B.}}}} is not
* {{xt|{{code|1=item=Medi Gun}}}} is correct and {{!xt|{{code|1=item=Medigun}}}} is not
+
* {{xt|{{code|Medi Gun}}}} is correct and {{!xt|{{code|Medigun}}}} is not
* {{xt|{{code|1=item=Batter's Helmet}}}} is correct and {{!xt|{{code|1=item=batter's helmet}}}} is not
+
* {{xt|{{code|Batter's Helmet}}}} is correct and {{!xt|{{code|batter's helmet}}}} is not
  
 
== See also ==
 
== See also ==
 
{{Image insertion templates list}}<noinclude>[[Category:Template documentation]]</noinclude>
 
{{Image insertion templates list}}<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 20:27, 21 March 2011

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 hat, misc, 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 )