Difference between revisions of "Template:Backpack item/doc"
(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=" | + | ! width="25%" class="header" | Example |
− | ! class="header" | Description | + | ! width="25%" class="header" | Description |
− | |- | + | ! class="header" | Result |
+ | |- | ||
+ | ! style="text-align:left;" class="header" colspan="4" | ''Basics'' | ||
+ | |- | ||
| {{code|item-name}} | | {{code|item-name}} | ||
− | | {{code| | + | | {{code|Condor Cap}} |
− | | Proper item name in English ( | + | | 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| | + | | {{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| | + | | {{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|none}}<br>{{code|The Best}} |
− | | Set to "none" to hide | + | | 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|none}}<br>{{code|(Slight Return)}} |
− | | | + | | 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 | + | | 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| | + | | {{code|Stormy Storm}} |
− | | Adds the | + | | 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 | + | | 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 | + | | 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=" | + | ! 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| | + | | {{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| | + | | {{code|Commando}} |
− | | | + | | 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| | + | | {{code|Field-Tested}} |
− | | | + | | 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}} | ||
− | | | + | | 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| | + | | {{code|Buildings Sapped}} |
− | | Primary stat | + | | 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| | + | | {{code|7613}} |
− | | Number of | + | | 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}} | ||
− | | | + | | 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| | + | | {{code|50}} |
− | | Number of | + | | 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 = | + | <code>att-2-positive = Live forever!</code><br> |
− | <code>att-3-negative = | + | <code>att-3-negative = Just kidding.</code> |
− | + | | Displays up to 8 positive, negative, or neutral values. | |
− | | Displays up to 8 positive, negative | + | | |
+ | {{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. | + | | 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| | + | | {{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. | + | | 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 | + | | For items that expire. |
− | | | + | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Backpack item | {{Backpack item | ||
− | | item-name = | + | | item-name = Gift-Stuffed Stocking |
− | + | | item-uses = 1 | |
− | | item- | + | | 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) | |
− | |||
− | |||
− | | item- | ||
− | | item- | ||
− | | item- | ||
− | |||
− | |||
− | |||
}} | }} | ||
|- | |- | ||
− | | | + | | {{code|item-uses}} |
+ | | {{code|4}} | ||
+ | | For items that have "uses". | ||
+ | | | ||
{{Backpack item | {{Backpack item | ||
− | | item-name = | + | | item-name = Noise Maker - Black Cat |
− | + | | item-uses = 4 | |
− | + | | item-level = 5 | |
− | + | | item-kind = Party Favor | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | item- | ||
− | |||
− | |||
− | | item-level = | ||
− | | item-kind = | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
|- | |- | ||
− | | | + | | {{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 | ||
− | + | | 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 | + | | item-flags = Not Tradable, Marketable, or Usable in Crafting |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | item-flags = Not Tradable or Usable in Crafting | ||
− | |||
− | |||
}} | }} | ||
|- | |- | ||
− | + | ! style="text-align:left;" class="header" colspan="4" | ''Styling'' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
|- | |- | ||
− | + | | {{code|width}} | |
− | |{{ | + | | {{code|75%}} |
− | | | + | | Width parameter. Defaults to {{code|100%}} in infoboxes, but for other usages, can be any value (%, px, pt, em). |
− | | | + | | |
− | | | + | <center>{{Backpack item |
− | + | | item-name = Jumper's Jeepcap | |
− | + | | width = 75% | |
− | }} | ||
− | |||
− | |{{ | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | }} | ||
− | | | ||
− | |||
− | {{Backpack item | ||
− | | item-name = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
| item-kind = Hat | | item-kind = Hat | ||
− | + | }}</center> | |
− | }} | ||
|- | |- | ||
− | | | + | | {{code|style}} |
+ | | {{code|background: #490040;}} | ||
+ | | Style parameter. Can add any valid CSS style to the main div. | ||
+ | | | ||
{{Backpack item | {{Backpack item | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| item-name = Burstchester | | item-name = Burstchester | ||
+ | | style = background: #490040; | ||
+ | | prefix = Taunt: | ||
| item-kind = Special Taunt | | item-kind = Special Taunt | ||
− | |||
− | |||
− | |||
− | |||
| grade = Assassin | | grade = Assassin | ||
− | |||
}} | }} | ||
|- | |- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
+ | |||
== 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. | |
custom-name
|
Spam Hammer
|
Adds a custom name with quotation marks. Still needs item-name to produce the correct image.
|
|
no-custom-name-quotes
|
yes
|
Removes quotation marks from custom names if the custom-name field is used.
|
|
custom-icon
|
Backpack Ham Shank.png
|
Adds a custom icon for users' own purposes. This parameter is independent from item-name parameter.
|
|
quality
|
genuine
|
Defaults to "unique " (the standard item yellow). See Item quality for a list of accepted values.
|
|
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.
|
|
suffix
|
none (Slight Return)
|
Similar to prefix , for use in non-en pages. Can also use a custom value.
|
|
filter
|
Coldfront
|
Adds the appropriate Strange Filter prefix/suffix to the weapon. | |
paint-color
|
Mann Co. Orange
|
Adds a colored paint splat at the top right of the item icon, indicating the item is painted. | |
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. | |
strange-icon
|
yes
|
Adds an icon at the top right of the item icon, indicating the item is Strange. | |
decal-icon
|
yes
|
Adds this icon at the top right of the item icon, indicating the item has a Decal applied. | |
Attributes | |||
item-level
|
68
|
Item level. Defaults to "1 - 100". | |
item-kind
|
Hat
|
Item kind. This string is not automatically translated. | |
no-level
|
yes
|
Optional attribute. If "yes", item level will not be displayed. | |
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. |
Batter's Helmet |
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 .
|
|
wear
|
Field-Tested
|
For use on Decorated weapons. Valid options are Battle Scarred, Well-Worn, Field-Tested, Minimal Wear, Factory New .
|
|
skin
|
Warhawk
|
Decorated skin name. See Template:Dictionary/decorated#Skins for a list of accepted values. | |
rankson
|
Buildings Sapped
|
Primary stat being tracked for a Strange item. | |
killcount
|
7613
|
Number of points for the primary stat being tracked. | |
rankson2
|
Kill assists or Damage dealt
|
For Strange Parts or the secondary stat being tracked. rankson3 and rankson4 work similarly.
|
|
killcount2
|
50
|
Number of points for Strange Parts or the secondary stat being tracked. killcount3 and killcount4 work similarly.
|
|
|
|
Displays up to 8 positive, negative, or neutral values. | |
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.
|
|
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. | |
gift-from
|
Robin
|
Display the source of a gifted item. | |
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.
|
|
item-expiration
|
Dec 31, 2010 (23:00:00)
|
For items that expire. | |
item-uses
|
4
|
For items that have "uses". | |
item-flags
|
Not Tradable, Marketable, or Usable in Crafting
|
For item flags. Displays them inside brackets. | |
Styling | |||
width
|
75%
|
Width parameter. Defaults to 100% in infoboxes, but for other usages, can be any value (%, px, pt, em).
|
|
style
|
background: #490040;
|
Style parameter. Can add any valid CSS style to the main div. |
See also
Image insertion templates (
)- Team Fortress 2
{{Backpack icon}}
– for inserting an image from the backpack.{{Backpack item}}
– for displaying loadout stats.{{Icon class}}
– for displaying class icons.{{Icon item}}
– for displaying images from the item icons done in Shugo style.{{Icon killicon}}
– for displaying kill icon images.{{Kill notice}}
– for displaying a kill notice.
- Wiki-related
{{Possession}}
– for displaying the icons used in{{Item checklist}}
.{{User halloween mask possession}}
– for displaying Halloween Mask icons used in hat and item checklists.{{Comment}}
– for displaying "Support", "Oppose" and "Comment" symbols.{{Pro}}
,{{Con}}
&{{Neut}}
; Compact form for common uses of{{Comment}}
{{Flagicon}}
– generates the flag icon of a country when given the country code.