[% macro spellblock(spell, id_base="spells", heading_level=2) -%]
[[ spell.name ]]

[% 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 %]