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

From Team Fortress Wiki
Jump to: navigation, search
m (Changed to dev name rather than user's name)
 
(41 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
<includeonly>{{Complex template|user=Darkid}}</includeonly>
 
This template is used to display item stats similar to how they appear in-game.
 
This template is used to display item stats similar to how they appear in-game.
  
 
== Parameters ==
 
== Parameters ==
 
{| class="wikitable grid"
 
{| class="wikitable grid"
! width="15%" class="header" | Parameter
+
! width="10%" class="header" | Parameter
! width="35%" class="header" | Example
+
! width="10%" class="header" | Example
! class="header" | Description
+
! width="20%" class="header" | Description
 +
! width="25%" class="header" | Code Example
 +
! class="header" | Result
 +
|-
 +
! style="text-align:left;" class="header" colspan="5" | ''Basics''
 
|-
 
|-
 
| {{code|item-name}}
 
| {{code|item-name}}
| {{code|Batter's Helmet}}
+
| {{code|Condor Cap}}
| Proper item name in English (e.g. {{xt|Batter's Helmet}} instead of {{!xt|Casque de Batteur}}). The item name will be automatically translated on language subpages.
+
| Proper item name in English (Condor Cap instead of Bonnet de condor, for example). Automatically grabs the item's icon. The item name is automatically translated on any language subpages.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Condor Cap
 +
| item-kind = Hat
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Condor Cap
 +
| item-kind = Hat
 +
}}
 
|-
 
|-
 
| {{code|custom-name}}
 
| {{code|custom-name}}
 
| {{code|Spam Hammer}}
 
| {{code|Spam Hammer}}
| Adds a custom name with quotation marks. Still needs {{code|item-name}} to produce the correct image.
+
| Adds a [[Name Tag|custom name]] with quotation marks. Still needs {{code|item-name}} to produce the correct image.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Homewrecker
 +
| custom-name = Spam Hammer
 +
| item-kind = Sledgehammer
 +
| item-level = 5
 +
| att-1-positive = +100% damage vs buildings
 +
| att-2-positive = Damage removes Sappers
 +
| att-3-negative = -25% damage vs players
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Homewrecker
 +
| custom-name = Spam Hammer
 +
| item-kind = Sledgehammer
 +
| item-level = 5
 +
| att-1-positive = +100% damage vs buildings
 +
| att-2-positive = Damage removes Sappers
 +
| att-3-negative = -25% damage vs players
 +
}}
 
|-
 
|-
 
| {{code|no-custom-name-quotes}}
 
| {{code|no-custom-name-quotes}}
 
| {{code|yes}}
 
| {{code|yes}}
| Removes quotation marks from custom names if the {{code|custom-name}} field is used.
+
| Removes quotation marks from custom names if the {{code|custom-name}} field is used. Used in conjunction with {{code|custom-name}}.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Texas Slim's Dome Shine
 +
| custom-name = Cream Gravy
 +
| no-custom-name-quotes = yes
 +
| item-kind = Hat
 +
| item-description = Sometimes you just need a little less hat.
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Texas Slim's Dome Shine
 +
| custom-name = Cream Gravy
 +
| no-custom-name-quotes = yes
 +
| item-kind = Hat
 +
| item-description = Sometimes you just need a little less hat.
 +
}}
 
|-
 
|-
 
| {{code|custom-icon}}
 
| {{code|custom-icon}}
| {{code|File:User Username my item icon.png}}
+
| {{code|BLU Bombcart.png}}
 
| Adds a custom icon for users' own purposes. This parameter is independent from {{code|item-name}} parameter.
 
| Adds a custom icon for users' own purposes. This parameter is independent from {{code|item-name}} parameter.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Mr. Quackers
 +
| custom-icon = BLU Bombcart.png
 +
| item-kind = Mask
 +
| grade = Assassin
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Mr. Quackers
 +
| custom-icon = BLU Bombcart.png
 +
| item-kind = Mask
 +
| grade = Assassin
 +
}}
 +
|-
 +
| {{code|item-description}}
 +
| {{code|This hat is the greatest.}}
 +
| For items that have an in-game description. Will not display if a {{code|custom-description}} is set. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Yule Hog
 +
| item-kind = Hat
 +
| grade = Mercenary
 +
| item-description = This hat is the greatest.
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Yule Hog
 +
| item-kind = Hat
 +
| grade = Mercenary
 +
| item-description = This hat is the greatest.
 +
}}
 
|-
 
|-
| {{code|quality}}
+
| {{code|custom-description}}
| {{code|normal}}
+
| {{code|This hat is also the greatest.}}
| Defaults to "{{code|unique}}" (the standard item yellow). See [[Item quality]] for a list of accepted values.
+
| For items that have a custom in-game description (from a [[Description Tag]]). Displays like a normal description but has quotation marks surrounding it. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Napper's Respite
 +
| item-kind = Hat
 +
| custom-description = This hat is also the greatest.
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Napper's Respite
 +
| item-kind = Hat
 +
| custom-description = This hat is also the greatest.
 +
}}
 
|-
 
|-
 
| {{code|prefix}}
 
| {{code|prefix}}
| {{code|none}}<br />{{code|The Best}}
+
| {{code|none}}<br>{{code|The Best}}
| Set to "none" to hide the "Vintage" or "Community", etc, prefix but keeping the colour. Can also use a custom value, e.g. "{{code|1=prefix = The Best}}" will generate "The Best Flare Gun".
+
| Set to "none" to hide any prefix added by {{code|quality}}, while keeping the quality's color. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Flare Gun
 +
| prefix = The Best
 +
| item-kind = Flare Gun
 +
| item-level = 10
 +
| item-description = This weapon will reload when not active
 +
| att-1-positive = 100% critical hit vs burning players
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Flare Gun
 +
| prefix = The Best
 +
| item-kind = Flare Gun
 +
| item-level = 10
 +
| item-description = This weapon will reload when not active
 +
| att-1-positive = 100% critical hit vs burning players
 +
}}
 
|-
 
|-
 
| {{code|suffix}}
 
| {{code|suffix}}
| {{code|none}}<br />{{code|The Best}}
+
| {{code|none}}<br>{{code|(Slight Return)}}
| Same as 'prefix' for non-en pages. Can also use a custom value, e.g. "{{code|1=suffix = The Best}}" will generate "Flare Gun The Best".
+
| Similar to {{code|prefix}}, mainly for use in non-en pages. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Flame Thrower
 +
| suffix = (Slight Return)
 +
| quality = normal
 +
| item-kind  = Flame Thrower
 +
| item-level = 1
 +
| att-1-positive = Extinguishing teammates restores 20 health
 +
| item-description = Afterburn reduces Medi Gun healing and resist shield effects.<br>Alt-Fire: Release a blast of air that pushes enemies and projectiles and extinguish teammates that are on fire.
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Flame Thrower
 +
| suffix = (Slight Return)
 +
| quality = normal
 +
| item-kind  = Flame Thrower
 +
| item-level = 1
 +
| att-1-positive = Extinguishing teammates restores 20 health
 +
| item-description = Afterburn reduces Medi Gun healing and resist shield effects.<br>Alt-Fire: Release a blast of air that pushes enemies and projectiles and extinguish teammates that are on fire.
 +
}}
 +
|-
 +
| {{code|item-level}}
 +
| {{code|68}}<br>| {{code|none}}
 +
| The item's level. Set to "none" to hide the level. Defaults to "<span class="att_level">Level 1 - 100</span>". Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Antarctic Researcher
 +
| prefix = The
 +
| item-kind = Coat
 +
| item-level = 68
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Antarctic Researcher
 +
| prefix = The
 +
| item-kind = Coat
 +
| item-level = 68
 +
}}
 
|-
 
|-
| {{code|paint-color}}
+
| {{code|item-kind}}
| {{code|7C6C57}}
+
| {{code|Hat}}
| Adds the colored paint 'splat' specified to the top right of the item icon.
+
| Item kind. This string is not automatically translated.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Lucky Cat Hat
 +
| grade = Elite
 +
| item-kind = Absolute Meower
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Lucky Cat Hat
 +
| grade = Elite
 +
| item-kind = Absolute Meower
 +
}}
 +
|-
 +
! style="text-align:left;" class="header" colspan="5" | ''Quality''
 +
|-
 +
| {{code|quality}}
 +
| {{code|genuine}}
 +
| Defaults to "{{code|unique}}" (the standard item yellow). See [[Item quality]] for a list of accepted values.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Horseless Headless Horsemann's Headtaker
 +
| quality = genuine
 +
| item-kind = Axe
 +
| item-description = Cursed by dark spirits similar to those that dwell within the Eyelander.
 +
| item-flags = Not Tradable or Marketable
 +
| att-1-neutral = This weapon has a large melee range and deploys and holsters slower
 +
| att-2-negative = No random critical hits
 +
| att-3-negative = -25 max health on wearer
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Horseless Headless Horsemann's Headtaker
 +
| quality = genuine
 +
| item-kind = Axe
 +
| item-description = Cursed by dark spirits similar to those that dwell within the Eyelander.
 +
| item-flags = Not Tradable or Marketable
 +
| att-1-neutral = This weapon has a large melee range and deploys and holsters slower
 +
| att-2-negative = No random critical hits
 +
| att-3-negative = -25 max health on wearer
 +
}}
 
|-
 
|-
 
| {{code|unusual-effect}}
 
| {{code|unusual-effect}}
| {{code|Bubbling}}
+
| {{code|Stormy Storm}}
| Adds the Particle Effect icon to the top right of the item's icon. Also adds the "Unusual Effect:" line.
+
| Adds the specified Unusual effect to the item's description. Also adds an Unusual at the top right of the item icon, indicating the item has an Unusual effect. See [[Unusual]] for a list of accepted values.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Rimmed Raincatcher
 +
| unusual-effect = Stormy Storm
 +
| quality = unusual
 +
| item-kind = Hat
 +
| item-description = Because there's no alliteration like alliteration with an 'ARR!'
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Rimmed Raincatcher
 +
| unusual-effect = Stormy Storm
 +
| quality = unusual
 +
| item-kind = Hat
 +
| item-description = Because there's no alliteration like alliteration with an 'ARR!'
 +
}}
 
|-
 
|-
| {{code|strange-icon}}
+
| {{code|rankson}}
| {{code|yes}}
+
| {{code|Buildings Sapped}}
| Adds the Strange/StatTrack icon to the top right of the item's icon.
+
| Primary stat being tracked for a Strange item.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Shovel
 +
| strange-icon = yes
 +
| rankson = Buildings Sapped
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Shovel
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Shovel
 +
| strange-icon = yes
 +
| rankson = Buildings Sapped
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Shovel
 +
}}
 
|-
 
|-
| {{code|decal-icon}}
+
| {{code|killcount}}
| {{code|yes}}
+
| {{code|7613}}
| Adds this [[:File:Paint_Splat_Decal.png|icon]] to the top right of the item's icon. Only used on the [[Items]] page.
+
| Number of points for the primary stat being tracked. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Big Elfin Deal
 +
| strange-icon = yes
 +
| rankson = Points Scored
 +
| killcount = 7613
 +
| quality = strange
 +
| item-kind  = Hat
 +
| item-description = You ask me if I wanna be a dentist one more time, pal, I'm gonna kick your teeth in.
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Big Elfin Deal
 +
| strange-icon = yes
 +
| rankson = Points Scored
 +
| killcount = 7613
 +
| quality = strange
 +
| item-kind  = Hat
 +
| item-description = You ask me if I wanna be a dentist one more time, pal, I'm gonna kick your teeth in.
 +
}}
 
|-
 
|-
! style="text-align:left;" class="header" colspan="3" | ''Attributes''
+
| {{code|rankson2}}
 +
| {{code|Kill assists}}
 +
| For [[Strange Part]]s or the secondary stat being tracked. {{code|rankson3}} and {{code|rankson4}} work similarly.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Medi Gun
 +
| strange-icon = yes
 +
| rankson = Ubers
 +
| rankson2 = Kill Assists
 +
| killcount = 0
 +
| killcount2 = 0
 +
| quality = strange
 +
| item-kind  = Medi Gun
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Medi Gun
 +
| strange-icon = yes
 +
| rankson = Ubers
 +
| rankson2 = Kill Assists
 +
| killcount = 0
 +
| killcount2 = 0
 +
| quality = strange
 +
| item-kind  = Medi Gun
 +
}}
 
|-
 
|-
| {{code|item-level}}
+
| {{code|killcount2}}
| {{code|Level 50 Hat}}
+
| {{code|50}}
| Item level. Defaults to "<span class="att_level">Level 0-100</span>".
+
| Number of points for Strange Parts or the secondary stat being tracked. {{code|killcount3}} and {{code|killcount4}} work similarly. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Sniper Rifle
 +
| strange-icon = yes
 +
| rankson = Kills
 +
| rankson2 = Damage Dealt
 +
| killcount = 0
 +
| killcount2 = 50
 +
| quality = strange
 +
| item-kind  = Sniper Rifle
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Sniper Rifle
 +
| strange-icon = yes
 +
| rankson = Kills
 +
| rankson2 = Damage Dealt
 +
| killcount = 0
 +
| killcount2 = 50
 +
| quality = strange
 +
| item-kind  = Sniper Rifle
 +
}}
 
|-
 
|-
| {{code|item-kind}}
+
| {{code|filter}}
| {{code|Hat}}
+
| {{code|Coldfront}}
| Item kind. If specified, {{code|item-level}} should be only the level, the word "Level" will be added by the template.
+
| Adds the appropriate [[Strange Filter]] prefix/suffix to the weapon. See [[List of maps]] for a list of accepted values.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Shotgun
 +
| filter = Coldfront
 +
| strange-icon = yes
 +
| rankson = kills
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Shotgun
 +
| item-level = 1
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Shotgun
 +
| filter = Coldfront
 +
| strange-icon = yes
 +
| rankson = kills
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Shotgun
 +
| item-level = 1
 +
}}
 
|-
 
|-
| {{code|no-level}}
+
| {{code|strange-icon}}
 
| {{code|yes}}
 
| {{code|yes}}
| Optional attribute. If "yes", item level will not be displayed.
+
| Adds an icon at the top right of the item icon, indicating the item is [[Strange]].
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Scattergun
 +
| strange-icon = yes
 +
| rankson = kills
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Scattergun
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Scattergun
 +
| strange-icon = yes
 +
| rankson = kills
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Scattergun
 +
}}
 
|-
 
|-
 
| {{code|limited}}
 
| {{code|limited}}
 
| {{code|yes}}
 
| {{code|yes}}
| Optional attribute. If "yes", the item name will be colored yellow, the word "Limited" will be added with a link to [[Limited Quantity]].
+
| If set to "yes", the the item kind will be colored yellow, and the word "Limited" will be added with a link to [[Limited Quantity]].
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Batter's Helmet
 +
| limited = yes
 +
| item-kind = Hat
 +
| item-description = You'll be batting a thousand (skulls in) when you don this red piece of plastic!
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Batter's Helmet
 +
| limited = yes
 +
| item-kind = Hat
 +
| item-description = You'll be batting a thousand (skulls in) when you don this red piece of plastic!
 +
}}
 
|-
 
|-
 
| {{code|grade}}
 
| {{code|grade}}
| {{code|elite}}
+
| {{code|Commando}}
| Optional attribute. If specified, the item name will be colored correctly for the grade, and the name of the grade will be added before the name, e.g.: Elite Grade Rocket Launcher. See [[grade]] for a full list of valid options.
+
| Colors the item's name according to the specified [[grade]], and treats it like a graded item. Valid options are {{code|Civilian}}, {{code|Freelance}}, {{code|Mercenary}}, {{code|Commando}}, {{code|Assassin}}, and {{code|Elite}}.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Sapper
 +
| grade = Commando
 +
| quality = Normal
 +
| item-kind = Sapper
 +
| item-description = Place on enemy buildings to disable and slowly drain away its health. Placing a sapper does not remove your disguise
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Sapper
 +
| grade = Commando
 +
| quality = Normal
 +
| item-kind = Sapper
 +
| item-description = Place on enemy buildings to disable and slowly drain away its health. Placing a sapper does not remove your disguise
 +
}}
 
|-
 
|-
 
| {{code|wear}}
 
| {{code|wear}}
| {{code|factory new}}
+
| {{code|Field-Tested}}
| Must be specified if {{code|grade}} is specified. Listed in parenthesis after the item name, e.g.: Rocket Launcher (Factory New). Valid options are <code>battle scarred, well worn, field tested, minimal wear, factory new.</code>
+
| For use on [[Decorated]] weapons. Valid options are {{code|Battle Scarred}}, {{code|Well-Worn}}, {{code|Field-Tested}}, {{code|Minimal Wear}}, and {{code|Factory New}}.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Minigun
 +
| wear = Field-Tested
 +
| skin = War Room
 +
| grade = Commando
 +
| item-kind = Minigun
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Minigun
 +
| wear = Field-Tested
 +
| skin = War Room
 +
| grade = Commando
 +
| item-kind = Minigun
 +
}}
 +
|-
 +
| {{code|skin}}
 +
| {{code|Warhawk}}
 +
| Decorated skin name. See [[Template:Dictionary/decorated#Skins]] for a list of accepted values.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Rocket Launcher
 +
| wear = Factory New
 +
| skin = Warhawk
 +
| grade = Elite
 +
| item-kind = Rocket Launcher
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Rocket Launcher
 +
| wear = Factory New
 +
| skin = Warhawk
 +
| grade = Elite
 +
| item-kind = Rocket Launcher
 +
}}
 +
|-
 +
| {{code|stat-icon}}
 +
| {{code|yes}}
 +
| Adds an icon at the top right of the backpack image, indicating the item is [[Grade]]d and [[Strange]].
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Revolver
 +
| wear = Factory New
 +
| skin = Blitzkrieg
 +
| grade = Mercenary
 +
| quality = Strange
 +
| stat-icon = yes
 +
| rankson = kills
 +
| killcount = 25
 +
| item-kind = Revolver
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Revolver
 +
| wear = Factory New
 +
| skin = Blitzkrieg
 +
| grade = Mercenary
 +
| quality = Strange
 +
| stat-icon = yes
 +
| rankson = kills
 +
| killcount = 25
 +
| item-kind = Revolver
 +
}}
 
|-
 
|-
| {{code|rankson}}
+
| {{code|pyroland-icon}}
| {{code|Kills}}
+
| {{code|yes}}
| Primary stat method for a strange weapon.
+
| Adds an icon at the top right of the backpack image, indicating the item is only visible in [[Pyroland]].
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Pyrovision Goggles
 +
| item-kind = Pyrovision Goggles
 +
| item-level = 1-100
 +
| pyroland-icon = yes
 +
| item-description = Enter a world of imagination that's far superior to the crap-ass worlds of imagination you get from books. Pyrovision lets you see the TF2niverse from our favorite arsonist's perspective.
 +
| item-flags = Achievement Item: Not Tradable or Marketable
 +
| att-1-positive = On Equip: Visit Pyroland
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Pyrovision Goggles
 +
| item-kind = Pyrovision Goggles
 +
| item-level = 1-100
 +
| pyroland-icon = yes
 +
| item-description = Enter a world of imagination that's far superior to the crap-ass worlds of imagination you get from books. Pyrovision lets you see the TF2niverse from our favorite arsonist's perspective.
 +
| item-flags = Achievement Item: Not Tradable or Marketable
 +
| att-1-positive = On Equip: Visit Pyroland
 +
}}
 +
|-
 +
| {{code|halloween-icon}}
 +
| {{code|yes}}
 +
| Adds an icon at the top right of the backpack image, indicating the item is only visible during [[Halloween]]/[[Full Moon]].
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Chicken Kiev
 +
| prefix = The
 +
| item-kind = Bird Head
 +
| halloween-icon = yes
 +
| att-1-negative = Holiday Restriction: Halloween / Full Moon
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Chicken Kiev
 +
| prefix = The
 +
| item-kind = Bird Head
 +
| halloween-icon = yes
 +
| att-1-negative = Holiday Restriction: Halloween / Full Moon
 +
}}
 +
|-
 +
| {{code|loaner-icon}}
 +
| {{code|yes}}
 +
| Adds an icon at the top right of the backpack image, indicating the item is being [[Loaner Program|loaned]].
 +
|
 +
<pre>{{Backpack item
 +
| item-name      = Black Box
 +
| item-kind      = Rocket Launcher
 +
| item-level    = 5
 +
| loaner-icon    = yes
 +
| prefix        = The
 +
| att-1-positive = On Hit: Gain up to +20 health per attack
 +
| att-2-negative = -25% clip size
 +
| item-flags    = Loaner - Cannot be traded, marketed, crafted, or modified
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name      = Black Box
 +
| item-kind      = Rocket Launcher
 +
| item-level    = 5
 +
| loaner-icon    = yes
 +
| prefix        = The
 +
| att-1-positive = On Hit: Gain up to +20 health per attack
 +
| att-2-negative = -25% clip size
 +
| item-flags    = Loaner - Cannot be traded, marketed, crafted, or modified
 +
}}
 
|-
 
|-
| {{code|killcount}}
+
! style="text-align:left;" class="header" colspan="5" | ''Attributes''
| {{code|7616}}
 
| Number of kills for the primary rank method.
 
 
|-
 
|-
| {{code|rankson2}}
+
| {{code|paint-color}}
| {{code|Kill assists}} or {{code|Damage dealt}}
+
| {{code|Mann Co. Orange}}
| Secondary rank method '''or''' strange part. {{code|rankson3}} and {{code|rankson4}} work similarly.
+
| Adds a colored paint splat at the top right of the item icon, indicating the item is painted. See [[Paint Can]] for a list of accepted values.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Mislaid Sweater
 +
| paint-color = Mann Co. Orange
 +
| prefix = The
 +
| item-kind = Sweater
 +
| grade = commando
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Mislaid Sweater
 +
| paint-color = Mann Co. Orange
 +
| prefix = The
 +
| item-kind = Sweater
 +
| grade = commando
 +
}}
 
|-
 
|-
| {{code|killcount2}}
+
| {{code|decal-icon}}
| {{code|12}}
+
| {{code|yes}}
| Number of kills for the secondary rank method '''or''' first strange part. {{code|killcount3}} and {{code|killcount4}} work similarly.
+
| Adds [[:File:Paint_Splat_Decal.png|this]] icon at the top right of the item icon, indicating the item has a [[Decal]] applied.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Photo Badge
 +
| decal-icon = yes
 +
| item-kind = Photo Badge
 +
| item-level = 20
 +
| item-description = Discourage identity theft.<br><br>Custom decals can be applied to this item.
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Photo Badge
 +
| decal-icon = yes
 +
| item-kind = Photo Badge
 +
| item-level = 20
 +
| item-description = Discourage identity theft.<br><br>Custom decals can be applied to this item.
 +
}}
 
|-
 
|-
 
|   
 
|   
Line 98: Line 619:
 
<code>att-<sub>n</sub>-negative</code>
 
<code>att-<sub>n</sub>-negative</code>
 
|  
 
|  
<code>att-1-neutral = Cloak Type: Feign Death</code><br />
+
<code>att-1-neutral = Cloak Type: Feign Death</code><br>
<code>att-2-positive = +80% cloak regen rate</code><br />
+
<code>att-2-positive = Live forever!</code><br>
<code>att-3-negative = +60% cloak drain rate</code><br />
+
<code>att-3-negative = Just kidding.</code>
(See section on [[#Examples|examples]] below)
+
| Displays up to 8 positive, negative, or neutral values. Can use custom values.
| Displays up to 8 positive, negative and neutral values.
+
|
|-
+
<pre>{{Backpack item
| {{code|item-description}}
+
| item-name = Dead Ringer
| {{code|It doesn't matter how much people respect you when they're on fire.}}
+
| item-kind = Invis Watch
| For items that have an in-game description. This displays the description in a smaller font in order to distinguish from neutral attributes. Will not display if a {{code|custom-description}} is set.
+
| item-level = 5
|-
+
| att-1-neutral = Cloak Type: Feign Death
| {{code|custom-description}}
+
| att-2-positive = Live forever!
| {{code|This hat is the greatest.}}
+
| att-3-negative = Just kidding.
| For items that have a custom in-game description (from a [[Description Tag]]). Displays like a normal description but has quotation marks surrounding it.
+
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Dead Ringer
 +
| item-kind = Invis Watch
 +
| item-level = 5
 +
| att-1-neutral = Cloak Type: Feign Death
 +
| att-2-positive = Live forever!
 +
| att-3-negative = Just kidding.
 +
}}
 
|-
 
|-
 
| {{code|gift-from}}
 
| {{code|gift-from}}
 
| {{code|Robin}}
 
| {{code|Robin}}
| Display the source of a gifted item. Displays the text "<span class="att_positive">Gift from: Robin</span>"
+
| Display the source of a gifted item. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Robin Walkers
 +
| item-kind = Slippers
 +
| grade = Elite
 +
| gift-from = Robin
 +
| date-received = Mar 29, 2018 (21:43:08)
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Robin Walkers
 +
| item-kind = Slippers
 +
| grade = Elite
 +
| gift-from = Robin
 +
| date-received = Mar 29, 2018 (21:43:08)
 +
}}
 
|-
 
|-
 
| {{code|date-received}}
 
| {{code|date-received}}
| {{code|Mar 23, 2011 (06:30:00)}}
+
| {{code|Sep 13, 2188 (06:30:00)}}
| Display the date a gifted item was received. Will not appear if no {{code|gift-from}} is defined. Displays the text "<span class="att_neutral">Date Received: Mar 23, 2011 (06:30:00)</span>"
+
| Display the date a gifted item was received. Will not appear if no {{code|gift-from}} is defined. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Level Three Chin
 +
| item-kind = Chin
 +
| prefix = The
 +
| item-level = 3
 +
| gift-from = Gabe Newell
 +
| date-received = Sep 13, 2188 (06:30:00)
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Level Three Chin
 +
| item-kind = Chin
 +
| prefix = The
 +
| item-level = 3
 +
| gift-from = Gabe Newell
 +
| date-received = Sep 13, 2188 (06:30:00)
 +
}}
 
|-
 
|-
 
| {{code|item-expiration}}
 
| {{code|item-expiration}}
 
| {{code|Dec 31, 2010 (23:00:00)}}
 
| {{code|Dec 31, 2010 (23:00:00)}}
| For items that expire. Displays the text "<span class="att_negative">This item will expire on Dec 31, 2010 (23:00:00).</span>".
+
| For items that expire. Can use a custom value.
|-
+
|
| {{code|item-uses}}
+
<pre>{{Backpack item
| {{code|5}}
+
| item-name = Gift-Stuffed Stocking
| For items that have "uses". Displays the text "<span class="att_uses">This is a limited item. Uses: 5</span>".
+
| item-uses = 1
|-
+
| item-level = 13
| {{code|item-flags}}
+
| item-kind = Gift
| {{code|Not Tradable or Usable in Crafting}}
+
| item-flags = Not Tradable or Marketable
| For item flags. Displays them inside brackets: "<span class="att_flags">( Not Tradable or Usable in Crafting )</span>".
+
| item-description = Contains an assortment of goodies for good little Mercenaries.
|-
+
| item-expiration = Dec 31, 2010 (23:00:00)
! style="text-align:left;" class="header" colspan="3" | ''Styling''
+
}}</pre>
|-
+
|
| {{code|width}}
 
| {{code|25%}}
 
| Width parameter. Defaults to {{code|100%}} in infoboxes, but for other usages, can be any value (%, px, pt, em).
 
