User:Samlovesmath/Template:Infobox hero: Difference between revisionsGive feedback
Jump to navigation
Jump to search

Samlovesmath (talk | contribs) added "-h" suffix to all "infobox" classes to differentiate from existing infobox classes from other templates |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
<templatestyles src="Samlovesmath/Infobox_hero/styles.css" /> | <templatestyles src="User:Samlovesmath/Template:Infobox_hero/styles.css" /> | ||
<templatestyles src="Samlovesmath/Infobox_hero/themes.css" /><!-- | <templatestyles src="User:Samlovesmath/Template: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:Samlovesmath/Infobox_hero|is_hero_key|{{#var:provided_key}}}}|true|{{#vardefine:hero_key|{{#var:provided_key}}}}|<!-- | -->{{#ifeq: {{#invoke:Sandbox/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:Samlovesmath/Infobox_hero|en_is_hero_key|{{#var:provided_key}}}}|true| {{#vardefine:hero_key|{{#invoke:HeroData|get_hero_key|{{#var:provided_key}}}}}}|<!-- | -->{{#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}}}}}}|<!-- | ||
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:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}<!-- | -->{{#vardefine:theme-logo-height| {{#invoke:Sandbox/Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|logo-height}} }}<!-- | ||
-->{{#vardefine:theme-bg-image| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}<!--<!-- | -->{{#vardefine:theme-bg-image| {{#invoke:Sandbox/Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-image}} }}<!--<!-- | ||
-->{{#vardefine:theme-bg-height| {{#invoke:Samlovesmath/Infobox_hero|get_theme_var|{{#var:hero_key}}|bg-height}} }}<!-- | -->{{#vardefine:theme-bg-height| {{#invoke:Sandbox/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: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: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>]]: | ||
| {{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: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: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>]]: | ||
| {{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:Samlovesmath/Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true| | ||{{#ifeq:{{#invoke:Sandbox/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> | ||
Latest revision as of 20:51, 30 July 2026

|
TargetDummy | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Weapon: "Dummy Gun" | |||||||||||||||||||
|
BASE STATS | |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||

