Difference between revisions of "Template:ClassAdvancementTableHeader"

From DDO Compendium
Line 15: Line 15:
}}</noinclude>
}}</noinclude>
<table class="wikitable" style="color: white; background-color:#3a3f44; width: 100%;"><tr><td style="text-align:center" 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}}}}}}}}}}}}}}}}}}}}">{{{2}}}</td>{{#ifexpr: {{{1|0}}} > 0 | <td style="text-align:center"  colspan="{{#expr: {{{1}}}+1}}">Spell Information</td>}}
<table class="wikitable" style="color: white; background-color:#3a3f44; width: 100%;"><tr><td style="text-align:center" 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}}}}}}}}}}}}}}}}}}}}">{{{2}}}</td>{{#ifexpr: {{{1|0}}} > 0 | <td style="text-align:center"  colspan="{{#expr: {{{1}}}+1}}">Spell Information</td>}}
</tr><tr><td width=5%>Level</td><td width=5%>Base Attack Bonus</td><td width=5%>Fort Save</td><td width=5%>Reflex Save</td><td width=5%>Will Save</td><td>Autogranted</td>{{#if: {{{3|}}}|<td>{{{3}}}</td>}}{{#if: {{{4|}}}|<td>{{{4}}}</td>}}{{#if: {{{5|}}}|<td>{{{5}}}</td>}}{{#if: {{{6|}}}|<td>{{{6}}}</td>}}{{#if: {{{7|}}}|<td>{{{7}}}</td>}}{{#if: {{{8|}}}|<td>{{{8}}}</td>}}{{#if: {{{9|}}}|<td>{{{9}}}</td>}}{{#if: {{{10|}}}|<td>{{{10}}}</td>}}{{#if: {{{11|}}}|<td>{{{11}}}</td>}}{{#if: {{{12|}}}|<td>{{{12}}}</td>}}{{#ifexpr: {{{1|0}}} > 0| <td>Spell Points</td>{{#switch: {{{1}}}
</tr><tr><td width=1%>Level</td><td width=1%>Base Attack Bonus</td><td width=1%>Fort Save</td><td width=1%>Reflex Save</td><td width=1%>Will Save</td><td width=100%>Autogranted</td>{{#if: {{{3|}}}|<td width=1%>{{{3}}}</td>}}{{#if: {{{4|}}}|<td width=1%>{{{4}}}</td>}}{{#if: {{{5|}}}|<td width=1%>{{{5}}}</td>}}{{#if: {{{6|}}}|<td width=1%>{{{6}}}</td>}}{{#if: {{{7|}}}|<td width=1%>{{{7}}}</td>}}{{#if: {{{8|}}}|<td width=1%>{{{8}}}</td>}}{{#if: {{{9|}}}|<td width=1%>{{{9}}}</td>}}{{#if: {{{10|}}}|<td width=1%>{{{10}}}</td>}}{{#if: {{{11|}}}|<td width=1%>{{{11}}}</td>}}{{#if: {{{12|}}}|<td width=1%>{{{12}}}</td>}}{{#ifexpr: {{{1|0}}} > 0| <td width=1%>Spell Points</td>{{#switch: {{{1}}}
|1=<td>1st</td>
|1=<td width=1%>1st</td>
|2=<td>1st</td><td>2nd</td>
|2=<td width=1%>1st</td><td width=1%>2nd</td>
|3=<td>1st</td><td>2nd</td><td>3rd</td>
|3=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td>
|4=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td>
|4=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td><td width=1%>4th</td>
|5=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td>
|5=<td width=1%>1st</td><td width=1%>2nd</td><td> width=1%3rd</td><td width=1%>4th</td><td width=1%>5th</td>
|6=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td><td>6th</td>
|6=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td><td width=1%>4th</td><td width=1%>5th</td><td width=1%>6th</td>
|7=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td><td>6th</td><td>7th</td>
|7=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td><td width=1%>4th</td><td width=1%>5th</td><td width=1%>6th</td><td width=1%>7th</td>
|8=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td><td>6th</td><td>7th</td><td>8th</td>
|8=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td><td width=1%>4th</td><td width=1%>5th</td><td width=1%>6th</td><td width=1%>7th</td><td width=1%>8th</td>
|9=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td><td>6th</td><td>7th</td><td>8th</td><td>9th</td>}}}}</tr>
|9=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td><td width=1%>4th</td><td width=1%>5th</td><td width=1%>6th</td><td width=1%>7th</td><td width=1%>8th</td><td width=1%>9th</td>}}}}</tr>

Revision as of 16:41, 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.


{{{2}}}
LevelBase Attack BonusFort SaveReflex SaveWill SaveAutogranted