Template:CharacterSheet: Difference between revisions

From The Wild Beyond the Witchlight
No edit summary
No edit summary
Line 286: Line 286:
<!-- Display all spells/sections for the MIDDLE column -->
<!-- Display all spells/sections for the MIDDLE column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Middle.Spell={{Template:DisplaySpell|{{{Section}}}}} |Middle={{Template:DisplaySection|{{{Section}}}}}}}}}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Middle| {{#switch: {{#af_get: {{{Section}}} | 1 }}
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
| #default = {{Template:DisplaySection|{{{Section}}}}}}} |}}
  }}
}}
}}
</div>
</div>
Line 292: Line 295:
<!-- Display all spells/sections for the RIGHTcolumn -->
<!-- Display all spells/sections for the RIGHTcolumn -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Right.Spell={{Template:DisplaySpell|{{{Section}}}}} |Right={{Template:DisplaySection|{{{Section}}}}}}}}}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Right| {{#switch: {{#af_get: {{{Section}}} | 1 }}
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}}
| #default = {{Template:DisplaySection|{{{Section}}}}}}} |}}
  }}
}}
}}
</div>
</div>

Revision as of 09:46, 26 October 2024