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

From Team Fortress Wiki
Jump to: navigation, search
(No point leaving that behind.)
 
m
 
(20 intermediate revisions by 10 users not shown)
Line 1: Line 1:
== Description ==
+
== Usage ==
<pre>
+
Generates an image of a weapon or other item and creates a link to it. There are several parameters available for use.
{{Icon weapon|<weapon>|<icon-size>|<link>}}
 
</pre>
 
  
=== Parameters ===
+
=== Examples ===
 +
* {{tlx|icon item|Grenade Launcher|100px}} generates
 +
::{{icon item|Grenade Launcher|100px}}
 +
* {{tlx|icon item|Grenade Launcher|100px}} when used on any {{code|de}} language page will generate the below (click the icon):
 +
::{{icon item|Grenade Launcher|100px|link=Grenade Launcher/de}}
 +
* {{tlx|icon item|Grenade Launcher|100px|4=link=Article name here}} generates
 +
::{{icon item|Grenade Launcher|100px|link=Article name here}}
  
; weapon
+
=== Accepted names ===
: Optional. Name of the weapon. (see below)
+
This template accepts the name of any cosmetic, weapon, taunt etc.
; icon-size
 
: Optional. Modifies the space for the icon. (Default=20px)
 
; link
 
: Optional. Specifies the link URL. (Default=<weapon>)
 
  
==Example==
+
The template is spelling and case sensitive. For example:
 +
* {{xt|{{code|Killing Gloves of Boxing}}}} is correct and {{!xt|{{code|K.G.B.}}}} is not
 +
* {{xt|{{code|Medi Gun}}}} is correct and {{!xt|{{code|Medigun}}}} is not
 +
* {{xt|{{code|Batter's Helmet}}}} is correct and {{!xt|{{code|batter's helmet}}}} is not
  
<pre>{{Icon weapon|weapon=Chargin' Targe|icon-size=80px|link=Rocket launcher}}</pre>
+
== See also ==
 
+
{{Image insertion templates list}}<noinclude>[[Category:Template documentation]]</noinclude>
Results in:-
 
 
 
{{Icon weapon|weapon=Chargin' Targe|icon-size=80px|link=Rocket launcher}}
 
 
 
== Weapon names ==
 
 
 
{| class="wikitable grid"
 
! class="header" | Weapon
 
! class="header" | Produces
 
|-
 
| Scattergun || {{Icon weapon|weapon=Scattergun}}
 
|-
 
| Rocket launcher  || {{Icon weapon|weapon=Rocket launcher}}
 
|-
 
| Flamethrower  || {{Icon weapon|weapon=Flamethrower}}
 
|-
 
| Grenade launcher  || {{Icon weapon|weapon=Grenade launcher}}
 
|-
 
| Sticky bomb launcher || {{Icon weapon|weapon=Sticky bomb launcher}}
 
|-
 
| Minigun || {{Icon weapon|weapon=Minigun}}
 
|-
 
| Shotgun || {{Icon weapon|weapon=Shotgun}}
 
|-
 
| Syringe gun  || {{Icon weapon|weapon=Syringe gun}}
 
|-
 
| Sniper rifle  || {{Icon weapon|weapon=Sniper rifle}}
 
|-
 
| Revolver  || {{Icon weapon|weapon=Revolver}}
 
|-
 
| Pistol  || {{Icon weapon|weapon=Pistol}}
 
|-
 
| Medigun  || {{Icon weapon|weapon=Medigun}}
 
|-
 
| Submachine gun  || {{Icon weapon|weapon=Submachine gun}}
 
|-
 
| Electro sapper  || {{Icon weapon|weapon=Electro sapper}}
 
|-
 
| Bat  || {{Icon weapon|weapon=Bat}}
 
|-
 
| Shovel  || {{Icon weapon|weapon=Shovel}}
 
|-
 
| Fire axe  || {{Icon weapon|weapon=Fire axe}}
 
|-
 
| Bottle  || {{Icon weapon|weapon=Bottle}}
 
|-
 
| Wrench  || {{Icon weapon|weapon=Wrench}}
 
|-
 
| Bonesaw  || {{Icon weapon|weapon=Bonesaw}}
 
|-
 
| Kukri  || {{Icon weapon|weapon=Kukri}}
 
|-
 
| Knife || {{Icon weapon|weapon=Knife}}
 
|-
 
| Disguise kit  || {{Icon weapon|weapon=Disguise kit}}
 
|-
 
| Invisibility watch  || {{Icon weapon|weapon=Invisibility watch}}
 
|-
 
 
 
<!-- Unlockables -->
 
| Force-A-Nature  || {{Icon weapon|weapon=Force-A-Nature}}
 
|-
 
| Direct hit  || {{Icon weapon|weapon=Direct hit}}
 
|-
 
| Backburner  || {{Icon weapon|weapon=Backburner}}
 
|-
 
| Natascha  || {{Icon weapon|weapon=Natascha}}
 
|-
 
| Blutsauger  || {{Icon weapon|weapon=Blutsauger}}
 
|-
 
| Huntsman  || {{Icon weapon|weapon=Huntsman}}
 
|-
 
| Ambassador  || {{Icon weapon|weapon=Ambassador}}
 
|-
 
| Bonk  || {{Icon weapon|weapon=Bonk}}
 
|-
 
| Crit-a-Cola || {{Icon weapon|weapon=Crit-a-Cola}}
 
|-
 
| Buff Banner  || {{Icon weapon|weapon=Buff Banner}}
 
|-
 
| Gunboats  || {{Icon weapon|weapon=Gunboats}}
 
|-
 
| Flare gun  || {{Icon weapon|weapon=Flare gun}}
 
|-
 
| Scottish Resistance  || {{Icon weapon|weapon=Scottish Resistance}}
 
|-
 
| Chargin' Targe  || {{Icon weapon|weapon=Chargin' Targe}}
 
|-
 
| Sandvich  || {{Icon weapon|weapon=Sandvich}}
 
|-
 
| Dalokohs bar  || {{Icon weapon|weapon=Dalokohs bar}}
 
|-
 
| Kritzkrieg  || {{Icon weapon|weapon=Kritzkrieg}}
 
|-
 
| Jarate  || {{Icon weapon|weapon=Jarate}}
 
|-
 
| Razorback  || {{Icon weapon|weapon=Razorback}}
 
|-
 
| Sandman  || {{Icon weapon|weapon=Sandman}}
 
|-
 
| Equalizer  || {{Icon weapon|weapon=Equalizer}}
 
|-
 
| Axtinguisher  || {{Icon weapon|weapon=Axtinguisher}}
 
|-
 
| Homewrecker  || {{Icon weapon|weapon=Homewrecker}}
 
|-
 
| Eyelander  || {{Icon weapon|weapon=Eyelander}}
 
|-
 
| Pain Train || {{Icon weapon|weapon=Pain Train}}
 
|-
 
| KGB  || {{Icon weapon|weapon=KGB}}
 
|-
 
| Ubersaw  || {{Icon weapon|weapon=Ubersaw}}
 
|-
 
| Dead ringer  || {{Icon weapon|weapon=Dead ringer}}
 
|-
 
| Cloak and Dagger  || {{Icon weapon|weapon=Cloak and Dagger}}
 
|-
 
| Scotsman's skullcutter || {{Icon weapon|weapon=Scotsman's skullcutter}}
 
|-
 
| Tribalman's shiv || {{Icon weapon|weapon=Tribalman's shiv}}
 
|}
 

Latest revision as of 16:46, 16 November 2023

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 )