Template:CharacterSheet: Difference between revisions
From The Wild Beyond the Witchlight
Tag: Rollback |
No edit summary |
||
Line 317: | Line 317: | ||
<div class="container" {{#ifexpr: {{{showPage3|0}}}=0|style="display:none;"}}> | <div class="container" {{#ifexpr: {{{showPage3|0}}}=0|style="display:none;"}}> | ||
<div class="column"> | <div class="column"> | ||
<!-- Display all spells/sections for the | <!-- Display all spells/sections for the LEFT column --> | ||
{{#if:{{{GenericSectionsPage3|}}}| | {{#if:{{{GenericSectionsPage3|}}}| | ||
{{#af_foreach:{{{GenericSectionsPage3}}}| |Section|{{# | {{#af_foreach:{{{GenericSectionsPage3}}}| |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> | ||
Line 325: | Line 328: | ||
<!-- Display all spells/sections for the MIDDLE column --> | <!-- Display all spells/sections for the MIDDLE column --> | ||
{{#if:{{{GenericSectionsPage3|}}}| | {{#if:{{{GenericSectionsPage3|}}}| | ||
{{#af_foreach:{{{GenericSectionsPage3}}}| |Section|{{# | {{#af_foreach:{{{GenericSectionsPage3}}}| |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 331: | Line 337: | ||
<!-- Display all spells/sections for the RIGHTcolumn --> | <!-- Display all spells/sections for the RIGHTcolumn --> | ||
{{#if:{{{GenericSectionsPage3|}}}| | {{#if:{{{GenericSectionsPage3|}}}| | ||
{{#af_foreach:{{{GenericSectionsPage3}}}| |Section|{{# | {{#af_foreach:{{{GenericSectionsPage3}}}| |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 15:44, 2 February 2025