Difference between revisions of "Template:Item infobox"
(deprecating the gift parameter since there are only 3 tradable items that cannot be giftwrapped) |
GrampaSwood (talk | contribs) m (mc) |
||
(16 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude><!-- | <noinclude><!-- | ||
− | + | Translators: make changes here, but please condense them into one edit. | |
− | + | NOTE: | |
− | + | ||
− | + | The coding of this template is quite complicated and may be difficult to comprehend unless you have an advanced understanding of template and ParserFunctions syntax. As it is also used on over 15,000 pages (around 50% of all articles), it is advised that you take care when editing it. Please do not make significant changes without discussing it first on the talk page. If you want to test changes to this template, please do so on its sandbox page: Template:Item infobox/sandbox. | |
− | + | ||
− | + | If you need help editing this template, please post on the talk page. | |
− | |||
− | |||
− | |||
− | |||
− | |||
--></noinclude>{{#switch: {{#ifeq: {{NAMESPACE}} | User | {{#ifeq: {{PAGENAME}} | {{SUBPAGENAME}} | error | normal}} | normal}} | --></noinclude>{{#switch: {{#ifeq: {{NAMESPACE}} | User | {{#ifeq: {{PAGENAME}} | {{SUBPAGENAME}} | error | normal}} | normal}} | ||
Line 65: | Line 60: | ||
|number-of-3d-images={{{number-of-3d-images|}}} | |number-of-3d-images={{{number-of-3d-images|}}} | ||
|view1={{{view1|{{BASEPAGENAME}} RED 3D.jpg}}} | |view1={{{view1|{{BASEPAGENAME}} RED 3D.jpg}}} | ||
− | |view1name={{{view1name|RED}}} | + | |view1name={{{view1name|{{common string|RED}}}}} |
|view2={{{view2|{{BASEPAGENAME}} BLU 3D.jpg}}} | |view2={{{view2|{{BASEPAGENAME}} BLU 3D.jpg}}} | ||
− | |view2name={{{view2name|BLU}}} | + | |view2name={{{view2name|{{common string|BLU}}}}} |
|view3={{{view3|{{BASEPAGENAME}} RED Alt 3D.jpg}}} | |view3={{{view3|{{BASEPAGENAME}} RED Alt 3D.jpg}}} | ||
|view3name={{{view3name|}}} | |view3name={{{view3name|}}} | ||
Line 106: | Line 101: | ||
|3d-festive-alt = yes | |3d-festive-alt = yes | ||
|view1={{{view1|{{BASEPAGENAME}} 3D.jpg}}} | |view1={{{view1|{{BASEPAGENAME}} 3D.jpg}}} | ||
− | |view1name={{{view1name|Normal}}} | + | |view1name={{{view1name|{{common string|Normal}}}}} |
|view2={{{view2|{{BASEPAGENAME}} Festive RED 3D.jpg}}} | |view2={{{view2|{{BASEPAGENAME}} Festive RED 3D.jpg}}} | ||
|view2name={{{view2name|{{common string|Festive}} ({{common string|RED}})}}} | |view2name={{{view2name|{{common string|Festive}} ({{common string|RED}})}}} | ||
Line 144: | Line 139: | ||
// End 'Buy Now' button | // End 'Buy Now' button | ||
+ | |||
+ | // 'View Listings' button | ||
+ | |||
+ | -->{{#ifeq:{{{marketable|}}}|yes|<!-- | ||
+ | --><tr><td colspan="2" class="infobox-data" style="text-align:center">{{Buy now Market|{{lc:{{BASEPAGENAME}}}}}}</td></tr> | ||
+ | }}<!-- | ||
+ | |||
+ | // End 'View Listings' button | ||
+ | |||
// Team-colored images | // Team-colored images | ||
Line 173: | Line 177: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class1}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class1}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class1-name|{{#ifeq: {{{team-colors-class1}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class1}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 182: | Line 186: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class2}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class2}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class2-name|{{#ifeq: {{{team-colors-class2}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class2}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 191: | Line 195: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class3}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class3}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class3-name|{{#ifeq: {{{team-colors-class3}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class3}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 200: | Line 204: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class4}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class4}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class4-name|{{#ifeq: {{{team-colors-class4}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class4}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 209: | Line 213: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class5}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class5}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class5-name|{{#ifeq: {{{team-colors-class5}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class5}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 218: | Line 222: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class6}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class6}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class6-name|{{#ifeq: {{{team-colors-class6}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class6}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 227: | Line 231: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class7}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class7}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class7-name|{{#ifeq: {{{team-colors-class7}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class7}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 236: | Line 240: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class8}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class8}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class8-name|{{#ifeq: {{{team-colors-class8}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class8}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 245: | Line 249: | ||
| <td colspan="2" style="padding:none;"> | | <td colspan="2" style="padding:none;"> | ||
<table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
− | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{#ifeq: {{{team-colors-class9}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class9}}}}}}}'''</td> | + | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class9-name|{{#ifeq: {{{team-colors-class9}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class9}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 251: | Line 255: | ||
<td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:RED {{BASEPAGENAME}}{{#ifeq: {{{team-colors-class9}}}|other||_{{{team-colors-class9}}}}}.png|95x95px]]</td> | <td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:RED {{BASEPAGENAME}}{{#ifeq: {{{team-colors-class9}}}|other||_{{{team-colors-class9}}}}}.png|95x95px]]</td> | ||
<td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:BLU {{BASEPAGENAME}}{{#ifeq: {{{team-colors-class9}}}|other||_{{{team-colors-class9}}}}}.png|95x95px]]</td> | <td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:BLU {{BASEPAGENAME}}{{#ifeq: {{{team-colors-class9}}}|other||_{{{team-colors-class9}}}}}.png|95x95px]]</td> | ||
− | </tr>}} }} }} }} }} }} }} }} | + | </tr>{{#if: {{{team-colors-class10|}}} |
+ | | <td colspan="2" style="padding:none;"> | ||
+ | <table style="width:100%; background:none; border:none; padding:none; margin:none;" cellspacing="0" cellpadding="0"> | ||
+ | <td style="width:100%; background:#f9d48a; text-align:center; border-right:1px solid #fff;">'''{{{team-colors-class10-name|{{#ifeq: {{{team-colors-class10}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class10}}}}}}}}}}'''</td> | ||
+ | </table> | ||
+ | </td> | ||
+ | <tr> | ||
+ | <td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:RED {{BASEPAGENAME}}{{#ifeq: {{{team-colors-class10}}}|other||_{{{team-colors-class10}}}}}.png|95x95px]]</td> | ||
+ | <td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:BLU {{BASEPAGENAME}}{{#ifeq: {{{team-colors-class10}}}|other||_{{{team-colors-class10}}}}}.png|95x95px]]</td> | ||
+ | </tr>}} }} }} }} }} }} }} }} }} | ||
| <tr> | | <tr> | ||
<td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:{{{skin-image-red|RED {{BASEPAGENAME}}.png}}}|95x95px]]</td> | <td style="text-align:center; margin:0em auto;" class="infobox-team-skins">[[File:{{{skin-image-red|RED {{BASEPAGENAME}}.png}}}|95x95px]]</td> | ||
Line 512: | Line 525: | ||
| ko = 유탄 | | ko = 유탄 | ||
| pl = Granaty | | pl = Granaty | ||
+ | | pt = Granadas | ||
| pt-br = Granadas | | pt-br = Granadas | ||
| ru = Гранаты | | ru = Гранаты | ||
Line 582: | Line 596: | ||
| en = Contributed by: | | en = Contributed by: | ||
| es = Creado por: | | es = Creado por: | ||
− | | fi = | + | | fi = Tekijä▲: |
| fr = Contribution de : | | fr = Contribution de : | ||
| hu = Készítette: | | hu = Készítette: | ||
Line 688: | Line 702: | ||
| nl = {{tooltip|Ruilbaar|Of je het voorwerp kan ruilen.}}: | | nl = {{tooltip|Ruilbaar|Of je het voorwerp kan ruilen.}}: | ||
| no = {{tooltip|Byttbar|Om gjenstanden kan brukes i bytting.}}: | | no = {{tooltip|Byttbar|Om gjenstanden kan brukes i bytting.}}: | ||
− | | pl = {{tooltip|Wymiana|Czy przedmiot | + | | pl = {{tooltip|Wymiana|Czy przedmiot można wymieniać?}}: |
| pt = {{tooltip|Trocável|Se este item pode ser trocado.}}: | | pt = {{tooltip|Trocável|Se este item pode ser trocado.}}: | ||
| pt-br = {{tooltip|Trocável|Se este item pode ser trocado.}}: | | pt-br = {{tooltip|Trocável|Se este item pode ser trocado.}}: | ||
Line 727: | Line 741: | ||
| nl = {{tooltip|Schenkbaar|Of je het voorwerp kunt inpakken met Cadeaupapier.}}: | | nl = {{tooltip|Schenkbaar|Of je het voorwerp kunt inpakken met Cadeaupapier.}}: | ||
| no = {{tooltip|Pakkbar|Om gjenstanden kan bli pakket in med gavepapir.}}: | | no = {{tooltip|Pakkbar|Om gjenstanden kan bli pakket in med gavepapir.}}: | ||
− | | pl = {{tooltip|Prezent|Czy przedmiot | + | | pl = {{tooltip|Prezent|Czy przedmiot można zapakować jako prezent?}}: |
| pt = {{tooltip|Presenteável|Se este item pode ser embrulhado, utilizando o Papel de Embrulho.}}: | | pt = {{tooltip|Presenteável|Se este item pode ser embrulhado, utilizando o Papel de Embrulho.}}: | ||
− | | pt-br = {{tooltip|Presenteável|Se este item pode ser embrulhado usando o Embrulho para | + | | pt-br = {{tooltip|Presenteável|Se este item pode ser embrulhado usando o Embrulho para Presente.}}: |
| ro = {{tooltip|Împachetabil|Acest produs se poate împacheta.}}: | | ro = {{tooltip|Împachetabil|Acest produs se poate împacheta.}}: | ||
| ru = {{tooltip|Упаковка|Предмет может быть завернут в подарочную упаковку.}}: | | ru = {{tooltip|Упаковка|Предмет может быть завернут в подарочную упаковку.}}: | ||
Line 805: | Line 819: | ||
| pl = {{tooltip|Przemalowanie|Czy przedmiot może być przemalowany?}}: | | pl = {{tooltip|Przemalowanie|Czy przedmiot może być przemalowany?}}: | ||
| pt = {{tooltip|Pintável|Se este item pode ser pintado, utilizando uma Lata de Tinta.}}: | | pt = {{tooltip|Pintável|Se este item pode ser pintado, utilizando uma Lata de Tinta.}}: | ||
− | | pt-br = {{tooltip|Pintável|Se este item pode ser pintado usando uma Lata de | + | | pt-br = {{tooltip|Pintável|Se este item pode ser pintado usando uma Lata de Tinta.}}: |
| ru = {{tooltip|Покраска|Предмет может быть покрашен.}}: | | ru = {{tooltip|Покраска|Предмет может быть покрашен.}}: | ||
| sv = {{tooltip|Kan målas|Om objektet kan målas med hjälp av en Färgburk.}}: | | sv = {{tooltip|Kan målas|Om objektet kan målas med hjälp av en Färgburk.}}: | ||
Line 868: | Line 882: | ||
| nl = {{tooltip|Benoembaar|Of je het voorwerp een andere naam kan geven met de Naamplaat.}}: | | nl = {{tooltip|Benoembaar|Of je het voorwerp een andere naam kan geven met de Naamplaat.}}: | ||
| no = {{tooltip|Navnbar|Om gjenstanden kan bli omkalt med en navnelapp.}}: | | no = {{tooltip|Navnbar|Om gjenstanden kan bli omkalt med en navnelapp.}}: | ||
− | | pl = {{tooltip|Nazywanie|Czy | + | | pl = {{tooltip|Nazywanie|Czy można zmienić nazwę przedmiotu?}}: |
| pt = {{tooltip|Renomeável|Se o nome deste item pode ser alterado, utilizando a Etiqueta de Nome.}}: | | pt = {{tooltip|Renomeável|Se o nome deste item pode ser alterado, utilizando a Etiqueta de Nome.}}: | ||
− | | pt-br = {{tooltip|Renomeável|Se o nome deste item pode ser alterado usando a Etiqueta de | + | | pt-br = {{tooltip|Renomeável|Se o nome deste item pode ser alterado usando a Etiqueta de Nome.}}: |
| ru = {{tooltip|Переименование|Предмет может быть переименован.}}: | | ru = {{tooltip|Переименование|Предмет может быть переименован.}}: | ||
| sv = {{tooltip|Namnbyte|Om objektet kan döpas om med en Namnlapp.}}: | | sv = {{tooltip|Namnbyte|Om objektet kan döpas om med en Namnlapp.}}: | ||
Line 971: | Line 985: | ||
| nl = {{tooltip|Middeleeuws|Of je het voorwerp kunt gebruiken in de Middeleeuwse modus.}}: | | nl = {{tooltip|Middeleeuws|Of je het voorwerp kunt gebruiken in de Middeleeuwse modus.}}: | ||
| no = {{tooltip|Middelalder|Om gjenstanden kan brukes i Middelalder modus.}}: | | no = {{tooltip|Middelalder|Om gjenstanden kan brukes i Middelalder modus.}}: | ||
− | | pl = {{tooltip|Średniowiecze|Czy przedmiot może być używany w | + | | pl = {{tooltip|Średniowiecze|Czy przedmiot może być używany w Średniowieczu?}}: |
| pt = {{tooltip|Medieval|Se o item pode ser usado no Modo Medieval.}}: | | pt = {{tooltip|Medieval|Se o item pode ser usado no Modo Medieval.}}: | ||
| pt-br = {{tooltip|Medieval|Se o item pode ser usado no Modo Medieval.}}: | | pt-br = {{tooltip|Medieval|Se o item pode ser usado no Modo Medieval.}}: | ||
Line 1,189: | Line 1,203: | ||
<th class="infobox-header" colspan="2">{{lang | <th class="infobox-header" colspan="2">{{lang | ||
| en = Available Qualities | | en = Available Qualities | ||
− | | cs = Dostupné | + | | cs = Dostupné Kvality |
| da = Tilgængelige Kvaliteter | | da = Tilgængelige Kvaliteter | ||
| de = Verfügbare Qualitäten | | de = Verfügbare Qualitäten | ||
− | | es = Aspectos | + | | es = Aspectos Disponibles |
− | | fi = Olemassaolevat | + | | fi = Olemassaolevat Laadut |
− | | fr = Qualités | + | | fr = Qualités Disponibles |
− | | hu = Rendekjezésre álló | + | | hu = Rendekjezésre álló Ritkaságok |
− | | it = Qualità | + | | it = Qualità Disponibili |
| ja = 存在するクオリティ | | ja = 存在するクオリティ | ||
| ko = 존재하는 품질 | | ko = 존재하는 품질 | ||
− | | no = Tilgjengelige | + | | no = Tilgjengelige Kvaliteter |
+ | | nl = Verkrijgbare kwaliteiten | ||
| pl = Dostępne jakości | | pl = Dostępne jakości | ||
| pt = Qualidades Disponíveis | | pt = Qualidades Disponíveis | ||
| pt-br = Qualidades disponíveis | | pt-br = Qualidades disponíveis | ||
| ru = Доступные качества | | ru = Доступные качества | ||
− | | sv = Tillgängliga | + | | sv = Tillgängliga Kvaliteter |
| tr = Mevcut Nitelikler | | tr = Mevcut Nitelikler | ||
| zh-hans = 可获取的品质 | | zh-hans = 可获取的品质 | ||
Line 1,222: | Line 1,237: | ||
-->{{#switch:{{lc:{{{loadout|¬}}}}} | -->{{#switch:{{lc:{{{loadout|¬}}}}} | ||
| no | | no | ||
− | | ¬ = {{ns:0}}<!-- Hide loadout by default | + | | ¬ = {{ns:0}}<!-- Hide loadout by default and if loadout is set to 'no' --> |
| #default = <tr> | | #default = <tr> | ||
<th class="infobox-header" colspan="2">{{lang | <th class="infobox-header" colspan="2">{{lang | ||
Line 1,425: | Line 1,440: | ||
| weapons = {{#if: {{{contributed-by|}}}|{{ns:0}}|{{#ifeq: {{lc:{{{game|}}}}}|tfc|{{ns:0}}|{{lang cat|Valve-made items|sort={{ucfirst:{{{type|-}}}}} {{BASEPAGENAME}}}}}}}} | | weapons = {{#if: {{{contributed-by|}}}|{{ns:0}}|{{#ifeq: {{lc:{{{game|}}}}}|tfc|{{ns:0}}|{{lang cat|Valve-made items|sort={{ucfirst:{{{type|-}}}}} {{BASEPAGENAME}}}}}}}} | ||
}} | }} | ||
− | }}<!-- | + | }} |
+ | {{#ifeq:{{{limited|}}}|yes|{{lang cat|Limited items}}}}<!-- | ||
// Deprecated parameter tracking. | // Deprecated parameter tracking. | ||
Line 1,470: | Line 1,486: | ||
| type = style | | type = style | ||
| image = Warning_yellow.png | | image = Warning_yellow.png | ||
− | | contents = This template | + | | contents = This template <strong>must not</strong> be used on user pages. Please use [[Template:User item infobox]] instead. |
}} | }} | ||
+ | {{documentation}} | ||
[[Category:Infobox templates|Item infobox]] | [[Category:Infobox templates|Item infobox]] |
Revision as of 20:03, 27 August 2019
This template is very complex. Please, sandbox any changes before making them. If you have questions about this template, feel free to ask on the IRC. |
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, de, es, fr, hu, ja, ko, pl, ru, sv, tr, zh-hans (add) |
This template must not be used on user pages. Please use Template:User item infobox instead. |
This infobox template can be used to display images and basic information pertaining to items. For infoboxes for other uses, see Category:Infobox templates.
Contents
Supersession
{{Item infobox}}
deprecates the following templates:
{{Weapon infobox}}
{{Hat infobox}}
{{Tool infobox}}
Errors
This template places pages with incorrect use into tracking categories.
- Pages using
{{Item infobox}}
: 39,362 pages - Pages with errors: 988 pages
Usage
Please remove the parameters that are left blank. See Parameters section below for documentation of all parameters.
{{Item infobox | name = | game = (Only use this if the game is TFC) | type = | image = | team-colors = | team-colors-width = | two-models = | 3d-alt = | 3d-team-alt = | number-of-3d-images = | number-of-3d-team-images = | number-of-3d-alt-images = | view1name = ... | view6name = | displayed-price = | kill-icon-1 = ... | kill-icon-6 = | kill-tooltip-2 = ... | kill-tooltip-6 = | used-by = | slot = | contributed-by = | released = | released-major = | availability = | medieval = | taunt-kill = | trade = | marketable = | craft = | numbered = | paint = | rename = | ammo-loaded = | ammo-carried = | ammo-type = | reload-type = | loadout = | custom-icon = | level = | no-level = | att-1-positive = ... | att-6-negative = | item-description = }}
Parameters
Setup parameters
- name
- The displayed title of the infobox. Not necessary for most English pages as the title is collected from the page's name itself. This is also the name displayed in the loadout stats if enabled (overridden by
loadout-name
). It also overwrites the displaytitle template and changes the article name into the displayed title of the infobox. The following parameters are also aliases forname
, and function in the exact same way:NAME, title, name-override, item-name-override
- type[1]
- Changes the display of information and the categorization of the page based on type.
weapon, cosmetic, taunt, special taunt, action, tool, ingredient
- unused
- Set to anything to mark the item as "unused". This will hide the "Trading", "Crafting", etc, fields that appear by default, and also removes slot categorization. Also sets slot to "Unknown" if one is not defined.
- game[1]
- Not necessary for the majority of items. Team Fortress Classic weapon pages need to set this parameter to "
tfc
".
Image parameters
- image
- The main infobox image to be displayed directly underneath the title.
- Example:
File name.png
- Example:
- imagewidth
- The width of the image, defaults to
250px
. Use this only if the image does not display well at the default size.- Example:
96px
- Example:
- team-colors
- Set to "
yes
" if the item has team-based color variations. The images will be displayed using the syntax "File:RED <Item Name>.png
" (where <Item Name> is collected from the page's actual name). This can be overridden with different filenames usingskin-image-blu
andskin-image-red
(see below).
- team-colors-width
- Sets custom width for the team-based color variation images. Default is 95px.
- team-colors-class1, team-colors-class2 and team-colors-class3
- If item has class specific team colours, specify those classes here. Set to other for "Other classes".
- skin-image-blu and skin-image-red
- The filenames for team-color images. Overrides defaults (see above).
3d model parameters
For a more complete explanation with examples, see Module:3D viewer advanced.
- 3d-team
- If the weapon has >2 team coloured models set to
yes
.
- 3d-alt
- If the weapon has alternate models set to
yes
.
- 3d-team-alt
- If the weapon has both team coloured and non team coloured alt models set to
yes
.
- number-of-3d-team-images
- If 3d-team-alt is true set to the number of team coloured models.
- number-of-3d-alt-images
- If 3d-team-alt is true set to the number of non-team coloured alternate models.
- viewnname
- The name to display for the nth 3D image.
- viewn
- Optional overide for model image filename.
- Example:
Scattergun 3D temp.jpg
- Example:
Buy now button parameters
- displayed-price
- The name of the item to display the price of from the price dictionary, if not the same as the page name.
Kill icon parameters
Main templates:
{{Icon killicon}}
and {{Kill notice}}
The following parameters can only be used if type
has been set to weapon
or taunt
(see above). Up to 6 of each are allowed.
- hide-kill-icon
- Setting to
off
orhide
will hide the kill icon section from the infobox, even iftype
is set toweapon
ortaunt
. Common usage: weapons that do not have a kill icon (e.g. Medi Gun).
- kill-icon-n
- The weapon's kill icons. See
{{Icon killicon}}
for exact naming. By default,kill-icon-1
will be displayed using the page's name; thus in most circumstances, definingkill-icon
parameters is not necessary unless the weapon has additional kill icons (e.g.backstab
orflaming arrow
).
- kill-tooltip-n
- The weapons kill icons with an added tooltip (e.g.
Flaregun
hadouken would have the tooltip "Taunting") . Not a required parameter.
- kill-text-n
- The kill text displayed within the kill notice. If it does not display properly (i.e. the text is too big), wrap the text in
tags.
- Example:
FISH KILL!
- Example:
Information parameters
- used-by
- The class or classes that can use the item. Basic text parameter. Please use
{{Used by}}
instead of plain text.
- slot[1] [
primary, secondary, melee, pda1, pda2
] - Can only be defined when
type
is set toweapon
ortaunt
(see above). Other variations:- primary:
slot1, slot 1, 1
- secondary:
slot2, slot 2, 2
- melee:
slot3, slot 3, 3
- pda1:
pda1, pda 1, disguise kit
- pda2:
pda2, pda 2, watch, cloak
- primary:
- This template will also categorize based on these values.
- The default text displayed by these values can also be overridden by setting
slot
to any other specified value. - Note: this behaviour will disable the automatic categorization based on slot types. Categories will need to be applied to the bottom of the article manually.
- The custom-slot parameter can also be used when the slot type is non-standard (e.g. if the weapon has both Primary and Secondary slots).
- slot[1] [
- crafting-slot [
primary, secondary
] - For weapons that have a different crafting slot to their loadout slot.
- primary:
slot1, slot 1, 1
- secondary:
slot2, slot 3, 3
- primary:
- crafting-slot [
- equip-region and equip-region-2 [
whole head, hat, face, glasses, ears, beard, shirt, medal, arms, back, feet, heavy pocket, engineer belt, engineer pocket, scout necklace, sniper necklace, scout backpack, demoman bombs, medic backpack, medic necklace
] - The item's equip region according to items_game.txt
- equip-region and equip-region-2 [
- contributed-by
- The person(s) who contributed the item to the game. Basic text parameter. Not displayed unless defined specifically. Categorizes the pages into Category:Community-contributed items.
- released
- When the item was released. Basic text parameter. Not displayed unless defined specifically. Please use
{{Patch name}}
instead of plain text.
- released-major
- The named patch the item was released in. Basic text parameter. Not displayed unless defined specifically. Check Template:Dictionary/common_strings#major_update_titles for a list of parameters.
- availability
- The means of obtaining the item. Basic text parameter. Not displayed unless defined specifically. Please use
{{avail}}
instead of plain text.
- show-price
- Used to disable the display of the price if in error. Prices themselves are stored inside
{{Item price/core}}
.- Example:
off
- Example:
- trade[1] [
yes, no
] - If the item can obtained through Trading. Items are marked as tradable by default. Pages with
trade
set tono
are categorized into Category:Untradeable items.
- trade[1] [
gift- Deprecated: Since the February 29, 2016 Patch, only tradable items can be wrapped using the Gift Wrap or Giftapult. The only tradable unwrappable items are the aforementioned tools and the Description Tag. The template handles everything automatically. Not displayed if item is untradable.
- marketable[1] [
yes, no
] - If the item can be sold on the Steam Community Market.
- marketable[1] [
- rename[1] [
yes, no
] - If the item can be used with the Name Tag or Description Tag.
- rename[1] [
- medieval[1] [
yes, no
] - If the item can be used in Medieval Mode. All melee weapons default to yes.
- medieval[1] [
- taunt-kill[1] [
yes, no
] - If the item can Taunt Kill. All weapons default to no.
- taunt-kill[1] [
Ammo parameters
These parameters are only available if type
is set to weapon
or taunt
(see above).
- ammo-loaded
- The amount of ammo available in the clip (or magazine?). Basic text parameter. Hidden if set to "
N/A
" or "∞
".
- ammo-carried
- The amount of additional ammo carried by the player. Basic text parameter. Hidden if set to "
N/A
" or "∞
".
- ammo-type
- The ammo's type. Optional basic text parameter.
- reload-type
- The reloading type. Basic text parameter.
- Common uses: Single, No Reload
- show-ammo
- Set to
off
to disable the display of ammunition stats. Some example uses would be the Razorback, Darwin's Danger Shield, or the Electro Sapper.
Loadout parameters
Main template:
{{Backpack item}}
- loadout
- Set to
yes
to display loadout information as it is displayed in the backpack. Is not displayed by default.
- quality[1] [
normal, unique, community, unusual, self-made, valve
] - Item quality. Defaults to "unique" yellow. (See Rarity#Colors and documentation of
{{Backpack item}}
for full list of parameters).
- quality[1] [
- loadout-name
- The name displayed. Defaults to either the page's name itself or the displayed name (set by
name
, see above). Use this parameter when the infobox name differs to the loadout name (for example, adding the rarity prefix on non-English pages):- Example:
Необычный Призрачный металлолом
(Unusual Haunted Metal Scrap)
- Example:
- loadout-prefix
- English pages will have their loadout name preceded by "The" unless this parameter is set to "none". This will be overridden if 'loadout-name' above is defined.
- custom-icon
- Custom backpack icon for users' own purposes. Usage: entering usual file link without File: prefix.
- level
- The level and type of the item. Basic text parameter. Defaults to "Level 1-100".
- att-n-positive
- Positive attributes. Up to 6 basic text parameters.
- att-n-negative
- Negative attributes. Up to 6 basic text parameters.
- att-n-neutral
- Neutral attributes. Up to 6 basic text parameters. Use
item-description
for weapon or cosmetic descriptions instead.
- item-description
- The item's description. Basic text parameter. Displays the description with a smaller font size and lower line height so it fits neatly and stands out from the item's other attributes. Please use
{{item description}}
instead of plain text.
- item-uses
- The amount of uses the item has. Basic text parameter.
- item-flags
- The flags attached to the item. Basic text parameter.
- prefix
- suffix
- Set to "none" to hide the "Vintage" or "Community", etc, prefix/suffix but keeping the colour. Can also use a custom value, e.g. "prefix/suffix = The Best" will generate "The Best Flare Gun" or "Flare Gun The Best".
Non-article maintenance parameters
These parameters should only be used in certain circumstances.
- cat
- Disables all automatic categorization (i.e. slot categorization, etc). Does not disable maintenance tracking categories.
- override
- Overrides Polycount Pack categorization. Will not be around for much longer.