{{#unless isNPC}} {{else}} {{numberInput system.details.spellLevel name="system.details.spellLevel" class="spellcasting-level" placeholder="0" min=0 step=1}} {{/unless}} {{localize "DND5E.AbbreviationDC"}} {{system.attributes.spelldc}}
    {{#each spellbook as |section|}}
  1. {{section.label}}

    {{#if section.usesSlots}} / {{{section.slots}}} {{#if section.editable}} {{/if}} {{ else }} {{{section.uses}}} / {{{section.slots}}} {{/if}}
    {{localize "DND5E.SpellSchool"}}
    {{localize "DND5E.SpellUsage"}}
    {{localize "DND5E.SpellTarget"}}
    {{#if section.canCreate}} {{localize "DND5E.Add"}} {{/if}}
    1. {{#each section.spells as |item i|}} {{#dnd5e-itemContext item as |ctx|}}
    2. {{item.name}}

      {{#if item.system.uses.per }}
      Uses {{item.system.uses.value}} / {{item.system.uses.max}}
      {{/if}}
      {{#each item.labels.components.all}} {{abbr}} {{/each}}
      {{item.labels.school}}
      {{item.labels.activation}}
      {{#if item.labels.target}} {{item.labels.target}} {{else}}{{localize 'DND5E.None'}} {{/if}}
      {{#if @root.owner}}
      {{#if section.canPrepare}} {{/if}}
      {{/if}} {{#if ctx.isExpanded}} {{> "dnd5e.item-summary" (lookup @root.expandedData item.id)}} {{/if}}
    3. {{/dnd5e-itemContext}} {{/each}}
    {{else}} {{#if owner}} {{#if filters.spellbook.size}}
  2. {{localize "DND5E.FilterNoSpells"}}

  3. {{else}}
  4. {{localize "DND5E.NoSpellLevels"}}

  5. {{/if}} {{/if}} {{/each}}