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

From Team Fortress Wiki
Jump to: navigation, search
(minor fixes)
(completely overhauled. plan to include more flags but uh eyah)
Line 5: Line 5:
 
{| class="wikitable grid"
 
{| class="wikitable grid"
 
! width="15%" class="header" | Parameter
 
! width="15%" class="header" | Parameter
! width="35%" class="header" | Example
+
! width="25%" class="header" | Example
! class="header" | Description
+
! width="25%" class="header" | Description
|- <!-- This section is for parameters which effect the item name. -->
+
! class="header" | Result
 +
|-
 +
! style="text-align:left;" class="header" colspan="4" | ''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 ({{xt|Condor Cap}} instead of {{!xt|Bonnet de condor}}). The item name will be automatically translated on language subpages.
 +
|
 +
{{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 custom name with quotation marks. Still needs {{code|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
 +
}}
 
|-
 
|-
 
| {{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.
 +
|
 +
{{Backpack item
 +
| item-name = Texas Slim's Dome Shine
 +
| custom-name = Smooth as Butter
 +
| 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|Backpack Ham Shank.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.
 +
|
 +
{{Backpack item
 +
| item-name = Mr. Quackers
 +
| custom-icon = Backpack Ham Shank.png
 +
| item-kind = Mask
 +
| grade = Assassin
 +
}}
 
|-
 
|-
 
| {{code|quality}}
 
| {{code|quality}}
| {{code|normal}}
+
| {{code|genuine}}
 
| Defaults to "{{code|unique}}" (the standard item yellow). See [[Item quality]] for a list of accepted values.
 
| Defaults to "{{code|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
 +
}}
 
|-
 
|-
 
| {{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 also 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
 +
}}
 
|-
 
|-
 
| {{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}}, for use in non-en pages. Can also 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.
 +
}}
 
|-
 
|-
 
| {{code|filter}}
 
| {{code|filter}}
 
| {{code|Coldfront}}
 
| {{code|Coldfront}}
| Adds the appropriate [[Strange Filter]] prefix / suffix to the weapon.
+
| Adds the appropriate [[Strange Filter]] prefix/suffix to the weapon.
 +
|
 +
{{Backpack item
 +
| item-name = Shotgun
 +
| filter = Coldfront
 +
| strange-icon = yes
 +
| rankson = kills
 +
| killcount = 0
 +
| quality = strange
 +
| item-kind  = Shotgun
 +
| item-level = 1
 +
}}
 
|-
 
|-
 
| {{code|paint-color}}
 
| {{code|paint-color}}
 
| {{code|Mann Co. Orange}}
 
| {{code|Mann Co. Orange}}
| Adds the colored paint 'splat' specified to the top right of the item icon.
+
| Adds a colored [[paint]] splat at the top right of the item icon, indicating the item is painted.
 +
|
 +
{{Backpack item
 +
| item-name = Mislaid Sweater
 +
| paint-color = Mann Co. Orange
 +
| prefix = The
 +
| item-kind = Sweater
 +
| grade = commando
 +
}}
 
|-
 
|-
 
| {{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.
 +
|
 +
{{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|strange-icon}}
 
| {{code|yes}}
 
| {{code|yes}}
| Adds the Strange/StatTrack icon to the top right of the item's icon.
+
| 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
 +
| 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|decal-icon}}
 
| {{code|decal-icon}}
 
| {{code|yes}}
 
| {{code|yes}}
| Adds this [[:File:Paint_Splat_Decal.png|icon]] to the top right of the item's icon. Only used on the [[Items]] page.
+
| Adds [[:File:Paint_Splat_Decal.png|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.
 +
}}
 
|-
 
|-
! style="text-align:left;" class="header" colspan="3" | ''Attributes''
+
! style="text-align:left;" class="header" colspan="4" | ''Attributes''
 
|- <!-- This section is for parameters which modify the item description. -->
 
|- <!-- This section is for parameters which modify the item description. -->
 
| {{code|item-level}}
 
| {{code|item-level}}
| {{code|50}}
+
| {{code|68}}
 
| Item level. Defaults to "<span class="att_level">1 - 100</span>".
 
| Item level. Defaults to "<span class="att_level">1 - 100</span>".
 +
|
 +
{{Backpack item
 +
| item-name = Antarctic Researcher
 +
| prefix = The
 +
| item-kind = Coat
 +
| item-level = 68
 +
}}
 
|-
 
|-
 
| {{code|item-kind}}
 
| {{code|item-kind}}
 
| {{code|Hat}}
 
| {{code|Hat}}
 
| Item kind. This string is not automatically translated.
 
| Item kind. This string is not automatically translated.
 +
|
 +
{{Backpack item
 +
| item-name = Lucky Cat Hat
 +
| grade = Elite
 +
| item-kind = Absolute Meower
 +
}}
 
|-
 
|-
 
| {{code|no-level}}
 
| {{code|no-level}}
 
| {{code|yes}}
 
| {{code|yes}}
 
| Optional attribute. If "yes", item level will not be displayed.
 
| Optional attribute. If "yes", item level will not be displayed.
 +
|
 +
{{Backpack item
 +
| item-name = Camera Beard
 +
| no-level = yes
 +
| item-kind = Facial Hair
 +
| item-description = You wouldn't mind if I read this top secret document with my beard, would you?
 +
}}
 
|-
 
|-
 
| {{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]].
 
| Optional attribute. If "yes", the item name will be colored yellow, 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!
 +
}}
 
|-
 
|-
 
| {{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. Valid options are <code>Civilian, Freelance, Mercenary, Commando, Assassin, Elite</code>
+
| Colors the item's name according to the specified [[grade]], and treats it like a graded item. Valid options are <code>Civilian, Freelance, Mercenary, Commando, Assassin, Elite</code>.
 +
|
 +
{{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}}
| Optional attribute, for decorated weapons. 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, Well-Worn, Field-Tested, Minimal Wear, Factory New</code>.
 +
|
 +
{{Backpack item
 +
| item-name = Minigun
 +
| wear = Field-Tested
 +
| skin = War Room
 +
| grade = Commando
 +
| item-kind = Minigun
 +
}}
 
|-
 
|-
 
| {{code|skin}}
 
| {{code|skin}}
 
| {{code|Warhawk}}
 
| {{code|Warhawk}}
| Paintkit name. See [[Template:Dictionary/decorated#Skins]] for a list of accepted values.
+
| 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
 +
}}
 
|-
 
|-
 
| {{code|rankson}}
 
| {{code|rankson}}
| {{code|Kills}}
+
| {{code|Buildings Sapped}}
| Primary stat method for a strange weapon.
+
| 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
 +
}}
 
|-
 
|-
 
| {{code|killcount}}
 
| {{code|killcount}}
| {{code|7616}}
+
| {{code|7613}}
| Number of kills for the primary rank method.
+
| Number of points for the primary stat being tracked.
 +
|
 +
{{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.
 +
}}
 
|-
 
|-
 
| {{code|rankson2}}
 
| {{code|rankson2}}
 
| {{code|Kill assists}} or {{code|Damage dealt}}
 
| {{code|Kill assists}} or {{code|Damage dealt}}
| Secondary rank method '''or''' strange part. {{code|rankson3}} and {{code|rankson4}} work similarly.
+
| For [[Strange Part]]s or the secondary stat being tracked. {{code|rankson3}} and {{code|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
 +
}}
 
|-
 
|-
 
| {{code|killcount2}}
 
| {{code|killcount2}}
| {{code|12}}
+
| {{code|50}}
| Number of kills for the secondary rank method '''or''' first strange part. {{code|killcount3}} and {{code|killcount4}} work similarly.
+
| Number of points for Strange Parts or the secondary stat being tracked. {{code|killcount3}} and {{code|killcount4}} work similarly.
 +
|
 +
{{Backpack item
 +
| item-name = Sniper Rifle
 +
| strange-icon = yes
 +
| rankson = Kills
 +
| rankson2 = Damage Dealt
 +
| killcount = 0
 +
| killcount2 = 50
 +
| quality = strange
 +
| item-kind  = Sniper Rifle
 +
}}
 
|-
 
|-
 
|   
 
|   
Line 107: Line 309:
 
<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.
| Displays up to 8 positive, negative and neutral 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.
 +
}}
 
