ಟೆಂಪ್ಲೇಟು:Roman
This template uses Lua: |
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.
Usage
ಬದಲಾಯಿಸಿ{{Roman|number|message}}
Replace number
with the number you would like to be converted to Roman numerals. For numbers higher than 4999999 the template outputs "N/A". This can be changed by replacing message
with your preferred text.
Examples
ಬದಲಾಯಿಸಿArabic Numerals | Template Call | Roman Numerals |
---|---|---|
1 | {{Roman|1}} | I |
2 | {{Roman|2}} | II |
49 | {{Roman|49}} | XLIX |
50 | {{Roman|50}} | L |
51 | {{Roman|51}} | LI |
1024 | {{Roman|1024}} | MXXIV |
4999 | {{Roman|4999}} | IVCMXCIX |
5000 | {{Roman|5000}} | V |
5001 | {{Roman|5001}} | VI |
1048576 | {{Roman|1048576}} | MXLVMMMDLXXVI |
7654321 | {{Roman|7654321}} | N/A |
7654321 | {{Roman|7654321|too high}} | too high |
See also
ಬದಲಾಯಿಸಿConvert numbers to Roman numerals.
ಪರಿಮಿತಿ | ವಿವರ | ನಮೂನೆ | ಸ್ಥಾನಮಾನ | |
---|---|---|---|---|
Number | 1 | The number to be converted to Roman numerals. | ಸಂಖ್ಯೆ | ಐಚ್ಛಿಕ |
Message | 2 | Message to display for numbers that are too big to be displayed in Roman numerals. (The largest possible number is 4999999.)
| String | ಐಚ್ಛಿಕ |