Template:CharacterSheet: Difference between revisions

From The Wild Beyond the Witchlight
No edit summary
No edit summary
Line 389: Line 389:


<!-- Display all spells for the LEFT column -->
<!-- Display all spells for the LEFT column -->
{{#if:{{{SpellsLeft|}}}|
  {{#af_foreach:{{{SpellsLeft}}}| |Spell|{{Template:DisplaySpell|{{{Spell}}}}}}}
}}
{{#if:{{{GenericSections|}}}|
{{#if:{{{GenericSections|}}}|
   {{#af_foreach:{{{GenericSections}}}| |Spell|{{#ifeq: {{#sub:{{#af_get: {{{Spell}}} | 0 }}|0|{{#pos:{{#af_get: {{{Spell}}} | 0 }}|::}}}} | Left.Spell | {{Template:DisplaySpell|{{{Spell}}}}} |}}}}
   {{#af_foreach:{{{GenericSections}}}| |Spell|{{#ifeq: {{#sub:{{#af_get: {{{Spell}}} | 0 }}|0|{{#pos:{{#af_get: {{{Spell}}} | 0 }}|::}}}} | Left.Spell | {{Template:DisplaySpell|{{{Spell}}}}} |}}}}
Line 427: Line 423:


<!-- Display all spells for the MIDDLE column -->
<!-- Display all spells for the MIDDLE column -->
{{#if:{{{SpellsMiddle|}}}|  
{{#if:{{{GenericSections|}}}|
   {{#af_foreach:{{{SpellsMiddle}}}| |Spell|{{Template:DisplaySpell|{{{Spell}}}}}}}
   {{#af_foreach:{{{GenericSections}}}| |Spell|{{#ifeq: {{#sub:{{#af_get: {{{Spell}}} | 0 }}|0|{{#pos:{{#af_get: {{{Spell}}} | 0 }}|::}}}} | Middle.Spell | {{Template:DisplaySpell|{{{Spell}}}}} |}}}}
}}
}}
</div>
</div>
<div class="column">  
<div class="column">  
<!-- Display all spells for the RIGHTcolumn -->
<!-- Display all spells for the RIGHTcolumn -->
{{#if:{{{SpellsRight|}}}|
{{#if:{{{GenericSections|}}}|
   {{#af_foreach:{{{SpellsRight}}}| |Spell|{{Template:DisplaySpell|{{{Spell}}}}}}}
   {{#af_foreach:{{{GenericSections}}}| |Spell|{{#ifeq: {{#sub:{{#af_get: {{{Spell}}} | 0 }}|0|{{#pos:{{#af_get: {{{Spell}}} | 0 }}|::}}}} | Right.Spell | {{Template:DisplaySpell|{{{Spell}}}}} |}}}}
}}
}}
</div>
</div>

Revision as of 19:09, 25 October 2024