[% macro spellblock(spell, id_base="spells", heading_level=2) -%]
<h[[ heading_level ]] id="[[ id_base ]]-[[ spell.name | to_heading_id ]]">[[ spell.name ]]</h[[ heading_level ]]>

[% if spell.level > 0 %] [[ spell.magic_school ]] Level [[ spell.level ]] [% else %] [[ spell.magic_school ]] Cantrip [% endif %] [% if spell.ritual and spell.concentration %] (ritual, concentration) [% elif spell.ritual %] (ritual) [% elif spell.concentration %] (concentration) [% endif %]

Casting Time
  [[ spell.casting_time ]]
Duration
  [[ spell.duration ]]
Range
  [[ spell.casting_range ]]
Components
  [[ spell.component_string ]]

[[ spell.__doc__ | rst_to_html(top_heading_level=1) ]]
[%- endmacro %]