Template:Infobox hero: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) centralize title text if no_icon=true |
Gammaton32 (talk | contribs) added class=notpageimage to the name image |
||
| Line 11: | Line 11: | ||
{{#ifeq: {{{no_icon|}}}|true|<div style="display: center; justify-content: space-between">|<div style="display: flex; justify-content: space-between">}} | {{#ifeq: {{{no_icon|}}}|true|<div style="display: center; justify-content: space-between">|<div style="display: flex; justify-content: space-between">}} | ||
<div style="width: 50px;"></div> | <div style="width: 50px;"></div> | ||
<div style="margin-top:4px;font-family:'Valve Pulp', 'Forevs Demo Medium', 'Retail Demo', 'Open Sans', 'PT Serif','Palatino',serif;line-height:30px;">{{If lang|{{#ifeq: {{{no_name|}}}|true|{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}|{{Template:Icon/White|[[File:{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}_name.png|130px]]}}}}|{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}}}</div> | <div style="margin-top:4px;font-family:'Valve Pulp', 'Forevs Demo Medium', 'Retail Demo', 'Open Sans', 'PT Serif','Palatino',serif;line-height:30px;">{{If lang|{{#ifeq: {{{no_name|}}}|true|{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}|{{Template:Icon/White|[[File:{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}_name.png|130px|class=notpageimage]]}}}}|{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}}}</div> | ||
<div style="padding-left: 10px;">{{#ifeq: {{{no_icon|}}}|true||[[Image:{{{icon|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|Name}}}}}.png|frameless|center|35px]]}}</div></div> | <div style="padding-left: 10px;">{{#ifeq: {{{no_icon|}}}|true||[[Image:{{{icon|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|Name}}}}}.png|frameless|center|35px]]}}</div></div> | ||
|- | |- | ||