תבנית:מספר רומי/הוראות שימוש
מראה
This template converts Arabic numerals (that is, 1, 2, 3, etc) into Roman numerals (I, II, III etc). It currently works for any whole number between 1 and 4999999. To use it, enter {{מספר רומי|YOURNUMBER}}, replacing "YOURNUMBER" with a number.
Arabic Numerals | Template Call | Roman Numerals |
---|---|---|
1 | {{מספר רומי|1}} | I |
2 | {{מספר רומי|2}} | II |
49 | {{מספר רומי|49}} | XLIX |
50 | {{מספר רומי|50}} | L |
51 | {{מספר רומי|51}} | LI |
1024 | {{מספר רומי|1024}} | MXXIV |
4999 | {{מספר רומי|4999}} | MMMMCMXCIX |
5000 | {{מספר רומי|5000}} | V |
5001 | {{מספר רומי|5001}} | VI |
1048576 | {{מספר רומי|1048576}} | MXLVMMMDLXXVI |
7654321 | {{מספר רומי|7654321}} | N/A |
7654321 | {{מספר רומי|7654321|No such Roman numerals}} | No such Roman numerals |
For example, {{מספר רומי|2006}} returns MMVI. Warofdreams talk 22:51, 28 May 2006 (UTC)
With the addition of numbers over 5000 with the macron (here done with tpl:Overline), the current version keeps the macron characters separate from the non-macron characters, and thus uses MMMM rather than MV for 4000. This may be a matter of taste, or it may be something that needs fixing. Dpv 13:00, 11 June 2006 (UTC)