Template:Infobox hero: Difference between revisions

Jump to navigation Jump to search
Add all heroes to the category heroes
(move race plural to own variable)
(Add all heroes to the category heroes)
 
(6 intermediate revisions by the same user not shown)
Line 18: Line 18:
   #vardefine: racePlural | {{#if:{{#var: race}}|
   #vardefine: racePlural | {{#if:{{#var: race}}|
     {{#switch:{{#var: race}}
     {{#switch:{{#var: race}}
       |Elf= [[Category:Elves]]
       |Elf= Elves
       |#default=[[Category:{{#var: race}}s]]
      |Dwarf=Dwarves
      |Orrukasi=Orrukasi
       |#default={{#var: race}}s
     }}
     }}
   |}}
   |}}
Line 65: Line 67:
<div style="margin:5px -10px -5px -10px;">{{{feat|}}}</div>
<div style="margin:5px -10px -5px -10px;">{{{feat|}}}</div>
</div>
</div>
{{#if:{{{quote|}}}|<div style="margin:auto">''{{{quote|}}}''</div>|}}
{{#if:{{{quote|}}}|<div style="margin:auto; max-width:470px;">''{{{quote|}}}''</div>|}}
</div>
</div>
</div>
</div>
Line 72: Line 74:
|}}{{#if:{{#var: expansion}}|[[Category:{{#var: expansion}}]]
|}}{{#if:{{#var: expansion}}|[[Category:{{#var: expansion}}]]
|}}{{#if:{{#var: race}}|[[Category:{{#var: racePlural}}]]
|}}{{#if:{{#var: race}}|[[Category:{{#var: racePlural}}]]
|}}</includeonly><noinclude>{{Infobox hero |name=Example Hero |expansion=DJ07 |archetype=Mage |race=example-race |image=Hero_-_Zyla.png |speed=5 |health=8 |stamina=5 |defense=Grey |willpower=3 |might=3 |knowledge=3 |awareness=3 |ability=I can do something... |feat=I'm not useless |quote=Catch me if you can}}{{documentation}}</noinclude>
|}}[[Category:Heroes]]</includeonly><noinclude>{{Infobox hero |name=Example Hero |expansion=DJ07 |archetype=Mage |race=example-race |image=Hero_-_Zyla.png |speed=5 |health=8 |stamina=5 |defense=Grey |willpower=3 |might=3 |knowledge=3 |awareness=3 |ability=I can do something... |feat=I'm not useless |quote=Catch me if you can}}{{documentation}}</noinclude>

Navigation menu