|-
 
| {{code|style}}
 
|
 
| Style parameter. Can add any valid CSS style to the main div.
 
|-
 
|}
 
 
 
== Examples ==
 
{| class="wikitable grid"
 
! class="header" width="50%" | Code
 
! class="header" width="50%" | Output
 
|-
 
|<pre>
 
 
{{Backpack item
 
{{Backpack item
| item-name = Cloak and Dagger
+
| item-name = Gift-Stuffed Stocking
| item-level = 5
+
| item-uses = 1
| item-kind = Invis Watch
+
| item-level = 13
| att-1-neutral = Cloak Type: Feign Death
+
| item-kind = Gift
| att-2-positive = +80% cloak regen rate
+
| item-flags = Not Tradable or Marketable
| att-3-negative = +60% cloak drain rate
+
| item-description = Contains an assortment of goodies for good little Mercenaries.
}}
+
| item-expiration = Dec 31, 2010 (23:00:00)
</pre>
 
|{{Backpack item
 
| item-name = Cloak and Dagger
 
| item-level = 5
 
| item-kind = Invis Watch
 
| att-1-neutral = Cloak Type: Feign Death
 
| att-2-positive = +80% cloak regen rate
 
| att-3-negative = +60% cloak drain rate
 
 
}}
 
}}
 
|-
 
|-
|<pre>
+
| {{code|item-uses}}
 +
| {{code|4}}
 +
| For items that have a limited number of uses. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 +
| item-name = Noise Maker - Black Cat
 +
| item-uses = 4
 +
| item-level = 5
 +
| item-kind = Party Favor
 +
}}</pre>
 +
|
 
{{Backpack item
 
{{Backpack item
| item-name = Rocket Launcher
+
| item-name = Noise Maker - Black Cat
| custom-name = Rawket Lawnchair
+
| item-uses = 4
| quality = vintage
+
| item-level = 5
| item-level = 50
+
| item-kind = Party Favor
| item-kind = Furniture
 
| att-1-positive = +20% additional comfort
 
| att-2-positive = +35% increase in lumbar support
 
| att-3-negative = +50% increase in financial hardship
 
| custom-description = For those who favour comfort over fiscal stability.
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Rocket Launcher
 
| custom-name = Rawket Lawnchair
 
| quality = vintage
 
| item-level = 50
 
| item-kind = Furniture
 
| att-1-positive = +20% additional comfort
 
| att-2-positive = +35% increase in lumbar support
 
| att-3-negative = +50% increase in financial hardship
 
| custom-description = For those who favour comfort over fiscal stability.
 
 
}}
 
}}
 
|-
 
|-
|<pre>
+
| {{code|item-flags}}
{{Backpack item
+
| {{code|Not Tradable, Marketable, or Usable in Crafting}}
 +
| For item flags. Displays them inside brackets. Can use a custom value.
 +
|
 +
<pre>{{Backpack item
 
| item-name = Wiki Cap
 
| item-name = Wiki Cap
 
| quality = community
 
| quality = community
 
| item-kind = Hat
 
| item-kind = Hat
 
| item-level = 20
 
| item-level = 20
| item-flags = Not Tradable or Usable in Crafting
+
| unusual-effect   = Community Sparkle
| unusual-effect = Community Sparkle
+
| item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 wiki<br><nowiki>https://wiki.teamfortress.com/</nowiki>
| item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 Wiki<br><nowiki>http://wiki.teamfortress.com/</nowiki>
+
| item-flags = Not Tradable, Marketable, or Usable in Crafting
}}
+
}}</pre>
</pre>
+
|
|{{Backpack item
+
{{Backpack item
 
| item-name = Wiki Cap
 
| item-name = Wiki Cap
 
| quality = community
 
| quality = community
 
| item-kind = Hat
 
| item-kind = Hat
 
| item-level = 20
 
| item-level = 20
| item-flags = Not Tradable or Usable in Crafting
+
| unusual-effect   = Community Sparkle
| unusual-effect = Community Sparkle
+
| item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 wiki<br><nowiki>https://wiki.teamfortress.com/</nowiki>
| item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 Wiki<br><nowiki>http://wiki.teamfortress.com/</nowiki>
+
| item-flags = Not Tradable, Marketable, or Usable in Crafting
 
}}
 
}}
 
|-
 
|-
|<pre>
+
! style="text-align:left;" class="header" colspan="5" | ''Styling''
{{Backpack item
 
| item-name = Tux
 
| limited = yes
 
| item-kind = Mascot
 
| item-level = 1-100
 
| item-flags = Not Tradable
 
| item-description = Linux represent!
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Tux
 
| limited = yes
 
| item-kind = Mascot
 
| item-level = 1-100
 
| item-flags = Not Tradable
 
| item-description = Linux represent!
 
}}
 
 
|-
 
|-
|<pre>
+
| {{code|width}}
{{Backpack item
+
| {{code|75%}}
| item-name = Citizen Pain
+
| Width parameter. Defaults to {{code|100%}} in infoboxes, but for other usages, can be any value (%, px, pt, em).
| item-kind = Minigun
+
|
| grade = Assassin
+
<pre>{{Backpack item
| wear = Battle Scarred
+
| item-name = Jumper's Jeepcap
}}
+
| width = 75%
</pre>
 
|{{Backpack item
 
| item-name = Citizen Pain
 
| item-kind = Minigun
 
| grade = Assassin
 
| wear = Battle Scarred
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = A Hat to Kill For
 
 
| item-kind = Hat
 
| item-kind = Hat
| grade = Civilian
+
}}</pre>
}}
+
|
</pre>
+
<center>{{Backpack item
|{{Backpack item
+
| item-name = Jumper's Jeepcap
| item-name = A Hat to Kill For
+
| width = 75%
 
| item-kind = Hat
 
| item-kind = Hat
| grade = Civilian
+
}}</center>
}}
 
 
|-
 
