Template:Table cell: Difference between revisions

From Zoo Wiki
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
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
   |<onlyinclude>data-sort-value="{{{sort|}}}" rowspan="{{{rowspan|1}}}" colspan="{{{colspan|1}}}" style="vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="{{{class|}}}" <!--
   |<onlyinclude>data-sort-value="{{{sort|}}}" rowspan="{{{rowspan|1}}}" colspan="{{{colspan|1}}}" style="vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="{{{class|}}}" <!--
-->| {{{1}}}</onlyinclude>
-->| {{{1}}}</onlyinclude>
|}
|}<noinclude>
<templatedata>
<templatedata>
{
{
Line 59: Line 59:
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 17:36, 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Text to show in the cell

Default
Stringoptional
rowspanrowspan

How many rows the cell should take up

Default
1
Example
2
Numbersuggested
colspancolspan

How many columns the cell should take up

Default
1
Example
2
Numbersuggested
alignalign

Align the text to the start or end of a cell

Default
center
Example
start, end
Stringsuggested
stylestyle

Custom CSS to apply to the cell

Example
background-color: red;
Stringoptional
classclass

CSS classes to apply to the cell

Example
myclass otherclass
Unknownoptional
sortsort

CSS class to add to the cell

Stringoptional