ಟೆಂಪ್ಲೇಟು:Roman/doc
ಗೋಚರ
This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Roman It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
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 | ಐಚ್ಛಿಕ |