Difference between revisions of "Template:Backpack item/doc"
(error fixingf) |
(test) |
||
Line 195: | Line 195: | ||
{{Backpack item | {{Backpack item | ||
| item-name = Camera Beard | | item-name = Camera Beard | ||
− | | | + | | item-level = none |
| item-kind = Facial Hair | | item-kind = Facial Hair | ||
| item-description = You wouldn't mind if I read this top secret document with my beard, would you? | | item-description = You wouldn't mind if I read this top secret document with my beard, would you? |
Revision as of 02:09, 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). Automatically grabs the item's icon. The item name will be automatically translated on any 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. Still needs item-name to produce the correct image.
|
|
custom-icon
|
BLU Bombcart.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 use a custom value.
|
|
suffix
|
none (Slight Return)
|
Similar to prefix , mainly for use in non-en pages. Can use a custom value.
|
|
filter
|
Coldfront
|
Adds the appropriate Strange Filter prefix/suffix to the weapon. See List of maps for a list of accepted values. | |
paint-color
|
Mann Co. Orange
|
Adds a colored paint splat at the top right of the item icon, indicating the item is painted. See Paint Can for a list of accepted values. | |
unusual-effect
|
Stormy Storm
|
Adds the specified Unusual effect to the item's description. Also adds an Unusual at the top right of the item icon, indicating the item has an Unusual effect. See Unusual for a list of accepted values. | |
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
|
The item's level. Defaults to "Level 1 - 100". Can use a custom value. | |
item-kind
|
Hat
|
Item kind. This string is not automatically translated. | |
no-level
|
yes
|
If set to "yes", item level will not be displayed. | |
limited
|
yes
|
If set to "yes", the the item kind will be colored yellow, and the word "Limited" will be added with a link to Limited Quantity. |
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. Can use a custom value. | |
rankson2
|
Kill assists
|
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. Can use a custom value.
|
|
|
|
Displays up to 8 positive, negative, or neutral values. Can use custom 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. Can use a custom value.
|
|
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. Can use a custom value. | |
gift-from
|
Robin
|
Display the source of a gifted item. Can use a custom value. | |
date-received
|
Sep 13, 2188 (06:30:00)
|
Display the date a gifted item was received. Will not appear if no gift-from is defined. Can use a custom value.
|
|
item-expiration
|
Dec 31, 2010 (23:00:00)
|
For items that expire. Can use a custom value. | |
item-uses
|
4
|
For items that have a limited number of uses. Can use a custom value. | |
item-flags
|
Not Tradable, Marketable, or Usable in Crafting
|
For item flags. Displays them inside brackets. Can use a custom value. | |
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.