Template:UniversalTable/BigHeader/Start
From SpiralKnights
| {{{col0HeadContent}}} | {{{col1HeadContent}}} |
|---|
[edit] []
Template documentation
This template is a Variant of Template:UniversalTable/Start, it deviates from the aforementioned template in that it has a double row header, where the top row is the normal heading text, and the bottom one has the sorting buttons.
This template also shares the majority of its parameters with Template:UniversalTable/Start, please ensure you check Template:UniversalTable/Start/doc to have a full picture of all parameters, this documentation will only include doubles for parameters of which the default value is different.
It is IMPERATIVE that all tables using this close with Template:UniversalTable/BigHeader/End, otherwise pages using this will break!
Usage
Example:
{{UniversalTable/BigHeader/Start
| colCount = 3
| colSortCount = 5
| col0HeadContent = Header 1 | col1HeadContent = Header 2 | col2HeadContent = Header 3
| col0Width = 200px | col1Width = 304px | col2Width = 90px
| col0SortWidth = 200px | col1SortWidth = 100px | col2SortWidth = 100px | col3SortWidth = 100px | col4SortWidth = 90px
}}
{{UniversalTable
| colCount = 5
| col0Content = C1, R1
| col1Content = C2, R1
| col2Content = C3, R2
| col3Content = C4, R1
| col4Content = C5, R1
}}
{{UniversalTable
| colCount = 5
| col0Content = C1, R2
| col1Content = C2, R2
| col2Content = C3, R2
| col3Content = C4, R2
| col4Content = C5, R2
}}
{{UniversalTable
| colCount = 5
| col0Content = C1, R3
| col1Content = C2, R3
| col2Content = C3, R3
| col3Content = C4, R3
| col4Content = C5, R3
}}
{{UniversalTable
| colCount = 5
| col0Content = C1, R4
| col1Content = C2, R4
| col2Content = C3, R4
| col3Content = C4, R4
| col4Content = C5, R4
}}
{{UniversalTable/BigHeader/End}}
The above code results in the following table:
| Header 1 | Header 2 | Header 3 |
|---|
Parameters
| Parameter | Value Type | Default Value | Maximum Value | Mandatory | Info |
|---|---|---|---|---|---|
| colSortCount | number | 2 | 16 | No | Number of column in second header, can be different from first header to have, for example, multiple columns under a same header cell. |
| headHeight | number | 30 | n/a | No | Height of the yellow header of this template in pixels. |
| sortingState | This parameter is not used by this variant of the template. | ||||
| CSS Width Parameters | |||||
| col0Width | css number | 155px | Same as Template:UniversalTable/Start/doc. | ||
| col1Width | css number | 155px | Same as Template:UniversalTable/Start/doc. | ||
| Sorting columns CSS Width Parameters | |||||
| col0SortWidth | css number | 155px | n/a | No | CSS Width of Sorting Column 1, if not present, this column will use col2Width
|
| col1SortWidth | css number | 155px | n/a | No | CSS Width of Sorting Column 2, if not present, this column will use col2Width
|
| col2SortWidth | css number | n/a | No | CSS Width of Sorting Column 3, if not present, this column will use col2Width
| |
| col3SortWidth | css number | n/a | No | CSS Width of Sorting Column 4, if not present, this column will use col3Width
| |
| col4SortWidth | css number | n/a | No | CSS Width of Sorting Column 5, if not present, this column will use col4Width
| |
| col5SortWidth | css number | n/a | No | CSS Width of Sorting Column 6, if not present, this column will use col5Width
| |
| col6SortWidth | css number | n/a | No | CSS Width of Sorting Column 7, if not present, this column will use col6Width
| |
| col7SortWidth | css number | n/a | No | CSS Width of Sorting Column 8, if not present, this column will use col7Width
| |
| col8SortWidth | css number | n/a | No | CSS Width of Sorting Column 9, if not present, this column will use col8Width
| |
| col9SortWidth | css number | n/a | No | CSS Width of Sorting Column 10, if not present, this column will use col9Width
| |
| col10SortWidth | css number | n/a | No | CSS Width of Sorting Column 11, if not present, this column will use col1SWidth
| |
| col11SortWidth | css number | n/a | No | CSS Width of Sorting Column 12, if not present, this column will use col1SWidth
| |
| col12SortWidth | css number | n/a | No | CSS Width of Sorting Column 13, if not present, this column will use col1SWidth
| |
| col13SortWidth | css number | n/a | No | CSS Width of Sorting Column 14, if not present, this column will use col1SWidth
| |
| col14SortWidth | css number | n/a | No | CSS Width of Sorting Column 15, if not present, this column will use col1SWidth
| |
| col15SortWidth | css number | n/a | No | CSS Width of Sorting Column 16, if not present, this column will use col1SWidth
| |
| The above documentation is transcluded from Template:UniversalTable/BigHeader/Start/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |