Template:Infobox hero: Difference between revisions

Jump to navigation Jump to search
"pellets per shot" as a separate stat
LVL (talk | contribs)
made the infobox slightly more compact and moved herotags inside.
Line 54: Line 54:
---- Hero Image Card ---->
---- Hero Image Card ---->
|-
|-
! colspan="2" class="infobox-h-image" |<div>{{#ifexist: File:{{{card|{{#var:hero_en_herodata}} card.png}}}|[[File:{{{card|{{#var:hero_en_herodata}} card.png}}}|190px|alt={{{BASEPAGENAME}}}]]|[[File:Dummy card.png|190px|alt={{{BASEPAGENAME}}}]]}}</div><!--
! colspan="2" class="infobox-h-image" |<div>{{#ifexist: File:{{{card|{{#var:hero_en_herodata}} card.png}}}|[[File:{{{card|{{#var:hero_en_herodata}} card.png}}}|150px|alt={{{BASEPAGENAME}}}]]|[[File:Dummy card.png|150px|alt={{{BASEPAGENAME}}}]]}}</div><!--
 
---- Hero Tags ---->
{{#ifeq:{{#var:show_hero_tags}}|true|{{#ifeq:{{#invoke:Infobox_hero|hero_has_tags|{{#var:hero_en}}}}|true|
{{!}}-
{{!}} colspan="2" class="infobox-h-herotags-row" {{!}}
<div class="infobox-h-herotags-inner {{#var:hero_key}}">
<div class="infobox-h-herotag-pill">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|1}}</div>
<div class="infobox-h-herotag-pill">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|2}}</div>
<div class="infobox-h-herotag-pill">{{#invoke:HeroData|get_hero_tag|{{#var:hero_en}}|3}}</div>
</div>
|}}|}}<!--


---- Weapon Name ---->
---- Weapon Name ---->
Line 238: Line 249:
|}
|}
</div>
</div>
<!---- Quotes rendering ---->
</onlyinclude><noinclude>{{Documentation}}</noinclude>
<!--  DEPRECATED PARAM VARIABLES  (at least until its all moved over) -->
{{#ifeq:{{#var:show_hero_tags}}|true
|{{Infobox_hero_tags|key={{#var:hero_key}}}}|}}<!--
--></onlyinclude><noinclude>{{Documentation}}</noinclude>