{{#if hasVisibleItems}}
{{#each items as |item i|}} {{#if (and visible active hasSpells)}}
  1. {{name}}

    {{#if chargesOnWholeItem}}
    /
    {{rechargeableLabel}}
    {{/if}}
    {{localize "MAGICITEMS.SheetLevel"}}
    {{localize "MAGICITEMS.SheetConsumption"}}
    {{localize "MAGICITEMS.SheetCanUpcast"}}
    1. {{#each spells as |spell|}}
    2. {{spell.displayName}}

      {{#if ../chargesPerSpell}}
      /
      {{../rechargeableLabel}}
      {{/if}}
      {{spell.level}}
      {{spell.consumption}}
      {{spell.canUpcastLabel}}
    3. {{/each}} {{#if hasTableAsSpells}} {{#each tableAsSpells as |table|}}
    4. {{table.displayName}}

      {{#if ../chargesPerSpell}}
      /
      {{../rechargeableLabel}}
      {{/if}}
      -
      {{table.consumption}}
      -
    5. {{/each}} {{/if}}
{{/if}} {{/each}}
{{/if}}