Template:N/A: Difference between revisions

From Zoo Wiki
Taken directly from wikipedia
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable"
{{Table cell|1={{{1|—}}}|rowspan={{{rowspan|1}}}|colspan={{{colspan|1}}}|align={{{align|center}}}|style=background: #ececec; color: #2C2C2C;|class=table-na|sort={{{sort|}}}}}<noinclude>
|-
<templatedata>
  | <onlyinclude>data-sort-value="{{{sort|}}}" style="background: #ececec; color: #2C2C2C; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-na" <!--
{
-->| {{{1|—}}}</onlyinclude>
"params": {
|}
"1": {
"description": "Text to show in the cell",
"example": "\"N/A\", \"Unknown\"",
"type": "string",
"default": "—"
},
"rowspan": {
"description": "How many rows the cell should take up",
"example": "2",
"type": "number",
"default": "1",
"suggested": true
},
"colspan": {
"description": "How many columns the cell should take up",
"example": "2",
"type": "number",
"default": "1",
"suggested": true
},
"align": {
"description": "Align the text to the start or end of a cell",
"example": "start, end",
"type": "string",
"default": "center",
"suggested": true
},
"style": {
"description": "Custom CSS to apply to the cell",
"example": "background-color: red;",
"type": "string"
},
"sort": {}
},
"description": "Adds a \"Not Applicable\" cell to tables"
}
</templatedata>
[[Category:Table cell templates]]
</noinclude>

Latest revision as of 17:43, 22 May 2024

data-sort-value="" rowspan="1" colspan="1" style="vertical-align: middle; text-align: center; background: #ececec; color: #2C2C2C;" class="table-na" | —

Adds a "Not Applicable" cell to tables

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Text to show in the cell

Default
Example
"N/A", "Unknown"
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
sortsort

no description

Unknownoptional