Template:NA/doc: Difference between revisions

Template page
(Created page with "https://wiki.zeah.gg/w/index.php/Template:NA/doc")
 
No edit summary
 
Line 1: Line 1:
https://wiki.zeah.gg/w/index.php/Template:NA/doc
{{Documentation}}
This template displays a table cell with the provided text, or the letters "N/A" if no text is provided.
 
The contents of the cell will be center-aligned unless the optional <code>align</code> parameter is used to specify otherwise. The styling can be further customised using the optional <code>style</code> parameter. The optional <code>data-sort</code> parameter can be used to provide a value used for sorting within the table.
 
==Usage==
This template can be used by entering the following onto a relevant page, within a table cell.
 
<pre>{{NA}}</pre>
 
{| class="wikitable"
!{{NA}}
!Y
!N
|-
|Y||Y||Y
|-
|N||Y||{{NA}}
|}
 
===colspan===
Use this parameter to adjust the column width.
 
===rowspan===
Use this parameter to adjust the row height.
 
<pre>{{NA|colspan=2|rowspan=2}}</pre>
 
{| class="wikitable"
!Y
!{{NA}}
! colspan="2" |N
|-
|Y||Y||Y||Y
|-
| rowspan="2" |N||Y||{{NA|colspan=2|rowspan=2}}
|-
|Y
|}
 
===text===
Use may also change the text presented simply by doing the following:
 
<pre>{{NA|Perhaps}}</pre>
 
{| class="wikitable"
!{{NA}}
!Y
!N
|-
|Y||Y||Y
|-
|N||Y||{{NA|Perhaps}}
|}
 
==See also==
*{{t|Yes}}
*{{t|No}}
 
<includeonly>[[Category:Formatting templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 08:59, 6 March 2023

{{#invoke:Documentation|doc}} This template displays a table cell with the provided text, or the letters "N/A" if no text is provided.

The contents of the cell will be center-aligned unless the optional align parameter is used to specify otherwise. The styling can be further customised using the optional style parameter. The optional data-sort parameter can be used to provide a value used for sorting within the table.

Usage

This template can be used by entering the following onto a relevant page, within a table cell.

{{NA}}
N/A Y N
Y Y Y
N Y N/A

colspan

Use this parameter to adjust the column width.

rowspan

Use this parameter to adjust the row height.

{{NA|colspan=2|rowspan=2}}
Y N/A N
Y Y Y Y
N Y N/A
Y

text

Use may also change the text presented simply by doing the following:

{{NA|Perhaps}}
N/A Y N
Y Y Y
N Y Perhaps

See also

  • {{#invoke:T|main}}
  • {{#invoke:T|main}}