Difference between revisions of "Template:Backpack item/doc"
m (Fix my derpyness with Pilk's value.) |
|||
| Line 90: | Line 90: | ||
|- | |- | ||
| style="background:#476291;" | vintage || #476291 | | style="background:#476291;" | vintage || #476291 | ||
| + | |- | ||
| + | | style="background:#4D7455;" | genuine || #4D7455 | ||
|- | |- | ||
| style="background:#FFD700;" | unique || #FFD700 | | style="background:#FFD700;" | unique || #FFD700 | ||
Revision as of 17:20, 4 February 2011
This template is used to display item stats similar to how they appear in-game.
Contents
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.
|
quality
|
normal
|
Defaults to "unique" (the standard item yellow). See all accepted values in the list below.
|
prefix
|
noneThe Best
|
Set to "none" to hide the "Vintage" or "Community", etc, prefix but keeping the colour (necessary for language pages). Can also use a custom value, e.g. "prefix = The Best" will generate "The Best Flare Gun".
|
paint-color
|
7C6C57
|
Adds the colored paint 'splat' specified to the top right of the item icon. |
| Attributes | ||
item-level
|
Level 50
|
Item level. Defaults to "Level 0-100". |
|
|
|
Displays up to 6 positive, negative and neutral values. |
neutral-attributespositive-attributesnegative-attributes
|
(See section on examples below) | These parameters are provided for backwards compatibility. The newer att-n-neutral parameters should be used instead.
|
item-description
|
This hat is the greatest.
|
For items that have an in-game description. This displays the description in a smaller font in order to distinguish from neutral attributes. |
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 Tradeable, Not Usable in Crafting
|
For item flags. Displays them inside brackets: "( Not Tradeable, Not 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. | |
Item quality
See also: Rarity
Values of the parameter "quality" accepted by this template.
| Quality | Hex value |
|---|---|
| normal | #B2B2B2 |
| unusual | #8650AC |
| vintage | #476291 |
| genuine | #4D7455 |
| unique | #FFD700 |
| customized | #00FF00 |
| community | #70B04A |
| self-made | #70B04A |
| valve | #A50F79 |
Examples
Example usages of {{Backpack item}}.
{{Backpack item
| item-name = Cloak and Dagger
| item-level = Level 5 Invis Watch
| att-1-neutral = Cloak Type: Feign Death
| att-2-positive = +80% cloak regen rate
| att-3-negative = +60% cloak drain rate
| width = 25%
}}
The above code will generate the following:
{{Backpack item
| item-name = Rocket Launcher
| custom-name = Rawket Lawnchair
| quality = vintage
| prefix = The Greatest
| item-level = Level 50 Furniture
| att-1-positive = +20% additional comfort
| att-2-positive = +35% increase in lumbar support
| att-3-negative = +50% increase in financial hardship
| item-description = For those who favour comfort over fiscal stability.
| width = 50%
}}
The above code will generate the following:
"Rawket Lawnchair"
Level 50 Furniture
+20% additional comfort
+35% increase in lumbar support
+50% increase in financial hardship
For those who favour comfort over fiscal stability.
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.