Vorlage:FormatNum
Format: inline
Formatiert Zahlen gemäß Wikipedia:Schreibweise von Zahlen.
Vorlagenparameter
| Parameter | Beschreibung | Typ | Status | |
|---|---|---|---|---|
| Zahl | 1 | Zu formatierende Zahl. Ein Dezimalzeichen (Punkt oder Komma) ist erlaubt. | Zahlenwert | erforderlich |
| Formatangabe | 2 | Formatangabe, siehe Wikipedia:Lua/Modul/FormatNum#format | Wikitext | optional |
Kopiervorlage
{{FormatNum|}}
Testtabelle
| Parameter | Ausgabe | Ausgabe mit 2=de | Ausgabe mit 2=ch | Ausgabe mit 2=iso31_0 | Parserfunktion "formatnum:" |
|---|---|---|---|---|---|
| -123456.789 | −123.456,789 | −123 456,789 | −123'456,789 | −123 456,789 | −123.456,789 |
| -123456.7890 | −123.456,789.0 | −123 456,789 0 | −123'456,7890 | −123 456,789 0 | −123.456,7890 |
| -123456,7890 | −123.456,789.0 | −123 456,789 0 | −123'456,7890 | −123 456,789 0 | −123.456,7.890 |
| -12345.6 | −12.345,6 | −12 345,6 | −12'345,6 | −12 345,6 | −12.345,6 |
| -1234.5 | −1.234,5 | −1 234,5 | −1234,5 | −1 234,5 | −1.234,5 |
| -1234 | −1.234 | −1 234 | −1234 | −1 234 | −1.234 |
| -12.34 | −12,34 | −12,34 | −12,34 | −12,34 | −12,34 |
| -9.1 | −9,1 | −9,1 | −9,1 | −9,1 | −9,1 |
| -9 | −9 | −9 | −9 | −9 | −9 |
| -0.5 | −0,5 | −0,5 | −0,5 | −0,5 | −0,5 |
| 0 | 0 | 0 | 0 | 0 | 0 |
| 9 | 9 | 9 | 9 | 9 | 9 |
| 9.1 | 9,1 | 9,1 | 9,1 | 9,1 | 9,1 |
| 12.34 | 12,34 | 12,34 | 12,34 | 12,34 | 12,34 |
| 1234 | 1234 | 1 234 | 1234 | 1 234 | 1.234 |
| 1234.5 | 1.234,5 | 1 234,5 | 1234,5 | 1 234,5 | 1.234,5 |
| 12345.6 | 12.345,6 | 12 345,6 | 12'345,6 | 12 345,6 | 12.345,6 |
| 12345.67 | 12.345,67 | 12 345,67 | 12'345,67 | 12 345,67 | 12.345,67 |
| {{#expr: 100/7}} | 14,285.714.285.714 | 14,285 714 285 714 | 14,285714285714 | 14,285 714 285 714 | 14,285714285714 |
| 100/7 | 100/7 | 100/7 | 100/7 | 100/7 | 100/7 |
| 4321m | 4321m | 4321m | 4321m | 4321m | 4.321m |
| 54321m | 54321m | 54321m | 54321m | 54321m | 54.321m |
| 54321 m | 54321 m | 54321 m | 54321 m | 54321 m | 54.321 m |
| mehr als 4321 m | mehr als 4321 m | mehr als 4321 m | mehr als 4321 m | mehr als 4321 m | mehr als 4.321 m |
| ca. 4321 m | ca. 4321 m | ca. 4321 m | ca. 4321 m | ca. 4321 m | ca. 4.321 m |
| ein Text | ein Text | ein Text | ein Text | ein Text | ein Text |
Lua
Verwendetes Modul: FormatNum #format
Werkzeuge
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.