|-
|<pre>
+
| {{code|style}}
{{Backpack item
+
| {{code|background: #490040;}}
| item-name = Scattergun
+
| Style parameter. Can add any valid CSS style to the main div.
| item-kind = Scattergun
+
|
| quality = Strange
+
<pre>{{Backpack item
| rankson = Kills
 
| killcount = 1200
 
| rankson2 = Domination Kills
 
| killcount2 = 100
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Scattergun
 
| item-kind = Scattergun
 
| quality = Strange
 
| rankson = Kills
 
| killcount = 1200
 
| rankson2 = Domination Kills
 
| killcount2 = 100
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = Medigun
 
| item-kind = Medi Gun
 
| quality = Strange
 
| rankson = Ubers
 
| killcount = 20
 
| rankson2 = Kill assists
 
| killcount2 = 300
 
| rankson3 = Allied Healing Done
 
| killcount3 = 10000
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Medigun
 
| item-kind = Medi Gun
 
| quality = Strange
 
| rankson = Ubers
 
| killcount = 20
 
| rankson2 = Kill assists
 
| killcount2 = 300
 
| rankson3 = Allied Healing Done
 
| killcount3 = 10000
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name-local = Jabberwoky
 
| item-name = Voodoo-Cursed Item (Armory)
 
| grade = Civilian
 
| item-level = 19-83
 
| item-kind = Poem
 
| quality = Genuine
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name-local = Jabberwoky
 
| item-name = Voodoo-Cursed Item (Armory)
 
| grade = Civilian
 
| item-level = 19-83
 
| item-kind = Poem
 
| quality = Genuine
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
 
| item-name = Burstchester
 
| item-name = Burstchester
 +
| style = background: #490040;
 +
| prefix = Taunt:
 
| item-kind = Special Taunt
 
| item-kind = Special Taunt
| rankson = Times Performed
 
| quality = Strange Unusual
 
| unusual-effect = Mega Strike
 
 
| grade = Assassin
 
| grade = Assassin
 +
| item-description = Community Created All Class Taunt
 +
}}</pre>
 +
|
 +
{{Backpack item
 +
| item-name = Burstchester
 +
| style = background: #490040;
 
| prefix = Taunt:
 
| prefix = Taunt:
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Burstchester
 
 
| item-kind = Special Taunt
 
| item-kind = Special Taunt
| quality = Strange Unusual
 
| rankson = Times Performed
 
| unusual-effect = Mega Strike
 
 
| grade = Assassin
 
| grade = Assassin
| prefix = Taunt:
+
| item-description = Community Created All Class Taunt
 
}}
 
}}
 
|-
 
|-
|<pre>
 
{{Backpack item
 
| item-name = Co-Pilot
 
| item-kind = Hat
 
| limited = yes
 
| quality = Strange
 
| rankson = points scored
 
| killcount = 75
 
| description = Winter 2014 Limited Community Cosmetic
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Co-Pilot
 
| item-kind = Hat
 
| limited = yes
 
| quality = Strange
 
| rankson = points scored
 
| killcount = 75
 
| description = Winter 2014 Limited Community Cosmetic
 
}}
 
 
|}
 
|}
 +
 
== See also ==
 
== See also ==
 
{{Image insertion templates list}}
 
{{Image insertion templates list}}
  
 
<noinclude>[[Category:Template documentation|Backpack item]]</noinclude>
 
<noinclude>[[Category:Template documentation|Backpack item]]</noinclude>

Latest revision as of 13:04, 8 September 2023

This template is used to display item stats similar to how they appear in-game.

Parameters

Parameter Example Description Code Example Result
Basics
item-name Condor Cap Proper item name in English (Condor Cap instead of Bonnet de condor, for example). Automatically grabs the item's icon. The item name is automatically translated on any language subpages.
{{Backpack item
| item-name = Condor Cap
| item-kind = Hat
}}
Backpack Condor Cap.png

Condor Cap
Level 1 - 100 Hat

custom-name Spam Hammer Adds a custom name with quotation marks. Still needs item-name to produce the correct image.
{{Backpack item
| item-name = Homewrecker
| custom-name = Spam Hammer
| item-kind = Sledgehammer
| item-level = 5
| att-1-positive = +100% damage vs buildings
| att-2-positive = Damage removes Sappers
| att-3-negative = -25% damage vs players
}}
Backpack Homewrecker.png

"Spam Hammer"
Level 5 Sledgehammer
+100% damage vs buildings
Damage removes Sappers
-25% damage vs players

no-custom-name-quotes yes Removes quotation marks from custom names if the custom-name field is used. Used in conjunction with custom-name.
{{Backpack item
| item-name = Texas Slim's Dome Shine
| custom-name = Cream Gravy
| no-custom-name-quotes = yes
| item-kind = Hat
| item-description = Sometimes you just need a little less hat.
}}
Backpack Texas Slim's Dome Shine.png

Cream Gravy
Level 1 - 100 Hat
Sometimes you just need a little less hat.

custom-icon BLU Bombcart.png Adds a custom icon for users' own purposes. This parameter is independent from item-name parameter.
{{Backpack item
| item-name = Mr. Quackers
| custom-icon = BLU Bombcart.png
| item-kind = Mask
| grade = Assassin
}}
BLU Bombcart.png

Mr. Quackers
Assassin Grade Mask
Mask

item-description This hat is the greatest. For items that have an in-game description. Will not display if a custom-description is set. Can use a custom value.
{{Backpack item
| item-name = Yule Hog
| item-kind = Hat
| grade = Mercenary
| item-description = This hat is the greatest.
}}
Backpack Yule Hog.png

Yule Hog
Mercenary Grade Hat
Hat

This hat is the greatest.

custom-description This hat is also the greatest. For items that have a custom in-game description (from a Description Tag). Displays like a normal description but has quotation marks surrounding it. Can use a custom value.
{{Backpack item
| item-name = Napper's Respite
| item-kind = Hat
| custom-description = This hat is also the greatest.
}}
Backpack Napper's Respite.png

Napper's Respite
Level 1 - 100 Hat
"This hat is also the greatest."

prefix none
The Best
Set to "none" to hide any prefix added by quality, while keeping the quality's color. Can use a custom value.
{{Backpack item
| item-name = Flare Gun
| prefix = The Best
| item-kind = Flare Gun
| item-level = 10
| item-description = This weapon will reload when not active
| att-1-positive = 100% critical hit vs burning players
}}
Backpack Flare Gun.png

The Best Flare Gun
Level 10 Flare Gun
100% critical hit vs burning players
This weapon will reload when not active

suffix none
(Slight Return)
Similar to prefix, mainly for use in non-en pages. Can use a custom value.
{{Backpack item
| item-name = Flame Thrower
| suffix = (Slight Return)
| quality = normal
| item-kind  = Flame Thrower
| item-level = 1
| att-1-positive = Extinguishing teammates restores 20 health
| item-description = Afterburn reduces Medi Gun healing and resist shield effects.<br>Alt-Fire: Release a blast of air that pushes enemies and projectiles and extinguish teammates that are on fire.
}}
Backpack Flame Thrower.png

Flame Thrower (Slight Return)
Level 1 Flame Thrower
Extinguishing teammates restores 20 health
Afterburn reduces Medi Gun healing and resist shield effects.
Alt-Fire: Release a blast of air that pushes enemies and projectiles and extinguish teammates that are on fire.

item-level none The item's level. Set to "none" to hide the level. Defaults to "Level 1 - 100". Can use a custom value.
{{Backpack item
| item-name = Antarctic Researcher
| prefix = The
| item-kind = Coat
| item-level = 68
}}
Backpack Antarctic Researcher.png

The Antarctic Researcher
Level 68 Coat

item-kind Hat Item kind. This string is not automatically translated.
{{Backpack item
| item-name = Lucky Cat Hat
| grade = Elite
| item-kind = Absolute Meower
}}
Backpack Lucky Cat Hat.png

Lucky Cat Hat
Elite Grade Absolute Meower
Absolute Meower

