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 Situational Wether this table can be sorted by clicking on column headers. (sortable / unsortable)
frameWidth CSS number auto n/a Situational 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)
Content Parameters
col0HeadContent text n/a Yes Content of Column 1
col1HeadContent text n/a Yes Content of Column 2
col2HeadContent text n/a only if colCount is more than 2 Content of Column 3
col3HeadContent text n/a only if colCount is more than 3 Content of Column 4
col4HeadContent text n/a only if colCount is more than 4 Content of Column 5
col5HeadContent text n/a only if colCount is more than 5 Content of Column 6
col6HeadContent text n/a only if colCount is more than 6 Content of Column 7
col7HeadContent text n/a only if colCount is more than 7 Content of Column 8
col8HeadContent text n/a only if colCount is more than 8 Content of Column 9
col9HeadContent text n/a only if colCount is more than 9 Content of Column 10
col10HeadContent text n/a only if colCount is more than 10 Content of Column 11
col11HeadContent text n/a only if colCount is more than 11 Content of Column 12
col12HeadContent text n/a only if colCount is more than 12 Content of Column 13
col13HeadContent text n/a only if colCount is more than 13 Content of Column 14
col14HeadContent text n/a only if colCount is more than 14 Content of Column 15
col15HeadContent text n/a 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 css number n/a Yes CSS Width of Column 2
col2Width css number n/a only if colCount is more than 2 CSS Width of Column 3
col3Width css number n/a only if colCount is more than 3 CSS Width of Column 4
col4Width css number n/a only if colCount is more than 4 CSS Width of Column 5
col5Width css number n/a only if colCount is more than 5 CSS Width of Column 6
col6Width css number n/a only if colCount is more than 6 CSS Width of Column 7
col7Width css number n/a only if colCount is more than 7 CSS Width of Column 8
col8Width css number n/a only if colCount is more than 8 CSS Width of Column 9
col9Width css number n/a only if colCount is more than 9 CSS Width of Column 10
col10Width css number n/a only if colCount is more than 10 CSS Width of Column 11
col11Width css number n/a only if colCount is more than 11 CSS Width of Column 12
col12Width css number n/a only if colCount is more than 12 CSS Width of Column 13
col13Width css number n/a only if colCount is more than 13 CSS Width of Column 14
col14Width css number n/a only if colCount is more than 14 CSS Width of Column 15
col15Width css number n/a 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 text sortable n/a Situational Wether Column 2 should be sortable. (sortable / unsortable)
col2sortState text sortable n/a Situational Wether Column 3 should be sortable. (sortable / unsortable)
col3sortState text sortable n/a Situational Wether Column 4 should be sortable. (sortable / unsortable)
col4sortState text sortable n/a Situational Wether Column 5 should be sortable. (sortable / unsortable)
col5sortState text sortable n/a Situational Wether Column 6 should be sortable. (sortable / unsortable)
col6sortState text sortable n/a Situational Wether Column 7 should be sortable. (sortable / unsortable)
col7sortState text sortable n/a Situational Wether Column 8 should be sortable. (sortable / unsortable)
col8sortState text sortable n/a Situational Wether Column 9 should be sortable. (sortable / unsortable)
col9sortState text sortable n/a Situational Wether Column 10 should be sortable. (sortable / unsortable)
col10sortState text sortable n/a Situational Wether Column 11 should be sortable. (sortable / unsortable)
col11sortState text sortable n/a Situational Wether Column 12 should be sortable. (sortable / unsortable)
col12sortState text sortable n/a Situational Wether Column 13 should be sortable. (sortable / unsortable)
col13sortState text sortable n/a Situational Wether Column 14 should be sortable. (sortable / unsortable)
col14sortState text sortable n/a Situational Wether Column 15 should be sortable. (sortable / unsortable)
col15sortState text sortable n/a Situational Wether Column 16 should be sortable. (sortable / unsortable)