|-
 
|-
 
| {{code|item-description}}
 
| {{code|item-description}}
 
| {{code|It doesn't matter how much people respect you when they're on fire.}}
 
| {{code|It doesn't matter how much people respect you when they're on fire.}}
 
| 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.
 
| 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.
 +
|
 +
{{Backpack item
 +
| item-name = Yule Hog
 +
| item-kind = Hat
 +
| grade = Mercenary
 +
| item-description = Don't run! It's just ham!
 +
}}
 
|-
 
|-
 
| {{code|custom-description}}
 
| {{code|custom-description}}
 
| {{code|This hat is the greatest.}}
 
| {{code|This hat is 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.
 
| For items that have a custom in-game description (from a [[Description Tag]]). Displays like a normal description but has quotation marks surrounding it.
 +
|
 +
{{Backpack item
 +
| item-name = Napper's Respite
 +
| item-kind = Hat
 +
| custom-description = This hat is the greatest.
 +
}}
 
|-
 
|-
 
| {{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.
 +
|
 +
{{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.
 +
|
 +
{{Backpack item
 +
| item-name = Level Three Chin
 +
| item-kind = Chin
 +
| prefix = The
 +
| item-level = 3
 +
| gift-from = boba
 +
| 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.
|-
+
|
| {{code|item-uses}}
 
| {{code|5}}
 
| For items that have "uses". Displays the text "<span class="att_uses">This is a limited item. Uses: 5</span>".
 
|-
 
| {{code|item-flags}}
 
| {{code|Not Tradable or Usable in Crafting}}
 
| For item flags. Displays them inside brackets: "<span class="att_flags">( Not Tradable or Usable in Crafting )</span>".
 
|-
 
! style="text-align:left;" class="header" colspan="3" | ''Styling''
 
|-
 
| {{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 "uses".
 +
|
 
{{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}}
 +
| {{code|Not Tradable, Marketable, or Usable in Crafting}}
 +
| For item flags. Displays them inside brackets.
 +
|
 
{{Backpack item
 
{{Backpack item
 
| item-name = Wiki Cap
 
| item-name = Wiki Cap
Line 208: Line 403:
 
| 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>http://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>
 
|{{Backpack item
 
| item-name = Wiki Cap
 
| quality = community
 
| item-kind = Hat
 
| item-level = 20
 
| item-flags = Not Tradable or Usable in Crafting
 
| unusual-effect = Community Sparkle
 
| item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 Wiki<br><nowiki>http://wiki.teamfortress.com/</nowiki>
 
 
}}
 
}}
 
|-
 
|-
|<pre>
+
! style="text-align:left;" class="header" colspan="4" | ''Styling''
{{Backpack item
 
| item-name = Tux
 
| limited = yes
 
| item-kind = Mascot
 
| item-level = 23
 
| item-description = Linux represent!
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Tux
 
| limited = yes
 
| item-kind = Mascot
 
| item-level = 23
 
| item-description = Linux represent!
 
}}
 
 
|-
 
|-
|<pre>
+
| {{code|width}}
|{{Backpack item
+
| {{code|75%}}
| item-kind = Rocket Launcher
+
| Width parameter. Defaults to {{code|100%}} in infoboxes, but for other usages, can be any value (%, px, pt, em).
| grade = Assassin
+
|
| wear = Battle Scarred
+
<center>{{Backpack item
| skin = Shell Shocker
+
| item-name = Jumper's Jeepcap
| item-name  = Rocket Launcher
+
| width = 75%
}}
 
</pre>
 
|{{Backpack item
 
| item-kind = Rocket Launcher
 
| grade = Assassin
 
| wear = Battle Scarred
 
| skin = Shell Shocker
 
| item-name  = Rocket Launcher
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = A Hat to Kill For
 
| item-kind = Hat
 
| grade = Mercenary
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = A Hat to Kill For
 
 
| item-kind = Hat
 
| item-kind = Hat
| grade = Mercenary
+
}}</center>
}}
 
 
|-
 
|-
|<pre>
+
| {{code|style}}
 +
| {{code|background: #490040;}}
 +
| Style parameter. Can add any valid CSS style to the main div.
 +
|
 
{{Backpack item
 
{{Backpack item
| item-name = Medigun
 
| item-kind = Medi Gun
 
| quality = Strange
 
| strange-icon = yes
 
| 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
 
| strange-icon = yes
 
| rankson = Ubers
 
| killcount = 20
 
| rankson2 = Kill assists
 
| killcount2 = 300
 
| rankson3 = Allied Healing Done
 
| killcount3 = 10000
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = Burstchester
 
| item-kind = Special Taunt
 
| rankson = Times Performed
 
| quality = Strange Unusual
 
| killcount = 283
 
| unusual-effect = Mega Strike
 
| grade = Assassin
 
| prefix = Strange Unusual Taunt:
 
}}
 
</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
 
| killcount = 283
 
| unusual-effect = Mega Strike
 
 
| grade = Assassin
 
| grade = Assassin
| prefix = Strange Unusual Taunt:
 
 
}}
 
}}
 
|-
 
|-
|<pre>
 
{{Backpack item
 
| item-name = Flame Thrower
 
| item-kind = Flame Thrower
 
| quality = Strange
 
| grade = Mercenary
 
| wear = Well-Worn
 
| skin = Forest Fire
 
| rankson = Kills
 
| stat-icon = yes
 
| killcount = 10
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Flame Thrower
 
| item-kind = Flame Thrower
 
| quality = Strange
 
| grade = Mercenary
 
| wear = Well-Worn
 
| skin = Forest Fire
 
| rankson = Kills
 
| stat-icon = yes
 
| killcount = 10
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = Co-Pilot
 
| item-kind = Hat
 
| limited = yes
 
| quality = Strange
 
| rankson = points scored
 
| killcount = 75
 
| item-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
 
| item-description = Winter 2014 Limited Community Cosmetic
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = Sniper Rifle
 
| item-kind = Sniper Rifle
 
| quality = Strange
 
| strange-icon = yes
 
| filter = yukon
 
| rankson = kills
 
| killcount = 999
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Sniper Rifle
 
| item-kind = Sniper Rifle
 
| quality = Strange
 
| strange-icon = yes
 
| filter = yukon
 
| rankson = kills
 
| killcount = 999
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = Max's Severed Head
 
| item-kind = Hat
 
| limited = yes
 
| paint-color = Team Spirit
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Max's Severed Head
 
| item-kind = Hat
 
| limited = yes
 
| paint-color = Team Spirit
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| item-name = Photo Badge
 
| item-kind = Photo Badge
 
| decal-icon = yes
 
}}
 
</pre>
 
|{{Backpack item
 
| item-name = Photo Badge
 
| item-kind = Photo Badge
 
| decal-icon = yes
 
}}
 
|-
 
|<pre>
 
{{Backpack item
 
| prefix = The
 
| item-name = Balloonicorn
 
| item-kind = Balloon
 
| item-level = 20
 
| pyroland-icon = yes
 
| att-1-positive = On Equip: Visit Pyroland
 
| att-2-negative = Only visible in Pyroland
 
}}
 
</pre>
 
|{{Backpack item
 
| prefix = The
 
| item-name = Balloonicorn
 
| item-kind = Balloon
 
| item-level = 20
 
| pyroland-icon = yes
 
| att-1-positive = On Equip: Visit Pyroland
 
| att-2-negative = Only visible in Pyroland
 
}}
 
 
|}
 
|}
 +
 
== 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>

Revision as of 01:13, 26 October 2020

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

Parameters

Parameter Example Description Result
Basics
item-name Condor Cap Proper item name in English (Condor Cap instead of Bonnet de condor). The item name will be automatically translated on language subpages.
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 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.
Backpack Texas Slim's Dome Shine.png

Smooth as Butter
Level 1 - 100 Hat
Sometimes you just need a little less hat.

custom-icon Backpack Ham Shank.png Adds a custom icon for users' own purposes. This parameter is independent from item-name parameter.
Backpack Ham Shank.png

Mr. Quackers
Assassin Grade Mask
Mask

quality genuine Defaults to "unique" (the standard item yellow). See Item quality for a list of accepted values.
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 )

prefix none
The Best
Set to "none" to hide any prefix added by quality, while keeping the quality's color. Can also use a custom value.
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, for use in non-en pages. Can also use a custom value.
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.

filter Coldfront Adds the appropriate Strange Filter prefix/suffix to the weapon.
Viewmode strange.png
Backpack Shotgun.png

Strange Frosty Shotgun
Strange Shotgun - Kills: 0

paint-color Mann Co. Orange Adds a colored paint splat at the top right of the item icon, indicating the item is painted.
Paint Splat CF7336.png
Backpack Mislaid Sweater.png

The Mislaid Sweater
Commando Grade Sweater
Sweater

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.
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!'

strange-icon yes Adds an icon at the top right of the item icon, indicating the item is Strange.
Viewmode strange.png
Backpack Scattergun.png

Strange Scattergun
Strange Scattergun - Kills: 0
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.

decal-icon yes Adds this icon at the top right of the item icon, indicating the item has a Decal applied.
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.

Attributes
item-level 68 Item level. Defaults to "1 - 100".
Backpack Antarctic Researcher.png

The Antarctic Researcher
Level 68 Coat

item-kind Hat Item kind. This string is not automatically translated.
Backpack Lucky Cat Hat.png

Lucky Cat Hat
Elite Grade Absolute Meower
Absolute Meower

no-level yes Optional attribute. If "yes", item level will not be displayed.
Backpack Camera Beard.png
Camera Beard
Level 1 - 100 Facial Hair
You wouldn't mind if I read this top secret document with my beard, would you?
limited yes Optional attribute. If "yes", the item name will be colored yellow, the word "Limited" will be added with a link to Limited Quantity.
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, Elite.
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, Factory New.
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 Warhawk Rocket Launcher Factory New.png

Warhawk Rocket Launcher
Elite Grade Rocket Launcher (Factory New)

rankson Buildings Sapped Primary stat being tracked for a Strange item.
Viewmode strange.png
Backpack Shovel.png

Strange Shovel
Strange Shovel - Buildings Sapped: 0

killcount 7613 Number of points for the primary stat being tracked.
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 or Damage dealt For Strange Parts or the secondary stat being tracked. rankson3 and rankson4 work similarly.
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.
Viewmode strange.png
Backpack Sniper Rifle.png

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

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.
Backpack Dead Ringer.png

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

item-description It doesn't matter how much people respect you when they're on fire. 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 custom-description is set.
Backpack Yule Hog.png

Yule Hog
Mercenary Grade Hat
Hat

Don't run! It's just ham!

custom-description This hat is 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.
Backpack Napper's Respite.png

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

gift-from Robin Display the source of a gifted item.
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.
Backpack Level Three Chin.png

The Level Three Chin
Level 3 Chin

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

item-expiration Dec 31, 2010 (23:00:00) For items that expire.
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 "uses".
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.
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
http://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 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 Burstchester.png

Taunt: Burstchester
Assassin Grade Special Taunt
Special Taunt

See also

Image insertion templatesview  edit )