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: {{#af_get: {{{Section}}} | 1 }}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left | {{#switch: {{#af_get: {{{Section}}} | 1 }}
  | 0 | 1 | 2 | 3 | 4 | | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
  | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
  | #default = {{Template:DisplaySection|{{{Section}}}}}}}
  | #default = {{Template:DisplaySection|{{{Section}}}}}}} |}}
   }}
   }}
}}
}}

Revision as of 09:37, 26 October 2024