Template talk:Roman
From Wikipedia, the free encyclopedia
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 {{Roman|YOURNUMBER}}, replacing "YOURNUMBER" with a number.
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}} | MMMMCMXCIX |
5000 | {{Roman|5000}} | V |
5001 | {{Roman|5001}} | VI |
1048576 | {{Roman|1048576}} | MXLVMMMDLXXVI |
7654321 | {{Roman|7654321}} | N/A |
7654321 | {{Roman|7654321|No such Roman numerals}} | No such Roman numerals |
For example, {{Roman|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)
[edit] Font-family
I've added a "font" param to the template to allow the serif font to be turned off. It still defaults to "serif", but passing "inherit" will cause it to appear in the same font as the containing text. Mike Dillon 15:24, 3 December 2006 (UTC)
- I really needed this to be the default font for what I'm doing. It does look good with serif though. Is there a way to default it to whatever the default is, but give the option of serif? (The opposite of now?) → JARED (t) 15:38, 3 December 2006 (UTC)
-
- I've just reverted the removal of the font span. Please discuss changes that affect the appearance of templates in widespread use. I may ask to have this template protected because it is in every "year" article (e.g. 2006). Mike Dillon 15:41, 3 December 2006 (UTC)
-
- I don't think changing the default of something already in use in hundreds of articles is reasonable. You can use "font=inherit" for your specific purposes. Mike Dillon 15:42, 3 December 2006 (UTC)
The funny thing is that this was just changed to serif two weeks ago (without discussion). So your suggestion to change it back and have serif an override may be a good one. Mike Dillon 16:39, 3 December 2006 (UTC)
It looks like nearly all of the uses of this template are done through {{Year in other calendars}}. It seems like this template should not have a font-family or a <span> and should be a purely functional conversion template. The {{Year in other calendars}} template is the appropriate place to do font styling, it would seem. Mike Dillon 17:20, 3 December 2006 (UTC)
- I've removed the font styling from this template and moved it up to {{Year in other calendars}} to keep this as a purely functional template. I'm going to contact User:AzaToth (the user who added it) to say that I've removed the font styling. Mike Dillon 17:27, 3 December 2006 (UTC)
-
-
- It would seem so. Let's hope everyone else agrees ;) Mike Dillon 17:38, 3 December 2006 (UTC)
-
[edit] Protection
I've requested that this page be fully protected because it is esoteric and in widespread use. See Wikipedia:Requests for page protection. Mike Dillon 15:47, 3 December 2006 (UTC)
- I appologize if I've brought on this request. I didn't realize how widespread it was. → JARED (t) 16:24, 3 December 2006 (UTC)
- No need to apologize. Protection of widespread templates is not a bad thing. It just means we have to discuss changes before making them. Mike Dillon 16:31, 3 December 2006 (UTC)
The request was not accepted. The template is only used in about 2,000-2,500 articles at the moment, so there isn't much need anyways. Mike Dillon 23:40, 3 December 2006 (UTC)
[edit] Edit request
{{editprotected}} Please update {{/doc}} with {{documentation}}. Per Wikipedia:Template documentation/List Thankyou. -- ṃ•α•Ł•ṭ•ʰ•Ə•Щ• @ 05:57, 28 April 2008 (UTC)
- Done. – Luna Santin (talk) 08:34, 28 April 2008 (UTC)