Template:Infobox class: Difference between revisions
Template page
More actions
Might as well migrate from PNG to WebP to make life easier, since Fandom serves WebP by default |
added /es |
||
| (46 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{| class=" | {| class="infobox" width=320px | ||
|+ | |+ | ||
! colspan="2" | | ! class="infobox-title" colspan="2" | {{{title|{{PAGENAME}}}}} | ||
{{#ifexist: File: | {{#ifexist: File:{{{image|{{PAGENAME}}}}}_red.png | | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" {{!}} | {{!}} class="infobox-image" colspan="2" {{!}} | ||
{{Switcher | |||
| | |[[File:{{{image|{{PAGENAME}}}}}_red.png|center|frameless|256px]] | ||
| | |RED | ||
| | |[[File:{{{image|{{PAGENAME}}}}}_blue.png|center|frameless|256px]] | ||
|BLU | |||
|[[File:{{{image|{{PAGENAME}}}}}_yellow.png|center|frameless|256px]] | |||
|YLW | |||
|[[File:{{{image|{{PAGENAME}}}}}_green.png|center|frameless|256px]] | |||
|GRN | |||
|[[File:{{{image|{{PAGENAME}}}}}_global.png|center|frameless|256px]] | |||
|Global}}|{{#ifexist: File:{{{image|{{PAGENAME}}}}}.png | | |||
{{!}}- | |||
{{!}} class="infobox-image" colspan="2" {{!}} | |||
[[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|256px]]}}}} | |||
|+ | |||
! colspan="2" | {{Lang | |||
| en = Basic Information | |||
| es = Información básica | |||
| fr = Informations de base | |||
| zh-hans = 基本信息 | |||
}} | }} | ||
{{#if: {{{class|}}} | | {{#if: {{{class|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Icon {{!!}} [[File:{{{class | {{!}} {{Lang | ||
| en = Icon | |||
| es = Icono | |||
| fr = Icône | |||
| zh-hans = 图标 | |||
}} {{!!}} [[File:{{{class}}}.png]] | |||
}} | }} | ||
{{#if: {{{type|}}} | | {{#if: {{{type|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Type {{!!}} | {{!}} {{Lang | ||
| en = Type | |||
| es = Tipo | |||
| fr = Type | |||
| zh-hans = 类型 | |||
}} {{!!}} {{ #switch: {{{type}}} | |||
| Offensive = {{Lang | |||
| en = [[Classes#Offense|Offensive]] | |||
| es = [[Classes/es#Ataque|Ataque]] | |||
| fr = [[Classes/fr#Attaque|Offensif]] | |||
| zh-hans = [[Classes/zh-hans#Offense|进攻型]] | |||
}} | |||
| Defensive = {{Lang | |||
| en = [[Classes#Defense|Defensive]] | |||
| es = [[Classes/es#Defensa|Defensa]] | |||
| fr = [[Classes/fr#Défense|Défensif]] | |||
| zh-hans = [[Classes/zh-hans#Defense|防守型]] | |||
}} | |||
| Support = {{Lang | |||
| en = [[Classes#Support|Support]] | |||
| es = [[Classes/es#Apoyo|Apoyo]] | |||
| fr = [[Classes/fr#Support|Support]] | |||
| zh-hans = [[Classes/zh-hans#Support|支援型]] | |||
}} | |||
| Special = {{Lang | |||
| en = [[Classes#Special|Special]] | |||
| es = [[Classes/es#Especial|Especial]] | |||
| fr = [[Classes/fr#Spécial|Spécial]] | |||
| zh-hans = [[Classes/zh-hans#Special|特殊兵种]] | |||
}} | |||
}} | |||
}} | }} | ||
{{#if: {{{health|}}} | | {{#if: {{{health|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Health {{!!}} {{{health | {{!}} {{Lang | ||
| en = Health | |||
| es = Salud | |||
| fr = Santé | |||
| zh-hans = 生命值 | |||
}} {{!!}} {{{health}}} {{#if: {{{overhealed|}}} | ({{{overhealed}}} {{Lang | |||
| en = with overheal | |||
| es = con exceso de curación | |||
| fr = avec overheal | |||
| zh-hans = 超量治疗 | |||
}})}} | |||
}} | }} | ||
{{#if: {{{speed|}}} | | {{#if: {{{speed|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Speed {{!!}} {{{speed | {{!}} {{Lang | ||
| en = Speed | |||
| es = Velocidad | |||
| fr = Vitesse | |||
| zh-hans = 速度 | |||
}} {{!!}} {{{speed}}}% | |||
}} | }} | ||
|} | |} | ||
< | <includeonly> | ||
{{#if: {{{nocategory|{{NAMESPACE}}}}}||[[Category:Classes{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]] | |||
< | {{#if: {{{type|}}}|[[Category:{{{type}}} classes{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]}}}}</includeonly> | ||
{{ | <noinclude> <templatedata> | ||
{ | |||
"params": { | |||
"title": { | |||
"description": "Name of the class. (only use when it doesn't match page name)", | |||
"type": "string" | |||
}, | |||
"image": { | |||
}} | "description": "Prefix for the images of the class. (only use when it doesn't match page name)", | ||
</ | "type": "wiki-file-name" | ||
[[Category:Infobox]] | }, | ||
"class": { | |||
"description": "Icon of the class.", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"type": { | |||
"description": "Type of the class.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"health": { | |||
"description": "Health of the class.", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"overhealed": { | |||
"description": "Health of the class, when overhealed.", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"speed": { | |||
"description": "Speed of the class.", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"nocategory": { | |||
"description": "Disables categories.", | |||
"type": "boolean" | |||
} | |||
}, | |||
"description": "Infobox for class pages." | |||
} | |||
</templatedata> | |||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||