Difference between revisions of "Template:ClassAdvancementTableHeader"

From DDO Compendium
Line 16: Line 16:
<table class="wikitable" style="color: white; background-color:#3a3f44; width: 70%;">
<table class="wikitable" style="color: white; background-color:#3a3f44; width: 70%;">
<tr>
<tr>
<td colspan="{{#if: {{{11|}}}|16|{{#if: {{{10|}}}|15|{{#if: {{{9|}}}|14|{{#if: {{{8|}}}|13|{{#if: {{{7|}}}|12|{{#if: {{{6|}}}|11|{{#if: {{{5|}}}|10|{{#if: {{{4|}}}|9|{{#if: {{{3|}}}|8|{{#if: {{{2|}}}|7}}}}}}}}}}}}}}}}}}}}">
<td colspan="{{#if: {{{12|}}}|16|{{#if: {{{11|}}}|15|{{#if: {{{10|}}}|14|{{#if: {{{9|}}}|13|{{#if: {{{8|}}}|12|{{#if: {{{9|}}}|11|{{#if: {{{6|}}}|10|{{#if: {{{5|}}}|9|{{#if: {{{4|}}}|8|{{#if: {{{3|}}}|7}}}}}}}}}}}}}}}}}}}}">
{{{1}}}
{{{2}}}
</td>
</td>
{{#ifexpr: {{{0|0}}} > 0 | <td colspan="{{#expr: {{{0}}}+1}}">Spell Information</td>}}
{{#ifexpr: {{{1|0}}} > 0 | <td colspan="{{#expr: {{{1}}}+1}}">Spell Information</td>}}
</tr>
</tr>
<tr>
<tr>
Line 28: Line 28:
<td>Will Save</td>
<td>Will Save</td>
<td>Autogranted</td>
<td>Autogranted</td>
{{#if: {{{2|}}}|<td>{{{2}}}</td>}}
{{#if: {{{3|}}}|<td>{{{3}}}</td>}}
{{#if: {{{3|}}}|<td>{{{3}}}</td>}}
{{#if: {{{4|}}}|<td>{{{4}}}</td>}}
{{#if: {{{4|}}}|<td>{{{4}}}</td>}}
Line 38: Line 37:
{{#if: {{{10|}}}|<td>{{{10}}}</td>}}
{{#if: {{{10|}}}|<td>{{{10}}}</td>}}
{{#if: {{{11|}}}|<td>{{{11}}}</td>}}
{{#if: {{{11|}}}|<td>{{{11}}}</td>}}
{{#ifexpr: {{{0|0}}} > 0| <td>Spell Points</td>{{#switch: {{{0}}}
{{#if: {{{12|}}}|<td>{{{12}}}</td>}}
{{#ifexpr: {{{1|0}}} > 0| <td>Spell Points</td>{{#switch: {{{1}}}
|1=<td>1st</td>
|1=<td>1st</td>
|2=<td>1st</td><td>2nd</td>
|2=<td>1st</td><td>2nd</td>

Revision as of 15:50, 1 June 2018


ClassAdvancementTableHeader[edit]

This template is used to render the header for the advancement table. The first 4 columns are predefined (level, bab, fort, reflex, will, ) This will add others

Usage[edit]

{{ClassAdvancementTableHeader|(Spell Levels)|(Class Name)|(column name)}}

Parameter Documentation
Spell LevelsThe number of spell levels, if blank there are none.
Class NameThe name of the class
column nameThe name of the column - This can be repeated 10 times

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.







{{#ifexpr: 0 > 0|

{{{2}}}

Level Base Attack Bonus Fort Save Reflex Save Will Save Autogranted Spell Points