Difference between revisions of "Template:Backpack item/doc"
Moussekateer (talk | contribs) |
Moussekateer (talk | contribs) (Undo edit by Moussekateer (Talk) (283408) revert for now) |
||
Line 9: | Line 9: | ||
| {{code|item-name}} | | {{code|item-name}} | ||
| {{code|Batter's Helmet}} | | {{code|Batter's Helmet}} | ||
− | | Proper item name in English (e.g. {{xt|Batter's Helmet}} instead of {{!xt|Casque de Batteur}}) | + | | Proper item name in English (e.g. {{xt|Batter's Helmet}} instead of {{!xt|Casque de Batteur}}) |
+ | |- | ||
+ | | {{code|item-name-local}} | ||
+ | | {{code|Casque de Batteur}} | ||
+ | | Item name override, use on language pages. | ||
|- | |- | ||
| {{code|custom-name}} | | {{code|custom-name}} | ||
Line 132: | Line 136: | ||
{{Backpack item | {{Backpack item | ||
| item-name = Rocket Launcher | | item-name = Rocket Launcher | ||
− | | | + | | item-name-local = Rawket Lawnchair |
| quality = vintage | | quality = vintage | ||
| prefix = The Greatest | | prefix = The Greatest | ||
Line 148: | Line 152: | ||
{{Backpack item | {{Backpack item | ||
| item-name = Rocket Launcher | | item-name = Rocket Launcher | ||
− | | | + | | item-name-local = Rawket Lawnchair |
| quality = vintage | | quality = vintage | ||
| prefix = The Greatest | | prefix = The Greatest |
Revision as of 18:34, 27 December 2010
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) |
item-name-local
|
Casque de Batteur
|
Item name override, use on language pages. |
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
|
none The 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-attributes positive-attributes negative-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 |
unique | #FFD700 |
customized | #00FF00 |
community | #70B031 |
self-made | #70B031 |
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 | item-name-local = 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:
The Greatest 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.