Difference between revisions of "Template:Item infobox/sandbox"
m (testing a potential change to the 'gift' parameter) |
(Updated to current, and testing out new logic for tournament medals.) |
||
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 173: | Line 168: | ||
| <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 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-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 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-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 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-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 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-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 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-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 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-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 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-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 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-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-class1-name|{{#ifeq: {{{team-colors-class9}}} | other | {{common string|Other classes}} |{{class link|{{{team-colors-class9}}}}}}}}}}'''</td> |
</table> | </table> | ||
</td> | </td> | ||
Line 1,189: | Line 1,184: | ||
<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 |
− | | pl = Dostępne | + | | pl = Dostępne Jakości |
| pt = Qualidades Disponíveis | | pt = Qualidades Disponíveis | ||
− | | pt-br = Qualidades | + | | 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,217: | ||
-->{{#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,420: | ||
| 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,466: | ||
| 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 08:53, 24 July 2017
This template is very complex. 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/sandbox/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. |
Template documentation [infobox/sandbox/doc?action=edit&preload=Template:Documentation/preload create]