{{entry.name}} {{#with entry.flexibleAvailable}}
{{localize "PF2E.SpellFlexibleAvailable" value=value max=max}}
{{/with}}

{{#if entry.isFlexible}} {{localize "PF2E.Actor.Creature.SpellPreparation.HintFlexible"}} {{else}} {{localize "PF2E.Actor.Creature.SpellPreparation.Hint"}} {{/if}}

    {{#unless entry.spellPrepList}} {{#if @root.options.editable}}
  1. {{localize "PF2E.SpellSlotEmpty"}}

    {{localize "PF2E.AddSpellTitle"}} {{localize "PF2E.OpenSpellBrowserTitle"}}
  2. {{/if}} {{/unless}} {{#each entry.spellPrepList as |spells level|}} {{#if spells}}
  3. {{#if (gt level 0)}} {{localize "PF2E.SpellLevel" level=(ordinal level)}} {{else}} {{localize "PF2E.SpellCantripLabel"}} {{/if}}

    {{localize "PF2E.SpellRangeLabel"}}
    {{localize "PF2E.SpellComponentsLabel"}}
    {{#if @root.options.editable}}
    {{/if}}
  4. {{#each spells as |item i|}}
  5. {{spell.name}}

    {{spell.name}}{{{actionGlyph spell.system.time.value}}}

    {{spell.system.range.value}}
    {{#if spell.system.components.focus}} {{localize "PF2E.SpellComponentShortF"}} {{/if}} {{#if spell.system.components.material}} {{localize "PF2E.SpellComponentShortM"}} {{/if}} {{#if spell.system.components.somatic}} {{localize "PF2E.SpellComponentShortS"}} {{/if}} {{#if spell.system.components.verbal}} {{localize "PF2E.SpellComponentShortV"}} {{/if}}
    {{#unless spell.isCantrip}} {{#if @root.entry.isFlexible}}
    {{/if}} {{/unless}} {{#if @root.editable}}
    {{/if}}
  6. {{/each}} {{/if}} {{/each}}