Template:CharacterSheet: Difference between revisions

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


<div class="container">
<div class="container" {{#ifexpr: {{{showPage3|0}}}=0|style="display:none;"}}>
<div class="column">  
<div class="column">  
<div class="leftcolumn" {{#ifexpr: {{{Spellcaster|0}}}=0|style="display:none;"}}>   
<div class="leftcolumn" {{#ifexpr: {{{Spellcaster|0}}}=0|style="display:none;"}}>   
Line 283: Line 283:
</div>
</div>
<div class="column">  
<div class="column">  
<!-- Display all spells/sections for the MIDDLE column -->
<!-- Display all spells/sections for the MIDDLE column -->
{{#if:{{{GenericSectionsPage2|}}}|
{{#if:{{{GenericSectionsPage2|}}}|
Line 293: Line 292:
{{#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}}}}}}}}}
}}
</div>
</div>
<div class="container" {{#ifexpr: {{{showPage3|0}}}=0|style="display:none;"}}>
<div class="column">
<!-- Display all spells/sections for the MIDDLE column -->
{{#if:{{{GenericSectionsPage3|}}}|
  {{#af_foreach:{{{GenericSectionsPage3}}}| |Section|{{#switch:{{#sub:{{#af_get: {{{Section}}} | 0 }}|0|{{#pos:{{#af_get: {{{Section}}} | 0 }}|::}}}} |condition1=branch1 |Left.Spell={{Template:DisplaySpell|{{{Section}}}}} |Left={{Template:DisplaySection|{{{Section}}}}}}}}}
}}
</div>
<div class="column">
<!-- Display all spells/sections for the MIDDLE column -->
{{#if:{{{GenericSectionsPage3|}}}|
  {{#af_foreach:{{{GenericSectionsPage3}}}| |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 class="column">
<!-- Display all spells/sections for the RIGHTcolumn -->
{{#if:{{{GenericSectionsPage3|}}}|
  {{#af_foreach:{{{GenericSectionsPage3}}}| |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:19, 25 October 2024