Template:Table cell: Difference between revisions
Created page with "{| class="wikitable" |- |<onlyinclude>data-sort-value="{{{sort|}}}" rowspan="{{{rowspan|1}}}" colspan="{{{colspan|1}}}" style="vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="{{{class|}}}" <!-- -->| {{{1}}}</onlyinclude> |} <templatedata> { "params": { "1": { "description": "Text to show in the cell", "type": "string", "default": "—" }, "rowspan": { "description": "How many rows the cell should take up", "example":..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| | |data-sort-value="{{{sort|}}}" rowspan="{{{rowspan|1}}}" colspan="{{{colspan|1}}}" style="vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="{{{class|}}}" <!-- | ||
-->| {{{1}}} | -->| {{{1}}} | ||
|} | |} | ||
<templatedata> | <templatedata> | ||
Revision as of 17:32, 22 May 2024
| {{{1}}} |
Creates a table cell with centered text. Used as a prototype for other templates, and not meant to be used on its own.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Text to show in the cell
| String | optional |
| rowspan | rowspan | How many rows the cell should take up
| Number | suggested |
| colspan | colspan | How many columns the cell should take up
| Number | suggested |
| align | align | Align the text to the start or end of a cell
| String | suggested |
| style | style | Custom CSS to apply to the cell
| String | optional |
| class | class | CSS classes to apply to the cell
| Unknown | optional |
| sort | sort | CSS class to add to the cell | String | optional |