User:Samlovesmath/Template:Infobox hero: Difference between revisions

Samlovesmath (talk | contribs)
included automated variables; fixed default images/text; half-created "default" profile
Samlovesmath (talk | contribs)
mNo edit summary
Line 2: Line 2:
<templatestyles src="Samlovesmath/Infobox_hero/styles.css" />
<templatestyles src="Samlovesmath/Infobox_hero/styles.css" />
<templatestyles src="Samlovesmath/Infobox_hero/themes.css" /><!--
<templatestyles src="Samlovesmath/Infobox_hero/themes.css" /><!--
-->{{#vardefine:provided_key|{{{key|}}}}}<!--
-->{{#vardefine:provided_key|{{{key|Rem}}}}}<!--
   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:Samlovesmath/Infobox_hero|is_hero_key|{{#var:provided_key}}}}|true|{{#vardefine:hero_key|{{#var:provided_key}}}}|<!--
Line 28: Line 28:
-->{{#ifeq:{{{no_icon|}}}|true|{{#vardefine:show_icon|false}}|{{#vardefine:show_icon|{{{show_icon|true}}}}}}}<!--
-->{{#ifeq:{{{no_icon|}}}|true|{{#vardefine:show_icon|false}}|{{#vardefine:show_icon|{{{show_icon|true}}}}}}}<!--


-->{{#vardefine:quotemark|"}}<!-- for inserting into html
-->{{#vardefine:quotemark|"}}
<p>Logo height: {{#var:theme-logo-height}}</p>
<p>Image height: {{#var:theme-bg-height}}</p><!-- for inserting into html




Line 234: Line 236:
<!---- Quotes rendering ---->
<!---- Quotes rendering ---->
{{#ifeq: {{{no_summary|}}}|true
{{#ifeq: {{{no_summary|}}}|true
||{{Quotation||
||{{#ifeq:{{#invoke:Samlovesmath/Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true|{{Quotation||
<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>-->