Difference between revisions of "Template:ClassAdvancementTableHeader"

From DDO Compendium
Line 7: Line 7:
|parameter1description = The number of spell levels, if blank there are none.
|parameter1description = The number of spell levels, if blank there are none.
|parameter1values =  
|parameter1values =  
|parameter1name = Class Name
|parameter2name = Class Name
|parameter1description = The name of the class
|parameter2description = The name of the class
|parameter1values =
|parameter2name = column name
|parameter2description = The name of the column - This can be repeated 10 times
|parameter2values =  
|parameter2values =  
|parameter3name = column name
|parameter3description = The name of the column - This can be repeated 10 times
|parameter3values =
}}</noinclude>
}}</noinclude>
 
<table class="wikitable" style="color: white; background-color:#3a3f44; width: 70%;">
{| class="wikitable" style="color: white; background-color:#3a3f44; width: 70%;"
<tr>
| colspan="{{#if: {{{10|}}}|16|{{#if: {{{9|}}}|15|{{#if: {{{8|}}}|14|{{#if: {{{7|}}}|13|{{#if: {{{6|}}}|12|{{#if: {{{5|}}}|11|{{#if: {{{4|}}}|10|{{#if: {{{3|}}}|9|{{#if: {{{2|}}}|8|{{#if: {{{1|}}}|7}}}}}}}}}}}}}}}}}}}}" | {{{2}}}{{#ifexpr: {{{1|0}}} > 0| {{!}} colspan="{{#expr: {{{1}}}+1}}" {{!}} "Spells"
<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}}}}}}}}}}}}}}}}}}}}">
|-
{{{1}}}
Level | Base Attack Bonus | Fort Save| Reflex Save| Will Save| Autogranted{{#if: {{{1|}}}|{{!}}{{{1}}}}}{{#if: {{{2|}}}|{{!}}{{{2}}}}}{{#if: {{{3|}}}|{{!}}{{{3}}}}}{{#if: {{{4|}}}|{{!}}{{{4}}}}}{{#if: {{{5|}}}|{{!}}{{{5}}}}}{{#if: {{{6|}}}|{{!}}{{{6}}}}}{{#if: {{{7|}}}|{{!}}{{{7}}}}}{{#if: {{{8|}}}|{{!}}{{{8}}}}}{{#if: {{{9|}}}|{{!}}{{{9}}}}}{{#if: {{{10|}}}|{{!}}{{{10}}}}}{{#ifexpr: {{{1|0}}} > 0|{{!}}Spell Points {{#ifexpr: {{{1}}} = 1|{{!}}1st}}{{#ifexpr: {{{1}}} = 2|{{!}}1st{{!}}2nd}}{{#ifexpr: {{{1}}} = 3|{{!}}1st{{!}}2nd{{!}}3rd}}{{#ifexpr: {{{1}}} = 4|{{!}}1st{{!}}2nd{{!}}3rd{{!}}4th}}{{#ifexpr: {{{1}}} = 5|{{!}}1st{{!}}2nd{{!}}3rd{{!}}4th{{!}}5th}}{{#ifexpr: {{{1}}} = 6|{{!}}1st{{!}}2nd{{!}}3rd{{!}}4th{{!}}5th{{!}}6th}}{{#ifexpr: {{{1}}} = 7|{{!}}1st{{!}}2nd{{!}}3rd{{!}}4th{{!}}5th{{!}}6th{{!}}7th}}{{#ifexpr: {{{1}}} = 8|{{!}}1st{{!}}2nd{{!}}3rd{{!}}4th{{!}}5th{{!}}6th{{!}}7th{{!}}8th}}{{#ifexpr: {{{1}}} = 9|{{!}}1st{{!}}2nd{{!}}3rd{{!}}4th{{!}}5th{{!}}6th{{!}}7th{{!}}8th{{!}}9th}}
</td>
{{#ifexpr: {{{0|0}}} > 0| <td colspan="{{#expr: {{{0}}}+1}}">Spell Information</td>}}
</tr>
<tr>
<td>Level</td>
<td>Base Attack Bonus</td>
<td>Fort Save</td>
<td>Reflex Save</td>
<td>Will Save</td>
<td>Autogranted</td>
{{#if: {{{2|}}}|<td>{{{2}}}</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>}}
{{#ifexpr: {{{0|0}}} > 0| <td>Spell Points</td>{{#switch: {{{0}}}
|1=<td>1st</td>
|2=<td>1st</td><td>2nd</td>
|3=<td>1st</td><td>2nd</td><td>3rd</td>
|4=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td>
|5=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td>
|6=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td><td>6th</td>
|7=<td>1st</td><td>2nd</td><td>3rd</td><td>4th</td><td>5th</td><td>6th</td><td>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>
|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>

Revision as of 15:45, 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|

{{{1}}}

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