{{#if editable}}
  1. {{#if advancementEditable}} {{/if}}
  2. {{/if}} {{#each advancement as |data level|}}
  3. {{#if (eq level "0")}} {{localize "DND5E.AdvancementLevelAnyHeader"}} {{else if (eq level "unconfigured")}} {{localize "DND5E.AdvancementLevelNoneHeader"}} {{else}} {{localize "DND5E.AdvancementLevelHeader" level=level}} {{/if}}

    {{#if (and @root.editable data.configured (ne level "unconfigured"))}}
    {{localize "DND5E.AdvancementModifyChoices"}}
    {{/if}} {{#if (eq data.configured "full")}}
    {{else if (eq data.configured "partial")}}
    {{/if}}
    1. {{#each data.items}}
    2. {{{this.title}}}

      {{#if (or @root.advancementEditable (not @root.isEmbedded))}}
      {{#if (eq this.classRestriction "primary")}} {{localize "DND5E.AdvancementClassRestrictionPrimary"}} {{else if (eq this.classRestriction "secondary")}} {{localize "DND5E.AdvancementClassRestrictionSecondary"}} {{/if}}
      {{/if}} {{#if @root.advancementEditable}} {{/if}} {{#if this.summary}}
      {{{this.summary}}}
      {{/if}}
    3. {{/each}}
    {{/each}}