Template:UniversalTable

From SpiralKnights
{{{col0Content}}} {{{col1Content}}}
[edit] [purge] Template documentation

This template is used to create table rows with a unified style, it must be set up to have the same number of rows as the Template:UniversalTable/Start that was used to begin the table. 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 header template Template:UniversalTable/Start.

Usage

Example:

{{UniversalTable
|colCount=4
|col0Content=John
|col1Content=[[File:Screenshot-john.png]]
|col2Content=John is a fictional NPC created for this example
|col3Content=
*John's Glasses
*John's Tee-Shirt
}}

Parameters

Parameter Value Type Default Value Maximum Value Mandatory Info
colCount number 2 10 Situational Set this to the same number as this table's Template:UniversalTable/Start
height CSS number auto n/a Situational Defines the height of this row.
isFooter text (yes / no) no n/a No Wether or not this column is the footer of the table, setting it to yes will end the table.
hAlign text center n/a Desirable Where to generally horizontally align content in this row. (center / top / bottom)
vAlign text middle n/a Desirable Where to generally vertically align content in this row. (middle / left/ right)
Content parameters
col0Content text n/a Yes Content of Column 1
col1Content text n/a Yes Content of Column 2
col2Content text n/a only if colCount is more than 2 Content of Column 3
col3Content text n/a only if colCount is more than 3 Content of Column 4
col4Content text n/a only if colCount is more than 4 Content of Column 5
col5Content text n/a only if colCount is more than 5 Content of Column 6
col6Content text n/a only if colCount is more than 6 Content of Column 7
col7Content text n/a only if colCount is more than 7 Content of Column 8
col8Content text n/a only if colCount is more than 8 Content of Column 9
col9Content text n/a only if colCount is more than 9 Content of Column 10
Horizontal Alignment parameters
col0hAlign text center n/a Desirable Where to generally horizontally align content in Column 1. (center / top / bottom)
col1hAlign text center n/a Desirable Where to generally horizontally align content in Column 2. (center / top / bottom)
col2hAlign text center n/a Desirable Where to generally horizontally align content in Column 3. (center / top / bottom)
col3hAlign text center n/a Desirable Where to generally horizontally align content in Column 4. (center / top / bottom)
col4hAlign text center n/a Desirable Where to generally horizontally align content in Column 5. (center / top / bottom)
col5hAlign text center n/a Desirable Where to generally horizontally align content in Column 6. (center / top / bottom)
col6hAlign text center n/a Desirable Where to generally horizontally align content in Column 7. (center / top / bottom)
col7hAlign text center n/a Desirable Where to generally horizontally align content in Column 8. (center / top / bottom)
col8hAlign text center n/a Desirable Where to generally horizontally align content in Column 9. (center / top / bottom)
col9hAlign text center n/a Desirable Where to generally horizontally align content in Column 10. (center / top / bottom)
Vertical Alignment parameters
col0vAlign text middle n/a Desirable Where to generally vertically align content in Column 1. (middle / left / right)
col1vAlign text middle n/a Desirable Where to generally vertically align content in Column 2. (middle / left / right)
col2vAlign text middle n/a Desirable Where to generally vertically align content in Column 3. (middle / left / right)
col3vAlign text middle n/a Desirable Where to generally vertically align content in Column 4. (middle / left / right)
col4vAlign text middle n/a Desirable Where to generally vertically align content in Column 5. (middle / left / right)
col5vAlign text middle n/a Desirable Where to generally vertically align content in Column 6. (middle / left / right)
col6vAlign text middle n/a Desirable Where to generally vertically align content in Column 7. (middle / left / right)
col7vAlign text middle n/a Desirable Where to generally vertically align content in Column 8. (middle / left / right)
col8vAlign text middle n/a Desirable Where to generally vertically align content in Column 9. (middle / left / right)
col9vAlign text middle n/a Desirable Where to generally vertically align content in Column 10. (middle / left / right)