Template:CharacterSheet: Difference between revisions
From The Wild Beyond the Witchlight
No edit summary |
No edit summary |
||
Line 347: | Line 347: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="container" {{#ifexpr: {{{showPage4|0}}}=0|style="display:none;"}}> | |||
<div class="column"> | |||
<!-- Display all spells/sections for the LEFT column --> | |||
{{#if:{{{GenericSectionsPage4|}}}| | |||
{{#af_foreach:{{{GenericSectionsPage4}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left | {{#switch: {{#af_get: {{{Section}}} | 1 }} | |||
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 = {{Template:DisplaySpell|{{{Section}}}}} | |||
| #default = {{Template:DisplaySection|{{{Section}}}}}}} |}} | |||
}} | |||
}} | |||
</div> | |||
<div class="column"> | |||
<!-- Display all spells/sections for the MIDDLE column --> | |||
{{#if:{{{GenericSectionsPage4|}}}| | |||
{{#af_foreach:{{{GenericSectionsPage4}}}| |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 class="column"> | |||
<!-- Display all spells/sections for the RIGHTcolumn --> | |||
{{#if:{{{GenericSectionsPage4|}}}| | |||
{{#af_foreach:{{{GenericSectionsPage4}}}| |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> | |||
</center> | </center> | ||
<div class="background"> | <div class="background"> |
Latest revision as of 16:15, 6 July 2025