Template:Item infobox: Difference between revisions
Jump to navigation
Jump to search
(Work please) |
mNo edit summary |
||
(43 intermediate revisions by 22 users not shown) | |||
Line 3: | Line 3: | ||
<div class="section">{{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}</div> | <div class="section">{{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}</div> | ||
{{# | {{#switch:{{{team-colors|}}} | ||
<div style="width: 50%; float: left; background: #d46f2a; font-weight: bold; text-align: center;"> | | yes = <div style="text-align: center;">[[Image:{{#if:{{{image|}}}|{{{image}}}|Item {{uc:{{BASEPAGENAME}}}}.png}}|200px]]</div> | ||
<div style="width: 50%; float: right; background: #0090ff; font-weight: bold; text-align: center;"> | <div> | ||
<div style="width: 50%; float: left; background: #d46f2a; font-weight: bold; text-align: center;">{{Character|p-body}}</div> | |||
<div style="width: 50%; float: right; background: #0090ff; font-weight: bold; text-align: center;">{{Character|atlas}}</div> | |||
</div> | </div> | ||
<div> | <div> | ||
Line 16: | Line 17: | ||
[[Image:Atlas {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|128px]] | [[Image:Atlas {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|128px]] | ||
</div> | </div> | ||
</div>}} | </div> | ||
| two-items = <div class="section" style="background: #d46f2a;">{{Character|p-body}}</div> | |||
<div class="section">Basic Information</div> | <div style="text-align: center;">[[Image:P-body {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|200px]]</div> | ||
<div class="section" style="background: #0090ff;">{{Character|atlas}}</div> | |||
<div style="text-align: center;">[[Image:Atlas {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|200px]]</div> | |||
| #default = <div style="text-align: center;">[[Image:{{#if:{{{image|}}}|{{{image}}}|Item {{uc:{{BASEPAGENAME}}}}.png}}|200px]]</div> | |||
}} | |||
<div class="section">{{lang | |||
| ar = معلومات أساسية | |||
| cs = Základní informace | |||
| da = Information | |||
| de = Informationen | |||
| en = Basic Information | |||
| es = Información básica | |||
| fi = Perustiedot | |||
| fr = Informations de base | |||
| hu = Alapvető információk | |||
| it = Informazioni di Base | |||
| ja = インフォメーション | |||
| ko = 기본 정보 | |||
| nl = Basisinformatie | |||
| no = Grunnleggende informasjon | |||
| pl = Podstawowe informacje | |||
| pt = Informações Básicas | |||
| pt-br = Informações básicas | |||
| ro = Informaţii de bază | |||
| ru = Информация | |||
| sv = Grundläggande Information | |||
| tr = Temel Bilgiler | |||
| zh-hans = 基本信息 | |||
| zh-hant = 資訊 | |||
}}</div> | |||
<table style="text-align: left;"> | <table style="text-align: left;"> | ||
{{#if:{{{used-by|}}}|<tr><th> | {{#if:{{{used-by|}}}|<tr><th>{{lang | ||
{{#if:{{{slot|}}}|<tr><th>Slot:</th><td>{{{slot}}}</td></tr>}} | | ar = يلبسها: | ||
</table> | | cs = Používá: | ||
| da = Båret af: | |||
| de = Getragen von: | |||
| en = Worn by: | |||
| es = Usado por: | |||
| fr = Porté par : | |||
| fi = Käyttäjät: | |||
| hu = Viselheti: | |||
| it = Indossato da: | |||
| ja = 装備: | |||
| ko = 착용자 | |||
| nl = Gedragen door: | |||
| no = Båret av: | |||
| pl = Dla postaci: | |||
| pt = Usado por: | |||
| pt-br = Usado por: | |||
| ro = Purtată de: | |||
| ru = Используется: | |||
| sv = Buren av: | |||
| tr = Kullanan sınıf: | |||
| zh-hans = 可装备的兵种: | |||
| zh-hant = 裝備: | |||
}}</th><td>{{{used-by}}}</td></tr>}} | |||
{{#if:{{{shared-from|}}}|<tr><th>{{lang | |||
| de = Geteilt von: | |||
| en = Shared from: | |||
| es = Procedente de: | |||
| fi = Jaettu: | |||
| fr = Partagé depuis : | |||
| pl = Dzielone od: | |||
| pt-br = Compartilhado de: | |||
| ru = Позаимствовано из: | |||
| zh-hant = 源自: | |||
}}</th><td>{{#switch: {{{shared-from}}} | |||
| tf2 = [[Image:TF2_game_icon.png|16px]] [[Team Fortress 2{{if lang}}|Team Fortress 2]] | |||
| #default: Please enter a known game code. | |||
}}</td></tr>}} | |||
{{#if:{{{slot|}}}|<tr><th>{{lang | |||
| ar = وضع | |||
| cs = Slot: | |||
| da = Position: | |||
| de = Position: | |||
| en = Slot: | |||
| es = Espacio: | |||
| fr = Emplacement : | |||
| fi = Paikka: | |||
| hu = Slot | |||
| ja = スロット: | |||
| ko = 슬롯 | |||
| nl = Slot: | |||
| no = Spalte: | |||
| pt = Ranhura: | |||
| pt-br = Compartimento: | |||
| ru = Слот: | |||
| sv = Position: | |||
| zh-hans = 类型: | |||
| zh-hant = 類型: | |||
}}</th><td>{{{slot}}}</td></tr>}} | |||
{{#ifexist:Template:Dictionary/price/{{lc:{{BASEPAGENAME}}}}|<tr><th>{{lang | |||
| de = Preis: | |||
| en = Price: | |||
| cs = Cena: | |||
| es = Precio: | |||
| fi = Hinta: | |||
| fr = Prix : | |||
| pt-br = Preço: | |||
| ru = Цена: | |||
| pl = Cena | |||
| zh-hant = 價格: | |||
}}</th><td>{{item price|item={{BASEPAGENAME}}}}<br>[https://store.steampowered.com/buyitem/620/{{Dictionary/defindex/{{lc:{{BASEPAGENAME}}}}}} {{common string|Buy Now}}]{{#if:{{{item-price+|}}}|<small><br/>{{{item-price+|}}}</small>}}</td></tr>}}</table> | |||
<div class="section">Item</div> | <div class="section">{{lang | ||
| de = Gegenstand | |||
| en = Item | |||
| cs = Předmět | |||
| es = Objeto | |||
| fi = Esine | |||
| fr = Objet | |||
| pt-br = Item | |||
| ru = Предмет | |||
| pl = Przedmiot | |||
| zh-hant = 配件 | |||
}}</div> | |||
{{Backpack item | {{Backpack item | ||
|item-name-local = {{#if:{{{name|}}}|{{{name}}}|{{uc:{{BASEPAGENAME}}}}}} | |item-name-local = {{#if:{{{name|}}}|{{uc:{{{name}}}}}|{{uc:{{BASEPAGENAME}}}}}} | ||
|item-name = {{#if:{{{name-override|}}}|{{{name-override}}}|{{uc:{{BASEPAGENAME}}}}}} | |item-name = {{#if:{{{name-override|}}}|{{{name-override}}}|{{uc:{{BASEPAGENAME}}}}}} | ||
|item-level = {{{level|Level 1}}} | |item-level = {{{level|Level 1}}} | ||
|quality = {{{quality|unique}}} | |quality = {{{quality|unique}}} | ||
| item-description = {{#if:{{{item-description|}}} | |||
| {{{item-description|}}} | |||
| {{#switch:{{lc:{{{type|}}}}} | |||
| hats | |||
| head | |||
| hat | |||
| headwear = {{{neutral-attributes|}}} | |||
| #default = {{ns:0}}<!-- NULL --> | |||
}} | |||
}} | |||
|width = 254px | |width = 254px | ||
|style = margin: 2px auto 2px auto; | |style = margin: 2px auto 2px auto; | ||
Line 35: | Line 155: | ||
</div> | </div> | ||
</includeonly> | {{lang cat|Items}}</includeonly><noinclude> | ||
<noinclude> | {{Translation switching|cs, de, es, 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. | ||
Line 60: | Line 180: | ||
| used-by | | used-by | ||
| [[Atlas]], [[P-body]] | | [[Atlas]], [[P-body]] | ||
| A list of | | A list of bots that can equip the item. | ||
|- | |||
| shared from | |||
| tf2 | |||
| The game that the item is shared from. Possible values: "<code>tf2</code>". | |||
|- | |- | ||
| level | | level | ||
Line 68: | Line 192: | ||
| team-colors | | team-colors | ||
| yes | | yes | ||
| If set the infobox will link to two versions of a given team colored hat image. | | 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 | | quality |
Latest revision as of 18:29, 25 June 2024
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: cs, de, es, 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) |