Template:Hero table row: Difference between revisions
Jump to navigation
Jump to search
(add ability to show the expansion or not) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="white-space:nowrap;" | <includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="white-space:nowrap;" | ||
|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}} | |{{swh|noicon=|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}{{{himage|}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}}} | ||
|style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}} | |style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}} | ||
| style="{{#if: {{{showexp|}}} | | display: none}};" | {{{{{exp}}} map icon}} | | style="{{#if: {{{showexp|}}} | | display: none}};" | {{{{{exp}}} map icon}} | ||
|[[File:Specialty_{{{3}}}_small. | |[[File:Specialty_{{{3}}}_small.png|link={{{3}}}]] | ||
|style="padding-right:5px; white-space: nowrap;"|{{-}}[[{{{3}}}]] | |style="padding-right:5px; white-space: nowrap;"|{{-}}[[{{{3}}}]] | ||
|[[File:{{{4}}}_small. | |[[File:{{{4}}}_small.png|{{{4}}}|link={{{4}}}]] | ||
|{{-}}[[{{{4}}}]]{{-}} | |{{-}}[[{{{4}}}]]{{-}} | ||
|{{{6|[[Image:{{{5}}}_small. | |{{{6|[[Image:{{{5}}}_small.png|{{{5}}}|link={{{5}}}]]}}} | ||
|{{-}}{{{6|[[{{{5}}}]]{{-}}}}} | |{{-}}{{{6|[[{{{5}}}]]{{-}}}}} | ||
|{{{7|}}} | |{{{7|}}} | ||
Line 19: | Line 19: | ||
# Skill 2 | # Skill 2 | ||
# If the hero has no skill 2 | # If the hero has no skill 2 | ||
* image | |||
* no_spell | |||
* spell | |||
* spell_link | |||
* name | |||
* Expansion (exp) | |||
* Whether to show the expansion (showexp) | |||
* If there is a hota version of the image, add <nowiki>"himage=(HotA)"</nowiki> | |||
== Example (no expansion) == | == Example (no expansion) == | ||
Line 31: | Line 32: | ||
{{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab}} | {{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab}} | ||
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe}} | {{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe}} | ||
{{Hero table row| Vey | Battle Mage | Ogres | Basic Wisdom | Basic Leadership | spell=Magic Arrow |exp=roe |showexp={{{1|}}}| himage=(HotA)}} | |||
|} | |} | ||
Line 37: | Line 39: | ||
{{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab |showexp=showexp}} | {{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab |showexp=showexp}} | ||
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe |showexp=showexp}} | {{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe |showexp=showexp}} | ||
{{Hero table row| Vey | Battle Mage | Ogres | Basic Wisdom | Basic Leadership | spell=Magic Arrow |exp=roe |showexp={{{1|}}}| himage=(HotA)|showexp=showexp}} | |||
|} | |} | ||
Latest revision as of 23:31, 1 October 2024
Variables[edit | hide | hide all]
- Hero name
- Class
- Specialty
- Skill 1
- Skill 2
- If the hero has no skill 2
- image
- no_spell
- spell
- spell_link
- name
- Expansion (exp)
- Whether to show the expansion (showexp)
- If there is a hota version of the image, add "himage=(HotA)"
Example (no expansion)[edit | hide]
Name | Class | Specialty | Skill 1 | Skill 2 | Spell | ||||
---|---|---|---|---|---|---|---|---|---|
Lord Haart Lord Haart | Death Knight | Black Knights | Basic Necromancy | Basic Estates | Slow | ||||
Christian Christian | Knight | Ballista | Basic Leadership | Basic Artillery | |||||
Vey Vey | Battle Mage | Ogres | Basic Wisdom | Basic Leadership | Magic Arrow |
Example (expansion)[edit | hide]
Name | Class | Specialty | Skill 1 | Skill 2 | Spell | |||||
---|---|---|---|---|---|---|---|---|---|---|
Lord Haart Lord Haart | Death Knight | Black Knights | Basic Necromancy | Basic Estates | Slow | |||||
Christian Christian | Knight | Ballista | Basic Leadership | Basic Artillery | ||||||
Vey Vey | Battle Mage | Ogres | Basic Wisdom | Basic Leadership | Magic Arrow |
Related templates[edit | hide]
- Main templates:
- Secondary templates: