Editing User:Samlovesmath/Template:Infobox hero

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<templatestyles src="User:Samlovesmath/Template:Infobox_hero/styles.css" />
<templatestyles src="Samlovesmath/Infobox_hero/styles.css" />
<templatestyles src="User:Samlovesmath/Template:Infobox_hero/themes.css" /><!--
<templatestyles src="Samlovesmath/Infobox_hero/themes.css" /><!--
-->{{#vardefine:provided_key|{{{key|}}}}}<!--
-->{{#vardefine:provided_key|{{{key|}}}}}<!--
   If key provided is an accepted hero_[name] key, use it;
   If key provided is an accepted hero_[name] key, use it;
-->{{#ifeq: {{#invoke:Sandbox/Samlovesmath/Infobox_hero|is_hero_key|{{#var:provided_key}}}}|true|{{#vardefine:hero_key|{{#var:provided_key}}}}|<!--
-->{{#ifeq: {{#invoke:Samlovesmath/Infobox_hero|is_hero_key|{{#var:provided_key}}}}|true|{{#vardefine:hero_key|{{#var:provided_key}}}}|<!--
   Else, if key provided is actually the string *English* name, get the key from it to use it;
   Else, if key provided is actually the string *English* name, get the key from it to use it;
-->{{#ifeq:{{#invoke:Sandbox/Samlovesmath/Infobox_hero|en_is_hero_key|{{#var:provided_key}}}}|true| {{#vardefine:hero_key|{{#invoke:HeroData|get_hero_key|{{#var:provided_key}}}}}}|<!--
-->{{#ifeq:{{#invoke:Samlovesmath/Infobox_hero|en_is_hero_key|{{#var:provided_key}}}}|true| {{#vardefine:hero_key|{{#invoke:HeroData|get_hero_key|{{#var:provided_key}}}}}}|<!--
   Else, fall back on "hero_targetdummy"
   Else, fall back on "hero_targetdummy"
-->{{#vardefine:hero_key|hero_targetdummy}}<!--
-->{{#vardefine:hero_key|hero_targetdummy}}<!--
Line 19: Line 19:


   THEME VARIABLES:
   THEME VARIABLES:
-->{{#vardefine:theme-logo-height| {{#invoke:Sandbox/Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}<!--
-->{{#vardefine:theme-logo-height| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}<!--
-->{{#vardefine:theme-bg-image| {{#invoke:Sandbox/Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}<!--<!--
-->{{#vardefine:theme-bg-image| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}<!--<!--
-->{{#vardefine:theme-bg-height| {{#invoke:Sandbox/Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-height}} }}<!--
-->{{#vardefine:theme-bg-height| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-height}} }}<!--


   DEPRECATED PARAM VARIABLES:  (at least until its all moved over)
   DEPRECATED PARAM VARIABLES:  (at least until its all moved over)
Line 125: Line 125:
|-
|-
<!---- Health ---->
<!---- Health ---->
| {{#ifeq:{{#invoke:Sandbox/Samlovesmath/Infobox_hero|hero_has_scalars|{{#var:hero_key}}|MaxHealth}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Health{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HealthAttribute}}</span>]]:
| {{#ifeq:{{#invoke:Samlovesmath/Infobox_hero|hero_has_scalars|{{#var:hero_key}}|MaxHealth}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Health{{If_lang}}|<span>{{#invoke:Lang|get_string|StatDesc_HealthAttribute}}</span>]]:
| {{Icon/Green|[[File:Health.png|20px|link=Health{{If_lang}}]]|{{{max_health|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MaxHealth|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MaxHealth}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MaxHealth}}</span>}}
| {{Icon/Green|[[File:Health.png|20px|link=Health{{If_lang}}]]|{{{max_health|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|MaxHealth|3}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|MaxHealth}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|MaxHealth}}</span>}}
|-
|-
Line 189: Line 189:
|+ class="infobox-h-dropdown-header" | [[Stats#Vitality|<span class="infotext-h-bold infobox-h-dropdown-title">{{#invoke:Lang|get_string|CitadelHeroStats_Spirit}}</span>]]
|+ class="infobox-h-dropdown-header" | [[Stats#Vitality|<span class="infotext-h-bold infobox-h-dropdown-title">{{#invoke:Lang|get_string|CitadelHeroStats_Spirit}}</span>]]
|-
|-
| {{#ifeq:{{#invoke:Sandbox/Samlovesmath/Infobox_hero|hero_has_scalars|{{#var:hero_key}}|TechPower}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Spirit Power{{If_lang}}|<span>{{#invoke:Lang|get_string|SpiritPower_label}}</span>]]:
| {{#ifeq:{{#invoke:Samlovesmath/Infobox_hero|hero_has_scalars|{{#var:hero_key}}|TechPower}}|true|style{{=}}"padding-top:8px;"{{!}}}}[[Spirit Power{{If_lang}}|<span>{{#invoke:Lang|get_string|SpiritPower_label}}</span>]]:
| {{Icon/Purple|[[File:Spirit_icon_noborder.png|20px|link=Spirit Power{{If_lang}}]]|{{{spirit_power|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|TechPower|2}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|TechPower}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|TechPower}}</span>}}
| {{Icon/Purple|[[File:Spirit_icon_noborder.png|20px|link=Spirit Power{{If_lang}}]]|{{{spirit_power|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|TechPower|2}}}}}<span class{{=}}"infobox-h-spiritboon">{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Level|TechPower}}{{#invoke:HeroData|get_hero_scalar|{{#var:hero_key}}|Spirit|TechPower}}</span>}}
|}<!--
|}<!--
Line 230: Line 230:
<!---- Quotes rendering ---->
<!---- Quotes rendering ---->
{{#ifeq: {{{no_summary|}}}|true
{{#ifeq: {{{no_summary|}}}|true
||{{#ifeq:{{#invoke:Sandbox/Samlovesmath/Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true|
||{{#ifeq:{{#invoke:Samlovesmath/Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true|
<div class{{=}}{{#var:quotemark}}infobox-h-herotags {{#var:hero_key}}{{#var:quotemark}}>
<div class{{=}}{{#var:quotemark}}infobox-h-herotags {{#var:hero_key}}{{#var:quotemark}}>
<div><div class{{=}}"infobox-h-herotag-back"></div><div class{{=}}"infobox-h-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|1}}</div></div>
<div><div class{{=}}"infobox-h-herotag-back"></div><div class{{=}}"infobox-h-herotag-text">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|1}}</div></div>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)