Quality
quality genuine Defaults to "unique" (the standard item yellow). See Item quality for a list of accepted values.
{{Backpack item
| item-name = Horseless Headless Horsemann's Headtaker
| quality = genuine
| item-kind = Axe
| item-description = Cursed by dark spirits similar to those that dwell within the Eyelander.
| item-flags = Not Tradable or Marketable
| att-1-neutral = This weapon has a large melee range and deploys and holsters slower
| att-2-negative = No random critical hits
| att-3-negative = -25 max health on wearer
}}
Backpack Horseless Headless Horsemann's Headtaker.png

Genuine Horseless Headless Horsemann's Headtaker
Level 1 - 100 Axe
This weapon has a large melee range and deploys and holsters slower
No random critical hits
-25 max health on wearer
Cursed by dark spirits similar to those that dwell within the Eyelander.

( Not Tradable or Marketable )

unusual-effect Stormy Storm Adds the specified Unusual effect to the item's description. Also adds an Unusual at the top right of the item icon, indicating the item has an Unusual effect. See Unusual for a list of accepted values.
{{Backpack item
| item-name = Rimmed Raincatcher
| unusual-effect = Stormy Storm
| quality = unusual
| item-kind = Hat
| item-description = Because there's no alliteration like alliteration with an 'ARR!'
}}
Viewmode unusual.png
Backpack Rimmed Raincatcher.png

Unusual Rimmed Raincatcher
Level 1 - 100 Hat
★ Unusual Effect: Stormy Storm
Because there's no alliteration like alliteration with an 'ARR!'

rankson Buildings Sapped Primary stat being tracked for a Strange item.
{{Backpack item
| item-name = Shovel
| strange-icon = yes
| rankson = Buildings Sapped
| killcount = 0
| quality = strange
| item-kind  = Shovel
}}
Viewmode strange.png
Backpack Shovel.png

Strange Shovel
Strange Shovel - Buildings Sapped: 0

killcount 7613 Number of points for the primary stat being tracked. Can use a custom value.
{{Backpack item
| item-name = Big Elfin Deal
| strange-icon = yes
| rankson = Points Scored
| killcount = 7613
| quality = strange
| item-kind  = Hat
| item-description = You ask me if I wanna be a dentist one more time, pal, I'm gonna kick your teeth in.
}}
Viewmode strange.png
Backpack Big Elfin Deal.png

Australian Big Elfin Deal
Australian Hat - Points Scored: 7613
You ask me if I wanna be a dentist one more time, pal, I'm gonna kick your teeth in.

rankson2 Kill assists For Strange Parts or the secondary stat being tracked. rankson3 and rankson4 work similarly.
{{Backpack item
| item-name = Medi Gun
| strange-icon = yes
| rankson = Ubers
| rankson2 = Kill Assists
| killcount = 0
| killcount2 = 0
| quality = strange
| item-kind  = Medi Gun
}}
Viewmode strange.png
Backpack Medi Gun.png

Strange Medi Gun
Strange Medi Gun - Ubers: 0
(Kill Assists: 0)

killcount2 50 Number of points for Strange Parts or the secondary stat being tracked. killcount3 and killcount4 work similarly. Can use a custom value.
{{Backpack item
| item-name = Sniper Rifle
| strange-icon = yes
| rankson = Kills
| rankson2 = Damage Dealt
| killcount = 0
| killcount2 = 50
| quality = strange
| item-kind  = Sniper Rifle
}}
Viewmode strange.png
Backpack Sniper Rifle.png

Strange Sniper Rifle
Strange Sniper Rifle - Kills: 0
(Damage Dealt: 50)

filter Coldfront Adds the appropriate Strange Filter prefix/suffix to the weapon. See List of maps for a list of accepted values.
{{Backpack item
| item-name = Shotgun
| filter = Coldfront
| strange-icon = yes
| rankson = kills
| killcount = 0
| quality = strange
| item-kind  = Shotgun
| item-level = 1
}}
Viewmode strange.png
Backpack Shotgun.png

Strange Frosty Shotgun
Strange Shotgun - Kills: 0

strange-icon yes Adds an icon at the top right of the item icon, indicating the item is Strange.
{{Backpack item
| item-name = Scattergun
| strange-icon = yes
| rankson = kills
| killcount = 0
| quality = strange
| item-kind  = Scattergun
}}
Viewmode strange.png
Backpack Scattergun.png

Strange Scattergun
Strange Scattergun - Kills: 0

limited yes If set to "yes", the the item kind will be colored yellow, and the word "Limited" will be added with a link to Limited Quantity.
{{Backpack item
| item-name = Batter's Helmet
| limited = yes
| item-kind = Hat
| item-description = You'll be batting a thousand (skulls in) when you don this red piece of plastic!
}}
Backpack Batter's Helmet.png

Batter's Helmet
Limited Level 1 - 100 Hat
You'll be batting a thousand (skulls in) when you don this red piece of plastic!

grade Commando Colors the item's name according to the specified grade, and treats it like a graded item. Valid options are Civilian, Freelance, Mercenary, Commando, Assassin, and Elite.
{{Backpack item
| item-name = Sapper
| grade = Commando
| quality = Normal
| item-kind = Sapper
| item-description = Place on enemy buildings to disable and slowly drain away its health. Placing a sapper does not remove your disguise
}}
Backpack Electro Sapper.png

Sapper
Commando Grade Sapper
Sapper

Place on enemy buildings to disable and slowly drain away its health. Placing a sapper does not remove your disguise

wear Field-Tested For use on Decorated weapons. Valid options are Battle Scarred, Well-Worn, Field-Tested, Minimal Wear, and Factory New.
{{Backpack item
| item-name = Minigun
| wear = Field-Tested
| skin = War Room
| grade = Commando
| item-kind = Minigun
}}
Backpack War Room Minigun Field-Tested.png

War Room Minigun
Commando Grade Minigun (Field-Tested)

skin Warhawk Decorated skin name. See Template:Dictionary/decorated#Skins for a list of accepted values.
{{Backpack item
| item-name = Rocket Launcher
| wear = Factory New
| skin = Warhawk
| grade = Elite
| item-kind = Rocket Launcher
}}
Backpack Warhawk Rocket Launcher Factory New.png

Warhawk Rocket Launcher
Elite Grade Rocket Launcher (Factory New)

stat-icon yes Adds an icon at the top right of the backpack image, indicating the item is Graded and Strange.
{{Backpack item
| item-name = Revolver
| wear = Factory New
| skin = Blitzkrieg
| grade = Mercenary
| quality = Strange
| stat-icon = yes
| rankson = kills
| killcount = 25
| item-kind = Revolver
}}
Viewmode statclock.png
Backpack Blitzkrieg Revolver Factory New.png

Scarcely Lethal Blitzkrieg Revolver
Mercenary Grade Revolver (Factory New)
Scarcely Lethal Stat Clock Attached
Kills: 25

