Template:UniversalTable/doc
From SpiralKnights
|
|
This is a documentation subpage for Template:UniversalTable (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
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 | 16 | Situational | Set this to the same number as this table's header ( Template:UniversalTable/Start or Template:UniversalTable/BigHeader/Start) |
| height | CSS number | auto | n/a | Defines the height of this row. | |
| hAlign | text | center | n/a | Desirable | Where to generally horizontally align content in this row. (center / top / bottom) |
| vAlign | text | middle | n/a | Where to generally vertically align content in this row. (middle / left/ right) | |
| bgColor | CSS color | #c7dbea | n/a | No | Sets the background color for all cells of this row. |
| Content parameters | |||||
| col0Content | text | n/a | Yes | Content of Column 1 | |
| col1Content | only if colCount is more than 1 | Content of Column 2 | |||
| col2Content | only if colCount is more than 2 | Content of Column 3 | |||
| col3Content | only if colCount is more than 3 | Content of Column 4 | |||
| col4Content | only if colCount is more than 4 | Content of Column 5 | |||
| col5Content | only if colCount is more than 5 | Content of Column 6 | |||
| col6Content | only if colCount is more than 6 | Content of Column 7 | |||
| col7Content | only if colCount is more than 7 | Content of Column 8 | |||
| col8Content | only if colCount is more than 8 | Content of Column 9 | |||
| col9Content | only if colCount is more than 9 | Content of Column 10 | |||
| col10Content | only if colCount is more than 10 | Content of Column 11 | |||
| col11Content | only if colCount is more than 11 | Content of Column 12 | |||
| col12Content | only if colCount is more than 12 | Content of Column 13 | |||
| col13Content | only if colCount is more than 13 | Content of Column 14 | |||
| col14Content | only if colCount is more than 14 | Content of Column 15 | |||
| col15Content | only if colCount is more than 15 | Content of Column 16 | |||
| Vertical Alignment parameters | |||||
| col0vAlign | text | center | n/a | Desirable | Where to generally vertically align content in Column 1. (center / top / bottom) |
| col1vAlign | Where to generally vertically align content in Column 2. (center / top / bottom) | ||||
| col2vAlign | Where to generally vertically align content in Column 3. (center / top / bottom) | ||||
| col3vAlign | Where to generally vertically align content in Column 4. (center / top / bottom) | ||||
| col4vAlign | Where to generally vertically align content in Column 5. (center / top / bottom) | ||||
| col5vAlign | Where to generally vertically align content in Column 6. (center / top / bottom) | ||||
| col6vAlign | Where to generally vertically align content in Column 7. (center / top / bottom) | ||||
| col7vAlign | Where to generally vertically align content in Column 8. (center / top / bottom) | ||||
| col8vAlign | Where to generally vertically align content in Column 9. (center / top / bottom) | ||||
| col9vAlign | Where to generally vertically align content in Column 10. (center / top / bottom) | ||||
| col10vAlign | Where to generally vertically align content in Column 11. (center / top / bottom) | ||||
| col11vAlign | Where to generally vertically align content in Column 12. (center / top / bottom) | ||||
| col12vAlign | Where to generally vertically align content in Column 13. (center / top / bottom) | ||||
| col13vAlign | Where to generally vertically align content in Column 14. (center / top / bottom) | ||||
| col14vAlign | Where to generally vertically align content in Column 15. (center / top / bottom) | ||||
| col15vAlign | Where to generally vertically align content in Column 16. (center / top / bottom) | ||||
| Horizontal Alignment parameters | |||||
| col0hAlign | text | middle | n/a | Desirable | Where to generally horizontally align content in Column 1. (middle / left / right) |
| col1hAlign | Where to generally horizontally align content in Column 2. (middle / left / right) | ||||
| col2hAlign | Where to generally horizontally align content in Column 3. (middle / left / right) | ||||
| col3hAlign | Where to generally horizontally align content in Column 4. (middle / left / right) | ||||
| col4hAlign | Where to generally horizontally align content in Column 5. (middle / left / right) | ||||
| col5hAlign | Where to generally horizontally align content in Column 6. (middle / left / right) | ||||
| col6hAlign | Where to generally horizontally align content in Column 7. (middle / left / right) | ||||
| col7hAlign | Where to generally horizontally align content in Column 8. (middle / left / right) | ||||
| col8hAlign | Where to generally horizontally align content in Column 9. (middle / left / right) | ||||
| col9hAlign | Where to generally horizontally align content in Column 10. (middle / left / right) | ||||
| col10hAlign | Where to generally horizontally align content in Column 11. (middle / left / right) | ||||
| col11hAlign | Where to generally horizontally align content in Column 12. (middle / left / right) | ||||
| col12hAlign | Where to generally horizontally align content in Column 13. (middle / left / right) | ||||
| col13hAlign | Where to generally horizontally align content in Column 14. (middle / left / right) | ||||
| col14hAlign | Where to generally horizontally align content in Column 15. (middle / left / right) | ||||
| col15hAlign | Where to generally horizontally align content in Column 16. (middle / left / right) | ||||