ទំព័រគំរូ:Ntl
This template creates a sortable numeric cell with left aligned contents in a Wikitable.
Use
កែប្រែThe complete syntax of this template is:
{{Ntl|number|prefix=|format=|rowspan=|colspan=|style=|color=|bgcolor=|debug=}}
Parameters
កែប្រែ- number 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
- rowspan= a cell row span option
- rowspan=1 (default)
- colspan= a cell column span option
- colspan=1 (default)
- style= a text style option
- style= – normal text (default)
- style='' – italic text
- style=''' – bold text
- style=''''' – bold italic text
- 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. ២៧៥៦៧៨ | ៣៤.៨២0 km2 | ៧៩១៧.២៣១ km-2 |
B. ១៦៦៥៩០៩ | ៤៥.៧៨៣ km2 | ៣៦៣៨៧.០៦៥ km-2 |
C. ៥៥០១២៥ | ៨៥.៨៨២ km2 | ៦៤០៥.៥៩១ km-2 |
See also
កែប្រែ- This template invokes Template:Nts.
- This template is compatible with Template:Ntc for centered cells and Template:Ntr for right aligned cells.
- For help with this template, please contact the assigned maintenance group.