Difference between revisions of "Template:Formatnum"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#formatnum:{{{1}}}|{{{2|0}}}|{{lang|en=.|de=,}}|{{lang|en= }}}}</includeonly><noinclude>An language specific to the w:mw:Extension:FormatNum|FormatNum e...")
 
Line 1: Line 1:
<includeonly>{{#formatnum:{{{1}}}|{{{2|0}}}|{{lang|en=.|de=,}}|{{lang|en=&#8239;}}}}</includeonly><noinclude>An language specific to the [[w:mw:Extension:FormatNum|FormatNum extension]]. Following values for the languages are used:
+
<includeonly><span style="white-space:nowrap;">{{#formatnum:{{{1}}}|{{{2|0}}}|{{lang|en=.|de=,}}|{{lang|en=t}}}}</span></includeonly><noinclude>An language specific to the [[w:mw:Extension:FormatNum|FormatNum extension]]. Following values for the languages are used:
 
{| class="wikitable mw-datatable"
 
{| class="wikitable mw-datatable"
 
! Language code
 
! Language code
Line 7: Line 7:
 
| en
 
| en
 
| .
 
| .
| rowspan="2" valign="top" | [[w:Thin space|&amp;#8239;]]
+
| rowspan="2" valign="top" | [[w:Thin space|&amp;thinsp;]]
 
|-
 
|-
 
| de
 
| de
Line 13: Line 13:
 
|}
 
|}
  
According to [[w:ISO_31-0#Numbers|ISO 31-0]] (and in German also [[w:de:DIN 1333|DIN 1333]], [[w:de:DIN 5008|5008]]) a space should be used as a thousand separator to avoid confusion with the decimal separator. This templates uses the Unicode 8239<sub>10</sub> (or 202F<sub>16</sub>) which is a thin non break space.
+
According to [[w:ISO_31-0#Numbers|ISO 31-0]] (and in German also [[w:de:DIN 1333|DIN 1333]], [[w:de:DIN 5008|5008]]) a space should be used as a thousand separator to avoid confusion with the decimal separator. This templates uses the Unicode 8201<sub>10</sub> (or 2009<sub>16</sub>) which is a thin space.
  
 
== Parameters ==
 
== Parameters ==

Revision as of 12:23, 6 April 2013

An language specific to the FormatNum extension. Following values for the languages are used:

Language code Decimal separator Thousand separater
en . &thinsp;
de ,

According to ISO 31-0 (and in German also DIN 1333, 5008) a space should be used as a thousand separator to avoid confusion with the decimal separator. This templates uses the Unicode 820110 (or 200916) which is a thin space.

Parameters

# Optional Description

Template:ParameterRow Template:ParameterRow