Difference between revisions of "Template:ClassAdvancementTableHeader"
From DDO Compendium
MNDeveloper (talk | contribs) |
m (fix: make table responsive to is doesn't enlarge the page size on mobile) |
||
Line 15: | Line 15: | ||
|parameter3values = | |parameter3values = | ||
}}</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|6}}}}}}}}}}}}}}}}}}}}">{{{2}}}</td>{{#ifexpr: {{{1|0}}} > 0 | <td style="text-align:center" colspan="{{#expr: {{{1}}}+1}}">Spell Information</td>}} | <table class="wikitable table table-responsive" 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|6}}}}}}}}}}}}}}}}}}}}">{{{2}}}</td>{{#ifexpr: {{{1|0}}} > 0 | <td style="text-align:center" colspan="{{#expr: {{{1}}}+1}}">Spell Information</td>}} | ||
</tr><tr style="text-align:center"><td width=1%>Level</td><td width=1%>{{#bootstrap_tooltip: Base Attack Bonus | text =The first number listed is the Base Attack Bonus. Subsequent numbers indicate the attack bonus the character achieves on various stages of their attack sequence. | placement = bottom }}</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}}} | </tr><tr style="text-align:center"><td width=1%>Level</td><td width=1%>{{#bootstrap_tooltip: Base Attack Bonus | text =The first number listed is the Base Attack Bonus. Subsequent numbers indicate the attack bonus the character achieves on various stages of their attack sequence. | placement = bottom }}</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 width=1%>1st</td> | |1=<td width=1%>1st</td> |
Latest revision as of 05:20, 2 April 2022
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 Levels | The number of spell levels, if blank there are none. |
Class Name | The name of the class |
column name | The 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}}} | |||||
Level | Base Attack Bonus | Fort Save | Reflex Save | Will Save | Autogranted |