Difference between revisions of "Template:Backpack item/doc"
(fixing) |
|||
Line 5: | Line 5: | ||
{| class="wikitable grid" | {| class="wikitable grid" | ||
! width="15%" class="header" | Parameter | ! width="15%" class="header" | Parameter | ||
− | ! width=" | + | ! width="35%" class="header" | Example |
− | ! | + | ! class="header" | Description |
− | + | |- <!-- This section is for parameters which effect the item name. --> | |
− | |- | ||
− | ! | ||
− | |||
| {{code|item-name}} | | {{code|item-name}} | ||
− | | {{code| | + | | {{code|Batter's Helmet}} |
− | | Proper item name in English ( | + | | 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. |
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|custom-name}} | | {{code|custom-name}} | ||
| {{code|Spam Hammer}} | | {{code|Spam Hammer}} | ||
− | | Adds a | + | | Adds a custom name with quotation marks. Still needs {{code|item-name}} to produce the correct image. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|custom-icon}} | | {{code|custom-icon}} | ||
− | | {{code| | + | | {{code|File:User Username my item icon.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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|quality}} | | {{code|quality}} | ||
− | | {{code| | + | | {{code|normal}} |
| 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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|prefix}} | | {{code|prefix}} | ||
− | | {{code|none}}<br>{{code|The Best}} | + | | {{code|none}}<br />{{code|The Best}} |
− | | Set to "none" to hide | + | | 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". |
− | |||
− | {{ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|suffix}} | | {{code|suffix}} | ||
− | | {{code|none}}<br>{{code| | + | | {{code|none}}<br />{{code|The Best}} |
− | | | + | | 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". |
− | |||
− | {{ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|paint-color}} | | {{code|paint-color}} | ||
| {{code|Mann Co. Orange}} | | {{code|Mann Co. Orange}} | ||
− | | Adds | + | | Adds the colored paint 'splat' specified to the top right of the item icon. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|unusual-effect}} | | {{code|unusual-effect}} | ||
− | | {{code| | + | | {{code|Bubbling}} |
− | | Adds the | + | | Adds the Particle Effect icon to the top right of the item's icon. Also adds the "Unusual Effect:" line. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|strange-icon}} | | {{code|strange-icon}} | ||
| {{code|yes}} | | {{code|yes}} | ||
− | | Adds | + | | Adds the Strange/StatTrack icon to the top right of the item's icon. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|decal-icon}} | | {{code|decal-icon}} | ||
| {{code|yes}} | | {{code|yes}} | ||
− | | Adds [[:File:Paint_Splat_Decal.png| | + | | Adds this [[:File:Paint_Splat_Decal.png|icon]] to the top right of the item's icon. Only used on the [[Items]] page. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | ! style="text-align:left;" class="header" colspan=" | + | ! style="text-align:left;" class="header" colspan="3" | ''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|50}} |
− | | | + | | Item level. Defaults to "<span class="att_level">1 - 100</span>". |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{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. | ||
− | | | + | |- |
− | {{ | + | | {{code|no-level}} |
− | | | + | | {{code|yes}} |
− | | | + | | Optional attribute. If "yes", item level will not be displayed. |
− | | item | ||
− | |||
|- | |- | ||
| {{code|limited}} | | {{code|limited}} | ||
| {{code|yes}} | | {{code|yes}} | ||
− | | If | + | | Optional attribute. If "yes", the item name will be colored yellow, the word "Limited" will be added with a link to [[Limited Quantity]]. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|grade}} | | {{code|grade}} | ||
− | | {{code| | + | | {{code|elite}} |
− | | | + | | 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> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|wear}} | | {{code|wear}} | ||
− | | {{code| | + | | {{code|factory new}} |
− | | | + | | 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> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|skin}} | | {{code|skin}} | ||
| {{code|Warhawk}} | | {{code|Warhawk}} | ||
− | | | + | | Paintkit name. See [[Template:Dictionary/decorated#Skins]] for a list of accepted values. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|rankson}} | | {{code|rankson}} | ||
− | | {{code| | + | | {{code|Kills}} |
− | | Primary stat | + | | Primary stat method for a strange weapon. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|killcount}} | | {{code|killcount}} | ||
− | | {{code| | + | | {{code|7616}} |
− | | Number of | + | | Number of kills for the primary rank method. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|rankson2}} | | {{code|rankson2}} | ||
− | | {{code|Kill assists}} | + | | {{code|Kill assists}} or {{code|Damage dealt}} |
− | | | + | | Secondary rank method '''or''' strange part. {{code|rankson3}} and {{code|rankson4}} work similarly. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|killcount2}} | | {{code|killcount2}} | ||
− | | {{code| | + | | {{code|12}} |
− | | Number of | + | | Number of kills for the secondary rank method '''or''' first strange part. {{code|killcount3}} and {{code|killcount4}} work similarly. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| | | | ||
Line 295: | Line 107: | ||
<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 = +80% cloak regen rate</code><br /> |
− | <code>att-3-negative = | + | <code>att-3-negative = +60% cloak drain rate</code><br /> |
− | | Displays up to 8 positive, negative | + | (See section on [[#Examples|examples]] below) |
− | + | | Displays up to 8 positive, negative and neutral values. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|gift-from}} | | {{code|gift-from}} | ||
| {{code|Robin}} | | {{code|Robin}} | ||
− | | Display the source of a gifted item. | + | | Display the source of a gifted item. Displays the text "<span class="att_positive">Gift from: Robin</span>" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{code|date-received}} | | {{code|date-received}} | ||
− | | {{code| | + | | {{code|Mar 23, 2011 (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. Displays the text "<span class="att_neutral">Date Received: Mar 23, 2011 (06:30:00)</span>" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{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. Displays the text "<span class="att_negative">This item will expire on Dec 31, 2010 (23:00:00).</span>". |
− | | | + | |- |
+ | | {{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 = | + | | item-name = Cloak and Dagger |
− | | item- | + | | item-level = 5 |
− | | item-level = | + | | item-kind = Invis Watch |
− | | item-kind = | + | | att-1-neutral = Cloak Type: Feign Death |
− | | | + | | att-2-positive = +80% cloak regen rate |
− | | | + | | att-3-negative = +60% cloak drain rate |
− | | | + | }} |
+ | </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> |
− | |||
− | |||
− | |||
{{Backpack item | {{Backpack item | ||
− | | item-name = | + | | item-name = Rocket Launcher |
− | | item- | + | | custom-name = Rawket Lawnchair |
− | | item-level = | + | | quality = vintage |
− | | item-kind = | + | | 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> | ||
+ | |{{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> |
− | |||
− | |||
− | |||
{{Backpack item | {{Backpack item | ||
| item-name = Wiki Cap | | item-name = Wiki Cap | ||
Line 389: | Line 208: | ||
| item-kind = Hat | | item-kind = Hat | ||
| item-level = 20 | | item-level = 20 | ||
− | | unusual-effect | + | | item-flags = Not Tradable or Usable in Crafting |
− | | item-description = Given to valuable Community Contributors<br>Given to valuable contributors to the official TF2 | + | | unusual-effect = Community Sparkle |
− | | item-flags = Not Tradable | + | | 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> | ||
+ | |{{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> |
+ | {{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> | ||
+ | |{{Backpack item | ||
+ | | item-kind = Rocket Launcher | ||
+ | | grade = Assassin | ||
+ | | wear = Battle Scarred | ||
+ | | skin = Shell Shocker | ||
+ | | item-name = Rocket Launcher | ||
+ | }} | ||
+ | </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 |
− | | item-name = | + | }} |
− | + | </pre> | |
+ | |{{Backpack item | ||
+ | | item-name = A Hat to Kill For | ||
| item-kind = Hat | | item-kind = Hat | ||
− | }} | + | | grade = Mercenary |
+ | }} | ||
|- | |- | ||
− | | {{ | + | |<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 = 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 | {{Backpack item | ||
| item-name = Burstchester | | item-name = Burstchester | ||
− | |||
− | |||
| item-kind = Special Taunt | | 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-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 19:46, 26 October 2020
This template is used to display item stats similar to how they appear in-game.
Parameters
Parameter | Example | Description |
---|---|---|
item-name
|
Batter's Helmet
|
Proper item name in English (e.g. Batter's Helmet instead of Casque de Batteur). 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
|
File:User Username my item icon.png
|
Adds a custom icon for users' own purposes. This parameter is independent from item-name parameter.
|
quality
|
normal
|
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 the "Vintage" or "Community", etc, prefix but keeping the colour. Can also use a custom value, e.g. "prefix = The Best " will generate "The Best Flare Gun".
|
suffix
|
none The Best
|
Same as 'prefix' for non-en pages. Can also use a custom value, e.g. "suffix = The Best " will generate "Flare Gun The Best".
|
filter
|
Coldfront
|
Adds the appropriate Strange Filter prefix / suffix to the weapon. |
paint-color
|
Mann Co. Orange
|
Adds the colored paint 'splat' specified to the top right of the item icon. |
unusual-effect
|
Bubbling
|
Adds the Particle Effect icon to the top right of the item's icon. Also adds the "Unusual Effect:" line. |
strange-icon
|
yes
|
Adds the Strange/StatTrack icon to the top right of the item's icon. |
decal-icon
|
yes
|
Adds this icon to the top right of the item's icon. Only used on the Items page. |
Attributes | ||
item-level
|
50
|
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. |
grade
|
elite
|
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 Civilian, Freelance, Mercenary, Commando, Assassin, Elite
|
wear
|
factory new
|
Optional attribute, for decorated weapons. Listed in parenthesis after the item name, e.g.: Rocket Launcher (Factory New). Valid options are Battle Scarred, Well-Worn, Field-Tested, Minimal Wear, Factory New.
|
skin
|
Warhawk
|
Paintkit name. See Template:Dictionary/decorated#Skins for a list of accepted values. |
rankson
|
Kills
|
Primary stat method for a strange weapon. |
killcount
|
7616
|
Number of kills for the primary rank method. |
rankson2
|
Kill assists or Damage dealt
|
Secondary rank method or strange part. rankson3 and rankson4 work similarly.
|
killcount2
|
12
|
Number of kills for the secondary rank method or first strange part. killcount3 and killcount4 work similarly.
|
|
|
Displays up to 8 positive, negative and 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. Displays the text "Gift from: Robin" |
date-received
|
Mar 23, 2011 (06:30:00)
|
Display the date a gifted item was received. Will not appear if no gift-from is defined. Displays the text "Date Received: Mar 23, 2011 (06:30:00)"
|
item-expiration
|
Dec 31, 2010 (23:00:00)
|
For items that expire. Displays the text "This item will expire on Dec 31, 2010 (23:00:00).". |
item-uses
|
5
|
For items that have "uses". Displays the text "This is a limited item. Uses: 5". |
item-flags
|
Not Tradable or Usable in Crafting
|
For item flags. Displays them inside brackets: "( Not Tradable or Usable in Crafting )". |
Styling | ||
width
|
25%
|
Width parameter. Defaults to 100% in infoboxes, but for other usages, can be any value (%, px, pt, em).
|
style
|
Style parameter. Can add any valid CSS style to the main div. |
Examples
Code | Output |
---|---|
{{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 }} |
|
{{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. }} |
|
{{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>http://wiki.teamfortress.com/ }} |
|
{{Backpack item | item-name = Tux | limited = yes | item-kind = Mascot | item-level = 23 | item-description = Linux represent! }} |
Tux |
|{{Backpack item | item-kind = Rocket Launcher | grade = Assassin | wear = Battle Scarred | skin = Shell Shocker | item-name = Rocket Launcher }} |
|
{{Backpack item | item-name = A Hat to Kill For | item-kind = Hat | grade = Mercenary }} |
|
{{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 }} |
|
{{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: }} |
|
{{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 }} |
|
{{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 }} |
Odious Co-Pilot |
{{Backpack item | item-name = Sniper Rifle | item-kind = Sniper Rifle | quality = Strange | strange-icon = yes | filter = yukon | rankson = kills | killcount = 999 }} |
|
{{Backpack item | item-name = Max's Severed Head | item-kind = Hat | limited = yes | paint-color = Team Spirit }} |
Max's Severed Head |
{{Backpack item | item-name = Photo Badge | item-kind = Photo Badge | decal-icon = yes }} |
|
{{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
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.