Template:HeroRosterCard: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) fixed localization, adjusted spacing for longer tags |
Gammaton32 (talk | contribs) localization fix |
||
| Line 8: | Line 8: | ||
<div>{{#ifexist:File:{{#var:hero}}_name.svg|[[File:{{#var:hero}}_name.svg|x35px|link={{{name|{{#var:hero}}}}}]]|[[{{{hero_link|{{#var:hero}}}}}|<span style=font-size:40px>{{{hero_loc|{{#var:hero}}}}}</span>]]}}</div> | <div>{{#ifexist:File:{{#var:hero}}_name.svg|[[File:{{#var:hero}}_name.svg|x35px|link={{{name|{{#var:hero}}}}}]]|[[{{{hero_link|{{#var:hero}}}}}|<span style=font-size:40px>{{{hero_loc|{{#var:hero}}}}}</span>]]}}</div> | ||
| <!-- 2nd Parameter: Other Languages --> | | <!-- 2nd Parameter: Other Languages --> | ||
<div>{{#ifexist:File:{{#var:hero}}_name_{{#invoke:Lang|get_lang_code}}.svg|[[File:{{#var:hero}}_name_{{#invoke:Lang|get_lang_code}}.svg|x35px|link={{#var:hero}}{{If lang}}]]|[[{{{hero_link|{{#var:hero}}{{If lang}}}}}|<span style=font-size:40px>{{{hero_loc|{{# | <div>{{#ifexist:File:{{#var:hero}}_name_{{#invoke:Lang|get_lang_code}}.svg|[[File:{{#var:hero}}_name_{{#invoke:Lang|get_lang_code}}.svg|x35px|link={{#var:hero}}{{If lang}}]]|[[{{{hero_link|{{#var:hero}}{{If lang}}}}}|<span style=font-size:40px>{{{hero_loc|{{#invoke:Lang|get_string|{{{key}}}}}}}}</span>]]}}</div> | ||
}}}} <div class="HeroRosterCard" style="height:250px; display: flex; align-items: center; justify-content: center;">[[File:{{#var:hero}} Render.png|270x250px|link={{#var:hero}}{{If_lang}}]]</div> | }}}} <div class="HeroRosterCard" style="height:250px; display: flex; align-items: center; justify-content: center;">[[File:{{#var:hero}} Render.png|270x250px|link={{#var:hero}}{{If_lang}}]]</div> | ||
|- | |- | ||
Latest revision as of 04:17, 23 June 2026
Template for roster cards in the Hero page. This template should be used with Template:Roster.
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| key | key | Internal name of the Hero, used to fill all parameters.
| Unknown | required |
| no_name | no_name | Use plain text for hero name instead of image (localized names don't use image by default)
| Boolean | optional |
| no_tags | no_tags | Don't use hero tags
| Boolean | optional |
| lang | lang | Language of descriptions. Optional.
| Unknown | optional |
| hero_link | hero_link | Link for hero page. Optional
| Unknown | optional |
| hero_loc | hero_loc | Override hero name. Optional.
| Unknown | optional |
| Ability1 | Ability1 | The name of the character's first ability.
| Unknown | optional |
| Ability2 | Ability2 | The name of the character's second ability.
| Unknown | optional |
| Ability3 | Ability3 | The name of the character's third ability.
| Unknown | optional |
| Ability4 | Ability4 | The name of the character's ultimate.
| Unknown | optional |