Template:N/A: Difference between revisions

From Zoo Wiki
adding |colspan= and |rowspan= parameters; writing documentation
mNo edit summary
 
(5 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>
|-
  |<onlyinclude>data-sort-value="{{{sort|}}}" rowspan="{{{rowspan|1}}}" colspan="{{{colspan|1}}}" style="background: #ececec; color: #2C2C2C; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-na" <!--
-->| {{{1|}}}</onlyinclude>
|}
<templatedata>
<templatedata>
{
{
Line 44: Line 40:
}
}
</templatedata>
</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