Template:Item infobox: Difference between revisions
Jump to navigation
Jump to search
m (added {{if lang}} to the category to avoid incorrect language categories.) |
No edit summary |
||
Line 47: | Line 47: | ||
| sv = Grundläggande Information | | sv = Grundläggande Information | ||
| zh-hans = ???? | | zh-hans = ???? | ||
| zh-hant = | | zh-hant = 基本資訊 | ||
}}</div> | }}</div> | ||
<table style="text-align: left;"> | <table style="text-align: left;"> | ||
Line 71: | Line 71: | ||
| sv = Buren av: | | sv = Buren av: | ||
| zh-hans = ?????: | | zh-hans = ?????: | ||
| zh-hant = | | zh-hant = 穿戴者: | ||
}}</th><td>{{{used-by}}}</td></tr>}} | }}</th><td>{{{used-by}}}</td></tr>}} | ||
{{#if:{{{shared-from|}}}|<tr><th>{{lang | {{#if:{{{shared-from|}}}|<tr><th>{{lang | ||
Line 79: | Line 79: | ||
| pt-br = Compartilhado de: | | pt-br = Compartilhado de: | ||
| ru = Позаимствовано из: | | ru = Позаимствовано из: | ||
| zh-hant = 源自: | |||
}}</th><td>{{#switch: {{{shared-from}}} | }}</th><td>{{#switch: {{{shared-from}}} | ||
| tf2 = [[Image:TF2_game_icon.png|16px]] [[Team Fortress 2{{if lang}}|Team Fortress 2]] | | tf2 = [[Image:TF2_game_icon.png|16px]] [[Team Fortress 2{{if lang}}|Team Fortress 2]] | ||
Line 102: | Line 103: | ||
| sv = Position: | | sv = Position: | ||
| zh-hans = ??: | | zh-hans = ??: | ||
| zh-hant = | | zh-hant = 裝備位置: | ||
}}</th><td>{{{slot}}}</td></tr>}} | }}</th><td>{{{slot}}}</td></tr>}} | ||
{{#ifexist:Template:Dictionary/price/{{lc:{{BASEPAGENAME}}}}|<tr><th>{{lang | {{#ifexist:Template:Dictionary/price/{{lc:{{BASEPAGENAME}}}}|<tr><th>{{lang | ||
Line 111: | Line 112: | ||
| ru = Цена: | | ru = Цена: | ||
| pl = Cena | | pl = Cena | ||
| zh-hant = 價格: | |||
}}</th><td>${{Dictionary/price/{{lc:{{BASEPAGENAME}}}}|usd}} / £{{Dictionary/price/{{lc:{{BASEPAGENAME}}}}|gbp}} / {{Dictionary/price/{{lc:{{BASEPAGENAME}}}}|eur}}€</td></tr>}} | }}</th><td>${{Dictionary/price/{{lc:{{BASEPAGENAME}}}}|usd}} / £{{Dictionary/price/{{lc:{{BASEPAGENAME}}}}|gbp}} / {{Dictionary/price/{{lc:{{BASEPAGENAME}}}}|eur}}€</td></tr>}} | ||
</table> | </table> | ||
Line 121: | Line 123: | ||
| ru = Предмет | | ru = Предмет | ||
| pl = Przedmiot | | pl = Przedmiot | ||
| zh-hant = 配件 | |||
}}</div> | }}</div> | ||
{{Backpack item | {{Backpack item | ||
Line 144: | Line 147: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Translation switching|en, fi, fr, pt-br, ru, pl}} | {{Translation switching|en, fi, fr, pt-br, ru, pl, zh-hant}} | ||
{{doc begin}} | {{doc begin}} | ||
This template is used to display information about an item. | This template is used to display information about an item. |
Revision as of 01:59, 10 July 2011
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Item infobox/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, fi, fr, pt-br, ru, pl, zh-hant (add) |
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
This is normal.
Documentation for Item infobox
This template is used to display information about an item.
Parameters
Parameter | Example | Description |
---|---|---|
name | Spud Hat | A name that will be displayed at the top of the infobox, usually this isn't necessary and will use the page title by default. |
image | Spudburger.png | A new image to use under the item's name at the top. Use this only if necessary and stick to the set convention as much as possible. |
slot | Head | The slot that the item is equipped in. |
used-by | Atlas, P-body | A list of bots that can equip the item. |
shared from | tf2 | The game that the item is shared from. Possible values: "tf2 ".
|
level | Level 100 Testing Apparatus | The level of the item (used in backpack example) |
team-colors | yes | If set to yes the infobox will link to two versions of a given team colored hat image under the item image, if set to two-items the item image will be removed and the team colored images replace it, stacked vertically. |
quality | genuine | Recolor the item name text to represent a different quality (unique by default) |