Editing User:Samlovesmath/Template:Infobox heroGive feedback
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=" | <templatestyles src="Samlovesmath/Infobox_hero/styles.css" /> | ||
<templatestyles src=" | <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: | -->{{#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: | -->{{#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: | -->{{#vardefine:theme-logo-height| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}<!-- | ||
-->{{#vardefine:theme-bg-image| {{#invoke: | -->{{#vardefine:theme-bg-image| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}<!--<!-- | ||
-->{{#vardefine:theme-bg-height| {{#invoke: | -->{{#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: | | {{#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: | | {{#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: | ||{{#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> | ||