Template:Class card

From Wizards and Warlords
Revision as of 03:47, 16 July 2026 by Aurelian (talk | contribs) (Created page with "<includeonly><div class="wizlords-class-card" id="{{{id}}}"> <div class="wizlords-class-card-icon">[[File:{{{icon}}}|250x250px|link=]]</div> <div class="wizlords-class-card-title">{{{name}}}</div> <div class="wizlords-class-card-body"> <div class="wizlords-class-card-summary">{{{summary}}}</div> <div class="wizlords-class-card-divider"></div> <div class="wizlords-class-card-rules"> <div>'''Armour:''' {{{armour}}}</div> <div>'''Shield:''' {{{shield}}}</div> <div>'''Melee...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About this template

[edit]

Creates one class card on the Classes page. The card uses the existing desktop layout and becomes expandable on phones.

Use this template inside Template:Class category. Do not change the generated IDs, CSS classes, or nesting because page links, CSS, and JavaScript depend on them.

Parameters

[edit]
  • id - exact page anchor used by links to the class.
  • name - class name shown on the card.
  • icon - image filename without File:.
  • summary - short class description.
  • armour, shield, melee, bow, blackpowder, spell points, and passive - the existing class rules.
  • content - optional extra rule content for a genuine exception.

Basic example

[edit]
{{Class card
|id=Fighter
|name=Fighter
|icon=FighterIcon.png
|summary=Balanced and adaptable; excels in both offense and defense.
|armour=Light and Heavy
|shield=Yes
|melee=All
|bow=No
|blackpowder=Single-Handed
|spell points=None
|passive=None
}}