Template:UniversalTable/Start

From SpiralKnights
{{{col0HeadContent}}} {{{col1HeadContent}}}
[edit] [purge] Template documentation

This template is used to create table headers with a unified style, it can be set up to have up to 10 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
|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 10 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)
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
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
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)