Template:CharacterSheet: Difference between revisions

From The Wild Beyond the Witchlight
No edit summary
No edit summary
Line 278: Line 278:
<!-- Display all spells/sections  for the LEFT column -->
<!-- Display all spells/sections  for the LEFT column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Left.Spell={{Template:DisplaySpell|{{{Section}}}}} |Left={{Template:DisplaySection|{{{Section}}}}}}}}}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch: {{#af_get: {{{Section}}} | 1 }}
| 0 | 1 | 2 | 3 | 4 | | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
| #default = {{Template:DisplaySection|{{{Section}}}}}}}
  }}
}}
}}



Revision as of 09:32, 26 October 2024