Template:Infobox hero: Difference between revisions

Jump to navigation Jump to search
if codenames isn't set then don't add it
simplified if statements
Line 51: Line 51:
|style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;"| {{Icon/Brown||{{{range|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|FalloffStartRange|2}}m → {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|FalloffEndRange|2}}}}}m}}
|style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;"| {{Icon/Brown||{{{range|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|FalloffStartRange|2}}m → {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|FalloffEndRange|2}}}}}m}}
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
{{#ifeq: {{{has_max_range|}}}|true
{{#if: {{{max_range|}}} |
|
  {{!}}  style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Max Range:
  {{!}}  style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Max Range:
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left"{{!}}{{Icon/Brown||{{{max_range|}}}m}}}}
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left"{{!}}{{Icon/Brown||{{{max_range|}}}m}}}}
Line 70: Line 69:
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left"{{!}} {{Icon/Grey|[[File:Bullet Armor.png|20px|link=Bullet Resist]]|{{{bullet_resist|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|BulletResist|3}}}}}%}}}}
{{!}}style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left"{{!}} {{Icon/Grey|[[File:Bullet Armor.png|20px|link=Bullet Resist]]|{{{bullet_resist|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|BulletResist|3}}}}}%}}}}
{{#ifeq: {{{no_spirit_resist|}}}|true|
{{#ifeq: {{{no_spirit_resist|}}}|true|
{{!}}-  
{{!}}-
|
|
{{!}}-style="vertical-align:middle;"
{{!}}-style="vertical-align:middle;"
Line 79: Line 78:
|style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;"| {{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{move_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|MaxMoveSpeed|2}}}}}m/s}}
|style="font-size: 16px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;"| {{Icon/Grey|[[File:Move speed.png|20px|link=Move Speed]]|{{{move_speed|{{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|MaxMoveSpeed|2}}}}}m/s}}
{{#ifeq: {{{no_sprint|}}}|true|
{{#ifeq: {{{no_sprint|}}}|true|
{{!}}-
{{!}}
|
|
{{!}}-style="vertical-align:middle;"
{{!}}-style="vertical-align:middle;"
Line 89: Line 88:
|-style="vertical-align:middle;"
|-style="vertical-align:middle;"
! colspan="2" style="position:relative; border-radius:7px; background-color:#2f93d6; font-size:16px; font-family:'Retail Demo Bold','Open Sans','PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight:bold; text-shadow:1.5px 1.5px 2px rgba(0, 0, 0, 0.7); color:#FFEFD7; text-align:center"|<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7;">{{#invoke:Dictionary|translate|Information}}</span>
! colspan="2" style="position:relative; border-radius:7px; background-color:#2f93d6; font-size:16px; font-family:'Retail Demo Bold','Open Sans','PT Serif','Palatino','FreeSerif','Liberation Serif', serif; font-weight:bold; text-shadow:1.5px 1.5px 2px rgba(0, 0, 0, 0.7); color:#FFEFD7; text-align:center"|<span style="font-weight: bold; text-shadow: 0px 2px 4px black,1.2px 1.2px rgba(0, 0, 0, 0.7); color:#FFEFD7;">{{#invoke:Dictionary|translate|Information}}</span>
{{#ifeq: {{{no_voice_actor|}}}|true|
{{#if: {{{voice_actor|}}} |
{{!}}-
{{!}}-
|
{{!}}-style="vertical-align:top;"
{{!}}-style="vertical-align:top;"
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} {{#invoke:Dictionary|translate|VoiceActor}}:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} {{#invoke:Dictionary|translate|VoiceActor}}:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; margin-left: -9px;" {{!}}<span style="margin-left: 2px;">{{{voice_actor}}}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; margin-left: -9px;" {{!}}<span style="margin-left: 2px;">{{{voice_actor}}}</span>
}}
|-style="vertical-align:top;"
|-style="vertical-align:top;"
|style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px | [[Hero_Comparison#Release_Date_Comparison{{If_lang}}|<span style="color:#afafaf">{{#invoke:Dictionary|translate|ReleaseDate}}</span>]]:
|style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px | [[Hero_Comparison#Release_Date_Comparison{{If_lang}}|<span style="color:#afafaf">{{#invoke:Dictionary|translate|ReleaseDate}}</span>]]:
Line 104: Line 103:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px {{!}} [[Response Rules{{If_lang}}|<span style="color:#afafaf">{{#invoke:Dictionary|translate|VoiceLines}}</span>]]:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px {{!}} [[Response Rules{{If_lang}}|<span style="color:#afafaf">{{#invoke:Dictionary|translate|VoiceLines}}</span>]]:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;" {{!}} [[{{{name|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}}/Quotes{{If_lang}}|<span style="color:#FFEFD7; margin-left: 2px;">{{{quotes|{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}/{{#invoke:Dictionary|translate|Quotes}}}}}</span>]]}}
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;" {{!}} [[{{{name|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}}/Quotes{{If_lang}}|<span style="color:#FFEFD7; margin-left: 2px;">{{{quotes|{{{name|{{#invoke:Lang|get_string|{{{key}}}}}}}}/{{#invoke:Dictionary|translate|Quotes}}}}}</span>]]}}
{{#ifeq: {{{no_codenames|}}}|true|
{{#if: {{{codenames|}}} |
{{!}}-
{{!}}-
|
{{#if: {{{codenames|}}} |
{{!}}-style="vertical-align:top;"
{{!}}-style="vertical-align:top;"
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px {{!}} {{#invoke:Dictionary|translate|Codenames}}:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px {{!}} {{#invoke:Dictionary|translate|Codenames}}:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;" {{!}} <span style="margin-left: 2px;">{{{codenames}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left;" {{!}} <span style="margin-left: 2px;">{{{codenames}}}</span>
}}}}
}}
|}
|}
{{#ifeq: {{{no_summary|}}}|true||{{Quotation||<b>{{#invoke:Lang|get_string|{{{key}}}_role}}</b>|{{#invoke:Lang|get_string|{{{key}}}_playstyle}}}}}}<!--
{{#ifeq: {{{no_summary|}}}|true||{{Quotation||<b>{{#invoke:Lang|get_string|{{{key}}}_role}}</b>|{{#invoke:Lang|get_string|{{{key}}}_playstyle}}}}}}<!--
--></onlyinclude><noinclude>{{Documentation}}</noinclude>
--></onlyinclude><noinclude>{{Documentation}}</noinclude>