Template:Spellbook

From Wizards and Warlords
Jump to navigation Jump to search

About this template

[edit]

Creates the Arcane or Divine desktop spellbook shell. The desktop content is also the source used by JavaScript to build the separate phone and tablet spellbooks.

Do not change the generated ID, CSS classes, title structure, direct content wrapper, or bottom control. The site JavaScript depends on all of them.

Parameters

[edit]
  • type - arcane or divine in lowercase. This generates the existing ID, modifier classes, title, icon, and bottom-control class.
  • content - Spell category templates and any existing servant-rules blocks.

Basic example

[edit]
{{Spellbook
|type=arcane
|content=
{{Spell category
|title=Example Category
|description=Example category description.
|count=1
|content=
{{Spell card
|title=Example Spell
|meta=<div>'''Type:''' Fixed</div>
|content=<div class="wizlords-spell-card-section">'''Effect:''' Example effect.</div>
}}
}}
}}