Template:Infobox hero: Difference between revisions

Jump to navigation Jump to search
fixed name localization
fixed non-image hero titles, fixed spacing, removed quotation from hero tags and seo
Line 43: Line 43:
<div class="infobox-title-hero">
<div class="infobox-title-hero">
<div class="infobox-title-hero-left"></div>
<div class="infobox-title-hero-left"></div>
<div class="infobox-title-hero-middle {{If lang|{{#ifeq:{{#var:show_logo}}|true|{{#ifexist:File:{{#var:hero_en}}_name.png|">{{Template:Icon/White|[[File:{{#var:hero_en}}_name.png|{{#var:theme-logo-height}}|class=notpageimage]]}}|infobox-title-hero-middle-text">{{{name|{{#var:hero_lang}}}}}}}}}|infobox-title-hero-middle-text">{{{name|{{#var:hero_lang}}}}}}}</div>
<div class="infobox-title-hero-middle">{{If lang|{{#ifeq:{{#var:show_logo}}|true|{{#ifexist:File:{{#var:hero_en}}_name.png|{{Template:Icon/White|[[File:{{#var:hero_en}}_name.png|{{#var:theme-logo-height}}|class=notpageimage]]}}|{{{name|{{#var:hero_lang}}}}}}}|{{{name|{{#var:hero_lang}}}}}}}|{{{name|{{#var:hero_lang}}}}}}}</div>
<div class="infobox-title-hero-right"><div>
<div class="infobox-title-hero-right"><div>
{{#ifeq:{{#var:show_icon}}|true|{{#ifexist:File:{{{icon|{{#var:hero_en}}.png}}}|<div class="infobox-title-hero-tornbox"></div>
{{#ifeq:{{#var:show_icon}}|true|{{#ifexist:File:{{{icon|{{#var:hero_en}}.png}}}|<div class="infobox-title-hero-tornbox"></div>
Line 225: Line 225:
|}
|}
</div>
</div>
<!---- Search Engine Optimization ---->
<!--
{{#seo:
|keywords=Deadlock, {{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}, hero, abilities, wiki, MOBA, shooter, character, heroes, game, valve
|image_alt = A portrait image of {{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}} from the video game Deadlock
}}-->
<!---- Quotes rendering ---->
<!---- Quotes rendering ---->
{{#ifeq: {{{no_summary|}}}|true
{{#ifeq: {{{no_summary|}}}|true
||{{#ifeq:{{#invoke:Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true|{{Quotation||
||{{#ifeq:{{#invoke:Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true|
<div class{{=}}{{#var:quotemark}}infobox-herotags {{#var:hero_key}}{{#var:quotemark}}>
<div class{{=}}{{#var:quotemark}}infobox-herotags {{#var:hero_key}}{{#var:quotemark}}>
<div><div class{{=}}"infobox-herotag-back"></div><div class{{=}}"infobox-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|1}}</div></div>
<div><div class{{=}}"infobox-herotag-back"></div><div class{{=}}"infobox-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|1}}</div></div>
<div><div class{{=}}"infobox-herotag-back"></div><div class{{=}}"infobox-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|2}}</div></div>
<div><div class{{=}}"infobox-herotag-back"></div><div class{{=}}"infobox-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|2}}</div></div>
<div><div class{{=}}"infobox-herotag-back"></div><div class{{=}}"infobox-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|3}}</div></div>
<div><div class{{=}}"infobox-herotag-back"></div><div class{{=}}"infobox-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|3}}</div></div>
</div>}}|}}}}
</div>|}}}}<!--
 
--></onlyinclude><!--noinclude>{{Documentation}}</noinclude>-->
</onlyinclude><!--noinclude>{{Documentation}}</noinclude>-->