Template:Infobox hero: Difference between revisions

added auto categorisation
changed "shotgun weapon" to "spreadshot weapons"
Line 256: Line 256:
{{lang cat|Heroes}}
{{lang cat|Heroes}}
{{lang cat|{{#var:hero_en}}}}
{{lang cat|{{#var:hero_en}}}}
{{#ifexpr:{{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} > 1|{{lang cat|Heroes with shotgun weapon}}}}
{{#ifexpr:{{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} > 1|{{lang cat|Heroes with spreadshot weapons}}}}
{{#ifexpr:{{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} > 1|{{lang cat|Heroes with burst weapons}}}}
{{#ifexpr:{{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} > 1|{{lang cat|Heroes with burst weapons}}}}
{{#ifexpr:({{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} <= 1 and {{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} <= 1)|{{lang cat|Heroes with automatic weapons}}}}
{{#ifexpr:({{{pellets_per_shot|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerShot|3}}}}} <= 1 and {{{bullets_per_burst|{{#invoke:HeroData|get_hero_var|{{#var:hero_key}}|BulletsPerBurst|3}}}}} <= 1)|{{lang cat|Heroes with automatic weapons}}}}