{{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 rank|}} {{#if spells}}
  3. {{#if (gt rank 0)}} {{localize "PF2E.Item.Spell.Rank.Ordinal" rank=(ordinal rank)}} {{else}} {{localize "PF2E.Actor.Creature.Spellcasting.Cantrips"}} {{/if}}

    {{localize "PF2E.SpellRangeLabel"}}
    {{#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}}
    {{#unless spell.isCantrip}} {{#if @root.entry.isFlexible}}
    {{/if}} {{/unless}} {{#if @root.editable}}
    {{/if}}
  6. {{/each}} {{/if}} {{/each}}