ഫലകം:Ntc/doc
< ഫലകം:Ntc
This is a documentation subpage for ഫലകം:Ntc. It may contain usage information, categories and other content that is not part of the original ഫലകം page. |
This template creates a sortable numeric cell with centered contents in a Wikitable.
Use
തിരുത്തുകThe complete syntax of this template is:
{{Ntc|var|prefix=|format=|color=|bgcolor|debug=}}
Parameters
തിരുത്തുക- var is a real number in the range -9999999999999999.999999 to 9999999999999999.999999 (-1E+16 to 1E+16)
- prefix= an optional prefix
- format= a number format option
- format=yes – displays thousands separator commas (default)
- format=no – does not display thousands separator commas
- color= a text color option
- color=black (default)
- bgcolor= a background color option
- bgcolor=#F7F7FF (default)
- debug= a debug option
- debug=yes – displays a debug prefix (see debug examples)
- debug=no – does not display a debug prefix (default)
This template is subject to the number table sorting limitations.
Example
തിരുത്തുകThe following Wikitext:
{|class="wikitable sortable"
|+A Sortable Wikitable
!left alignment
!center alignment
!right alignment
|-
{{ntl|275678|prefix=A. }}
{{ntc|34.820}} km<sup>2</sup>
{{ntr|7917.231}} km<sup>-2</sup>
|-
{{ntl|1665909|prefix=B. }}
{{ntc|45.783}} km<sup>2</sup>
{{ntr|36387.065}} km<sup>-2</sup>
|-
{{ntl|550125|prefix=C. }}
{{ntc|85.882}} km<sup>2</sup>
{{ntr|6405.591}} km<sup>-2</sup>
|}
creates:
left alignment | center alignment | right alignment |
---|---|---|
A. 2,75,678 | 34.820 km2 | 7,917.231 km-2 |
B. 16,65,909 | 45.783 km2 | 36,387.065 km-2 |
C. 5,50,125 | 85.882 km2 | 6,405.591 km-2 |
See also
തിരുത്തുക- This template invokes Template:Nts.
- This template is compatible with Template:Ntl for left aligned cells and Template:Ntr for right aligned cells.
- For help with this template, please contact the assigned maintenance group.