Template:HeroTable: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "{| class="wikitable" |colspan=2|Name |Class |Specialty |colspan=2|Starting Skills |Spell {{#if:{{{1|}}} | {{#forargs: i | 1 | {{#expr:{{{nargs}}}}} | {{HeroTableLine|{{{i}}}}} }} }} |}"
 
No edit summary
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable"
|colspan=2|Name
! colspan=2 | Name
|Class
! Class
|Specialty
! Specialty
|colspan=2|Starting Skills
! colspan=2 | Starting Skills
|Spell
! Spell
{{#if:{{{1|}}}
{{#vardefine:heroList|{{#invoke:HeroDataParser|getFactionHeroes|{{{faction}}}}}}}
| {{#forargs: i | 1 | {{#expr:{{{nargs}}}}} | {{HeroTableLine|{{{i}}}}} }}
{{#fornumargs: i | 1 | {{#expr:{{#len:{{#var:heroList}}}}}} }}
}}
{{#loopcsv: {{#var:heroList}} | , | hero | {{HeroTableLine|{{{hero}}}}} }}
{{#endloopcsv:}}
|}
|}

Revision as of 11:20, 29 October 2025

Name Class Specialty Starting Skills Spell

{{#vardefine:heroList|}} {{#fornumargs: i | 1 | 17 }} {{#loopcsv: {{#var:heroList}} | , | hero | |-

[[File:{{{hero}}}.png|50px]] [[{{{hero}}}]] [[]] [[|Advanced ]] }}

{{#endloopcsv:}}