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

From Team Fortress Wiki
Jump to: navigation, search
m
 
(18 intermediate revisions by 9 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}}
 
|-
 
| stickybomb launcher || {{Icon weapon|weapon=stickybomb 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}}
 
|-
 
| builder || {{Icon weapon|weapon=builder}}
 
|-
 
| destroy || {{Icon weapon|weapon=destroy}}
 
|-
 
| fists || {{Icon weapon|weapon=fists}}
 
|-
 
| 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}}
 
|-
 
| big kill || {{Icon weapon|weapon=big kill}}
 
|-
 
| bonk || {{Icon weapon|weapon=bonk}}
 
|-
 
| crit-a-cola || {{Icon weapon|weapon=crit-a-cola}}
 
|-
 
| lugermorph || {{Icon weapon|weapon=lugermorph}}
 
|-
 
| 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}}
 
|-
 
| tribalman's shiv || {{Icon weapon|weapon=tribalman's shiv}}
 
|-
 
| scotsman's skullcutter || {{Icon weapon|weapon=scotsman's skullcutter}}
 
|-
 
| golden wrench || {{Icon weapon|weapon=golden wrench}}
 
|-
 
| southern hospitality || {{Icon weapon|weapon=southern hospitality}}
 
|-
 
| hadouken || {{Icon weapon|weapon=hadouken}}
 
|-
 
| oktoberfest || {{Icon weapon|weapon=oktoberfest}}
 
|-
 
| skewer || {{Icon weapon|weapon=skewer}}
 
|-
 
| home run || {{Icon weapon|weapon=home run}}
 
|-
 
| kamikaze || {{Icon weapon|weapon=kamikaze}}
 
|-
 
| decapitation || {{Icon weapon|weapon=decapitation}}
 
|-
 
| spinal tap || {{Icon weapon|weapon=spinal tap}}
 
|-
 
| showdown || {{Icon weapon|weapon=showdown}}
 
|-
 
| fencing || {{Icon weapon|weapon=fencing}}
 
|}
 

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 )