Template:CharacterSheet: Difference between revisions

From The Wild Beyond the Witchlight
No edit summary
No edit summary
Line 276: Line 276:
</div>
</div>


<!-- Display all spells for the LEFT column -->
<!-- Display all spells/sections  for the LEFT column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Left.Spell | {{Template:DisplaySpell|{{{Section}}}}} |}}}}
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Left.Spell={{Template:DisplaySpell|{{{Section}}}}} |Left={{Template:DisplaySection|{{{Section}}}}}}}}}
}}
}}


Line 284: Line 284:
<div class="column">  
<div class="column">  


<!-- Display all spells for the MIDDLE column -->
<!-- Display all spells/sections for the MIDDLE column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
   {{#af_foreach:{{{GenericSectionsPage2}}}| |Section|{{#ifeq: {{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} | Middle.Spell | {{Template:DisplaySpell|{{{Section}}}}} |}}}}
   {{#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}}}}}}}}}
}}
}}
</div>
</div>
<div class="column">  
<div class="column">  
<!-- Display all spells 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|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Right.Spell={{Template:DisplaySpell|{{{Section}}}}} |Right={{Template:DisplaySection|{{{Section}}}}}}}}}

Revision as of 22:16, 25 October 2024