Template:CharacterSheet: Difference between revisions
From The Wild Beyond the Witchlight
No edit summary |
No edit summary |
||
Line 278: | Line 278: | ||
<!-- Display all spells for the LEFT column --> | <!-- Display all spells for the LEFT column --> | ||
{{#if:{{{GenericSectionsPage2|}}}| | {{#if:{{{GenericSectionsPage2|}}}| | ||
{{#af_foreach:{{{GenericSectionsPage2}}}| | | {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left.Spell | {{Template:DisplaySpell|{{{Section}}}}} |}}}} | ||
}} | }} | ||
Line 286: | Line 286: | ||
<!-- Display all spells for the MIDDLE column --> | <!-- Display all spells for the MIDDLE column --> | ||
{{#if:{{{GenericSectionsPage2|}}}| | {{#if:{{{GenericSectionsPage2|}}}| | ||
{{#af_foreach:{{{GenericSectionsPage2}}}| | | {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Middle.Spell | {{Template:DisplaySpell|{{{Section}}}}} |}}}} | ||
}} | }} | ||
</div> | </div> | ||
Line 292: | Line 292: | ||
<!-- Display all spells for the RIGHTcolumn --> | <!-- Display all spells for the RIGHTcolumn --> | ||
{{#if:{{{GenericSectionsPage2|}}}| | {{#if:{{{GenericSectionsPage2|}}}| | ||
{{#af_foreach:{{{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}}}}}}}}} | ||
}} | }} | ||
</div> | </div> |
Revision as of 22:15, 25 October 2024