pyroland-icon yes Adds an icon at the top right of the backpack image, indicating the item is only visible in Pyroland.
{{Backpack item
| item-name = Pyrovision Goggles
| item-kind = Pyrovision Goggles
| item-level = 1-100
| pyroland-icon = yes
| item-description = Enter a world of imagination that's far superior to the crap-ass worlds of imagination you get from books. Pyrovision lets you see the TF2niverse from our favorite arsonist's perspective.
| item-flags = Achievement Item: Not Tradable or Marketable
| att-1-positive = On Equip: Visit Pyroland
}}
Viewmode pyrovision.png
Backpack Pyrovision Goggles.png

Pyrovision Goggles
Level 1-100 Pyrovision Goggles
On Equip: Visit Pyroland
Enter a world of imagination that's far superior to the crap-ass worlds of imagination you get from books. Pyrovision lets you see the TF2niverse from our favorite arsonist's perspective.

( Achievement Item: Not Tradable or Marketable )

halloween-icon yes Adds an icon at the top right of the backpack image, indicating the item is only visible during Halloween/Full Moon.
{{Backpack item
| item-name = Chicken Kiev
| prefix = The
| item-kind = Bird Head
| halloween-icon = yes
| att-1-negative = Holiday Restriction: Halloween / Full Moon
}}
Viewmode spooky off.png
Backpack Chicken Kiev.png

The Chicken Kiev
Level 1 - 100 Bird Head
Holiday Restriction: Halloween / Full Moon

loaner-icon yes Adds an icon at the top right of the backpack image, indicating the item is being loaned.
{{Backpack item
| item-name      = Black Box
| item-kind      = Rocket Launcher
| item-level     = 5
| loaner-icon    = yes
| prefix         = The
| att-1-positive = On Hit: Gain up to +20 health per attack
| att-2-negative = -25% clip size
| item-flags     = Loaner - Cannot be traded, marketed, crafted, or modified
}}
Viewmode loaner.png
Backpack Black Box.png

The Black Box
Level 5 Rocket Launcher
On Hit: Gain up to +20 health per attack
-25% clip size

( Loaner - Cannot be traded, marketed, crafted, or modified )

Attributes
paint-color Mann Co. Orange Adds a colored paint splat at the top right of the item icon, indicating the item is painted. See Paint Can for a list of accepted values.
{{Backpack item
| item-name = Mislaid Sweater
| paint-color = Mann Co. Orange
| prefix = The
| item-kind = Sweater
| grade = commando
}}
Paint Splat CF7336.png
Backpack Mislaid Sweater.png

The Mislaid Sweater
Commando Grade Sweater
Sweater

decal-icon yes Adds this icon at the top right of the item icon, indicating the item has a Decal applied.
{{Backpack item
| item-name = Photo Badge
| decal-icon = yes
| item-kind = Photo Badge
| item-level = 20
| item-description = Discourage identity theft.<br><br>Custom decals can be applied to this item.
}}
Paint Splat Decal.png
Backpack Photo Badge.png

Photo Badge
Level 20 Photo Badge
Discourage identity theft.

Custom decals can be applied to this item.

att-n-neutral
att-n-positive
att-n-negative

att-1-neutral = Cloak Type: Feign Death
att-2-positive = Live forever!
att-3-negative = Just kidding.

Displays up to 8 positive, negative, or neutral values. Can use custom values.
{{Backpack item
| item-name = Dead Ringer
| item-kind = Invis Watch
| item-level = 5
| att-1-neutral = Cloak Type: Feign Death
| att-2-positive = Live forever!
| att-3-negative = Just kidding.
}}
Backpack Dead Ringer.png

Dead Ringer
Level 5 Invis Watch
Cloak Type: Feign Death
Live forever!
Just kidding.

gift-from Robin Display the source of a gifted item. Can use a custom value.
{{Backpack item
| item-name = Robin Walkers
| item-kind = Slippers
| grade = Elite
| gift-from = Robin
| date-received = Mar 29, 2018 (21:43:08)
}}
Backpack Robin Walkers.png

Robin Walkers
Elite Grade Slippers
Slippers


Gift from: Robin
Date Received: Mar 29, 2018 (21:43:08)

date-received Sep 13, 2188 (06:30:00) Display the date a gifted item was received. Will not appear if no gift-from is defined. Can use a custom value.
{{Backpack item
| item-name = Level Three Chin
| item-kind = Chin
| prefix = The
| item-level = 3
| gift-from = Gabe Newell
| date-received = Sep 13, 2188 (06:30:00)
}}
Backpack Level Three Chin.png

The Level Three Chin
Level 3 Chin

Gift from: Gabe Newell
Date Received: Sep 13, 2188 (06:30:00)

item-expiration Dec 31, 2010 (23:00:00) For items that expire. Can use a custom value.
{{Backpack item
| item-name = Gift-Stuffed Stocking
| item-uses = 1
| item-level = 13
| item-kind = Gift
| item-flags = Not Tradable or Marketable
| item-description = Contains an assortment of goodies for good little Mercenaries.
| item-expiration = Dec 31, 2010 (23:00:00)
}}
Backpack Gift-Stuffed Stocking.png

Gift-Stuffed Stocking
Level 13 Gift
Contains an assortment of goodies for good little Mercenaries.

This item will expire on Dec 31, 2010 (23:00:00).

This is a limited use item. Uses: 1

( Not Tradable or Marketable )

item-uses 4 For items that have a limited number of uses. Can use a custom value.
{{Backpack item
| item-name = Noise Maker - Black Cat 
| item-uses = 4
| item-level = 5
| item-kind = Party Favor
}}
Backpack Noise Maker - Black Cat.png

Noise Maker - Black Cat
Level 5 Party Favor

This is a limited use item. Uses: 4

item-flags Not Tradable, Marketable, or Usable in Crafting For item flags. Displays them inside brackets. Can use a custom value.
{{Backpack item
| item-name = Wiki Cap
| quality = community
| item-kind = Hat
| item-level = 20
| unusual-effect   = Community Sparkle
| item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 wiki<br>https://wiki.teamfortress.com/
| item-flags = Not Tradable, Marketable, or Usable in Crafting
}}
Viewmode unusual.png
Backpack Wiki Cap.png

Community Wiki Cap
Level 20 Hat
★ Unusual Effect: Community Sparkle
Given to valuable Community Contributors
Given to valuable contributors to the official TF2 wiki
https://wiki.teamfortress.com/


( Not Tradable, Marketable, or Usable in Crafting )

Styling
width 75% Width parameter. Defaults to 100% in infoboxes, but for other usages, can be any value (%, px, pt, em).
{{Backpack item
| item-name = Jumper's Jeepcap
| width = 75%
| item-kind = Hat
}}
Backpack Jumper's Jeepcap.png

Jumper's Jeepcap
Level 1 - 100 Hat

style background: #490040; Style parameter. Can add any valid CSS style to the main div.
{{Backpack item
| item-name = Burstchester
| style = background: #490040;
| prefix = Taunt:
| item-kind = Special Taunt
| grade = Assassin
| item-description = Community Created All Class Taunt
}}
Backpack Burstchester.png

Taunt: Burstchester
Assassin Grade Special Taunt
Special Taunt

Community Created All Class Taunt

See also

Image insertion templatesview  edit )