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

From Team Fortress Wiki
Jump to: navigation, search
m
 
(12 intermediate revisions by 8 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
 
|-
 
| scattergun
 
|-
 
| rocket launcher
 
|-
 
| flamethrower
 
|-
 
| grenade launcher
 
|-
 
| stickybomb launcher
 
|-
 
| minigun
 
|-
 
| shotgun
 
|-
 
| syringe gun
 
|-
 
| sniper rifle
 
|-
 
| revolver
 
|-
 
| pistol
 
|-
 
| medigun
 
|-
 
| submachine gun
 
|-
 
| electro sapper
 
|-
 
| bat
 
|-
 
| shovel
 
|-
 
| fire axe
 
|-
 
| bottle
 
|-
 
| wrench
 
|-
 
| bonesaw
 
|-
 
| kukri
 
|-
 
| knife
 
|-
 
| disguise kit
 
|-
 
| invisibility watch
 
|-
 
| builder
 
|-
 
| destroy
 
|-
 
| fists
 
|-
 
| force-a-nature
 
|-
 
| direct hit
 
|-
 
| backburner
 
|-
 
| natascha
 
|-
 
| blutsauger
 
|-
 
| huntsman
 
|-
 
| ambassador
 
|-
 
| big kill
 
|-
 
| bonk
 
|-
 
| crit-a-cola
 
|-
 
| lugermorph
 
|-
 
| buff banner
 
|-
 
| gunboats
 
|-
 
| flare gun
 
|-
 
| scottish resistance
 
|-
 
| chargin' targe
 
|-
 
| sandvich
 
|-
 
| dalokohs bar
 
|-
 
| kritzkrieg
 
|-
 
| jarate
 
|-
 
| razorback
 
|-
 
| sandman
 
|-
 
| equalizer
 
|-
 
| axtinguisher
 
|-
 
| homewrecker
 
|-
 
| eyelander
 
|-
 
| pain train
 
|-
 
| kgb
 
|-
 
| ubersaw
 
|-
 
| dead ringer
 
|-
 
| cloak and dagger
 
|-
 
| tribalman's shiv
 
|-
 
| scotsman's skullcutter
 
|-
 
| golden wrench
 
|-
 
| southern hospitality
 
|-
 
| frontier justice
 
|-
 
| gunslinger
 
|-
 
| wrangler
 
|-
 
| hadouken
 
|-
 
| oktoberfest
 
|-
 
| skewer
 
|-
 
| home run
 
|-
 
| kamikaze
 
|-
 
| decapitation
 
|-
 
| spinal tap
 
|-
 
| showdown
 
|-
 
| fencing
 
|-
 
| dischord
 
|-
 
| organ grinder
 
|-
 
| toolbox
 
|}<noinclude>[[Category:Template documentation]]</noinclude>
 

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 )