Template:HeroRosterCard: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) automated abilities |
Fix alignment of hero renders |
||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
<div style="display:inline-block; margin: 15px 10px; width: 100%; max-width: 720px; box-sizing: border-box;"> | <div style="display:inline-block; margin: 15px 10px; width: 100%; max-width: 720px; box-sizing: border-box;"> | ||
{|- style="width: 100%; text-align:left; background-image: linear-gradient(30deg, #e8be86, #fdf5e8); border-collapse:collapse; border-radius: 55px; font-size: 12px; color:#000000; font-family:'Valve Pulp','Retail Demo Regular','Open Sans', 'PT Serif','Palatino','Georgia',serif;" | {|- style="table-layout: fixed; width: 100%; text-align:left; background-image: linear-gradient(30deg, #e8be86, #fdf5e8); border-collapse:collapse; border-radius: 55px; font-size: 12px; color:#000000; font-family:'Valve Pulp','Retail Demo Regular','Open Sans', 'PT Serif','Palatino','Georgia',serif;" | ||
| rowspan=" | | rowspan="3" style="width: 38%; min-width: 120px; overflow: hidden;" | <div class="HeroCard2 hide-parent-td-mobile" style="height: 280px; display: flex; align-items: center; justify-content: center; transition: 0.08s transform ease-in-out;">[[File:{{{hero|Abrams}}} Render.png|270x280px|link={{{hero|Abrams}}}{{If_lang}}]]</div> | ||
| style="text-align:center; background-color: #FCEED4; height:45px; font-size: clamp(24px, 5vw, 40px); color:#000000; line-height:8px; vertical-align: middle; border-top-right-radius: 55px;" colspan="2" | {{If lang | | style="text-align:center; background-color: #FCEED4; height:45px; font-size: clamp(24px, 5vw, 40px); color:#000000; line-height:8px; vertical-align: middle; border-top-right-radius: 55px;" colspan="2" | {{If lang | ||
| <!-- 1st Parameter: English/Default --> | | <!-- 1st Parameter: English/Default --> | ||
| Line 10: | Line 10: | ||
}} | }} | ||
|- style="background-color: #FCEED4; font-size: clamp(14px, 1.8vw, 25px); color:#000000; height:5px; text-align:center; font-weight:bold;" | |- style="background-color: #FCEED4; font-size: clamp(14px, 1.8vw, 25px); color:#000000; height:5px; text-align:center; font-weight:bold;" | ||
| {{#ifeq: {{{no_tags|}}}|true||{{#invoke:HeroData|get_hero_tag|{{{hero|Abrams}}}|1}} - {{#invoke:HeroData|get_hero_tag|{{{hero|Abrams}}}|2}} - {{#invoke:HeroData|get_hero_tag|{{{hero|Abrams}}}|3}}}} | | colspan="2" | {{#ifeq: {{{no_tags|}}}|true||{{#invoke:HeroData|get_hero_tag|{{{hero|Abrams}}}|1}} - {{#invoke:HeroData|get_hero_tag|{{{hero|Abrams}}}|2}} - {{#invoke:HeroData|get_hero_tag|{{{hero|Abrams}}}|3}}}} | ||
|- style="background-color:#FCEED4; font-size:14px; color:#000000; height:50px; text-align:center; border-bottom-right-radius: 55px;" | |- style="background-color:#FCEED4; font-size:14px; color:#000000; height:50px; text-align:center; border-bottom-right-radius: 55px;" | ||
| {{AbilityCircle|name={{{Ability1|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|1}}}}}|iconsize=48|bgsize=69}} {{AbilityCircle|name={{{Ability2|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|2}}}}}|iconsize=48|bgsize=69}} {{AbilityCircle|name={{{Ability3|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|3}}}}}|iconsize=48|bgsize=69}} {{AbilityCircle|name={{{Ability4|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|4}}}}}|iconsize=48|bgsize=69}} | | colspan="2" | {{AbilityCircle|name={{{Ability1|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|1}}}}}|iconsize=48|bgsize=69}} {{AbilityCircle|name={{{Ability2|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|2}}}}}|iconsize=48|bgsize=69}} {{AbilityCircle|name={{{Ability3|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|3}}}}}|iconsize=48|bgsize=69}} {{AbilityCircle|name={{{Ability4|{{#invoke:Abilities|get_ability_name|{{{key|hero_atlas}}}|4}}}}}|iconsize=48|bgsize=69}} | ||
|} | |} | ||
</div></onlyinclude> | </div></onlyinclude> | ||
Revision as of 01:11, 16 January 2026
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| key | key | Internal name of the Hero, used to grab summary and role.
| Unknown | optional |
| hero | hero | The name of the Hero. Used to write the title, summary and get the render image.
| Unknown | required |
| 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 | required |
| Ability2 | Ability2 | The name of the character's second ability.
| Unknown | required |
| Ability3 | Ability3 | The name of the character's third ability.
| Unknown | required |
| Ability4 | Ability4 | The name of the character's ultimate.
| 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 |