Difference between revisions of "Template:ClassAdvancementTableHeader"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "{{TemplateDocumentation |name = ClassAdvancementTableHeader |description = This template is used to render the header for the advancement table. The first 4 columns are prede...") |
m (fix: make table responsive to is doesn't enlarge the page size on mobile) |
||
(20 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = ClassAdvancementTableHeader | |name = ClassAdvancementTableHeader | ||
|description = 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 | |description = 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 | ||
|category = Player Character Templates | |||
|usesnamedparameters = | |usesnamedparameters = | ||
|parameter1name = | |parameter1name = Spell Levels | ||
|parameter1description = The | |parameter1description = The number of spell levels, if blank there are none. | ||
|parameter1values = | |parameter1values = | ||
|parameter2name = Class Name | |||
|parameter2description = The name of the class | |||
|parameter2values = | |||
|parameter3name = column name | |||
|parameter3description = The name of the column - This can be repeated 10 times | |||
|parameter3values = | |||
}}</noinclude> | }}</noinclude> | ||
<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}}} | |||
|1=<td width=1%>1st</td> | |||
|2=<td width=1%>1st</td><td width=1%>2nd</td> | |||
|3=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td> | |||
|4=<td width=1%>1st</td><td width=1%>2nd</td><td width=1%>3rd</td><td width=1%>4th</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 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 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 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 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> |
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 |