Template:UniversalTable/Start/doc

From SpiralKnights

This template is used to create table headers with a unified style, it can be set up to have up to 16 columns, which are dynamically enabled by a single parameter for column count. This gives readers a single unified style of tables, which they can recognize without having to think twice. And editors an easy (yet boiler-plate) way to make tables, by using this alongside the row template Template:UniversalTable.

Usage

Example:

{{UniversalTable/Start
|colCount=4
|col0Width=100px |col0HeadContent=Name
|col1Width=200px |col1HeadContent=Appearance
|col2Width=400px |col2HeadContent=Description
|col3Width=150px |col3HeadContent=Drops
}}

Parameters

Parameter Value Type Default Value Maximum Value Mandatory Info
colCount number 2 16 Situational Set this to whichever number of columns you need
sortingState text sortable n/a Wether this table can be sorted by clicking on column headers. (sortable / unsortable)
frameWidth CSS number auto n/a Set this to any width you want the frame of this table to have. (best used if some columns have auto width)
stickyHead text yes n/a No Determine if the header of this table should stick to the top of the page when scrolling. (yes / no)
flatTop no n/a Determine if the top of this table should be flat & have no border. (yes / no)
flatBottom no n/a Determine if the Bottom of this table should be flat & have no border. (yes / no)
Content Parameters
col0HeadContent text n/a Yes Content of Column 1
col1HeadContent only if colCount is more than 1 Content of Column 2
col2HeadContent only if colCount is more than 2 Content of Column 3
col3HeadContent only if colCount is more than 3 Content of Column 4
col4HeadContent only if colCount is more than 4 Content of Column 5
col5HeadContent only if colCount is more than 5 Content of Column 6
col6HeadContent only if colCount is more than 6 Content of Column 7
col7HeadContent only if colCount is more than 7 Content of Column 8
col8HeadContent only if colCount is more than 8 Content of Column 9
col9HeadContent only if colCount is more than 9 Content of Column 10
col10HeadContent only if colCount is more than 10 Content of Column 11
col11HeadContent only if colCount is more than 11 Content of Column 12
col12HeadContent only if colCount is more than 12 Content of Column 13
col13HeadContent only if colCount is more than 13 Content of Column 14
col14HeadContent only if colCount is more than 14 Content of Column 15
col15HeadContent only if colCount is more than 15 Content of Column 16
CSS Width Parameters
col0Width css number n/a Yes CSS Width of Column 1
col1Width only if colCount is more than 2 CSS Width of Column 2
col2Width only if colCount is more than 2 CSS Width of Column 3
col3Width only if colCount is more than 3 CSS Width of Column 4
col4Width only if colCount is more than 4 CSS Width of Column 5
col5Width only if colCount is more than 5 CSS Width of Column 6
col6Width only if colCount is more than 6 CSS Width of Column 7
col7Width only if colCount is more than 7 CSS Width of Column 8
col8Width only if colCount is more than 8 CSS Width of Column 9
col9Width only if colCount is more than 9 CSS Width of Column 10
col10Width only if colCount is more than 10 CSS Width of Column 11
col11Width only if colCount is more than 11 CSS Width of Column 12
col12Width only if colCount is more than 12 CSS Width of Column 13
col13Width only if colCount is more than 13 CSS Width of Column 14
col14Width only if colCount is more than 14 CSS Width of Column 15
col15Width only if colCount is more than 15 CSS Width of Column 16
Sorting Parameters
col0sortState text sortable n/a Situational Wether Column 1 should be sortable. (sortable / unsortable)
col1sortState Wether Column 2 should be sortable. (sortable / unsortable)
col2sortState Wether Column 3 should be sortable. (sortable / unsortable)
col3sortState Wether Column 4 should be sortable. (sortable / unsortable)
col4sortState Wether Column 5 should be sortable. (sortable / unsortable)
col5sortState Wether Column 6 should be sortable. (sortable / unsortable)
col6sortState Wether Column 7 should be sortable. (sortable / unsortable)
col7sortState Wether Column 8 should be sortable. (sortable / unsortable)
col8sortState Wether Column 9 should be sortable. (sortable / unsortable)
col9sortState Wether Column 10 should be sortable. (sortable / unsortable)
col10sortState Wether Column 11 should be sortable. (sortable / unsortable)
col11sortState Wether Column 12 should be sortable. (sortable / unsortable)
col12sortState Wether Column 13 should be sortable. (sortable / unsortable)
col13sortState Wether Column 14 should be sortable. (sortable / unsortable)
col14sortState Wether Column 15 should be sortable. (sortable / unsortable)
col15sortState Wether Column 16 should be sortable. (sortable / unsortable)