Template:Roman Date
Jump to navigation
Jump to search
This template uses Lua: |
Related pages |
---|
This module implements the {{Roman Date}} template. For behavioural documentation, please see the template page.
- This module supports dates formatted in the form YYYY-MM-DD or MM-DD
- This is a new module and may be subject to bugs, to report bugs please use the discord
- This module also supports leap years which are handled as per the current leap year standard:
- if (year is not divisible by 4) then (it is a common year)
- else if (year is not divisible by 100) then (it is a leap year)
- else if (year is not divisible by 400) then (it is a common year)
- else (it is a leap year)
Usage[edit source]
{{Roman Date|YYYY-MM-DD}}
Replace YYYY-MM-DD
with the date you would like to be converted to Roman dating. When giving a year in BCE, pass the year with a minus sign in front of the year with no space (753 BCE => -753).
For more information please see Roman Dates.
Examples[edit source]
Gregorian Calendar | Template call | Roman Date |
---|---|---|
2022-06-09 | {{Roman Date|2022-06-09}} | a.d. V Id. Junias MMDCCLXXV AVC |
2021-10-20 | {{Roman Date|2021-10-20}} | a.d. XIII Kal. Novembres MMDCCLXXIV AVC |
2022-01-01 | {{Roman Date|2022-01-01}} | Kal. Januariis MMDCCLXXV AVC |
12-23 | {{Roman Date|12-23}} | a.d. X Kal. Januarias |
01-01 | {{Roman Date|01-01}} | Kal. Januariis MMDCCLXXV AVC |
02-29 | {{Roman Date|02-29}} | pr. Kal. Martias |
02-28 | {{Roman Date|02-28}} | pr. Kal. Martias |
2024-02-29 | {{Roman Date|2024-02-29}} | Lua error in Module:Roman_Date at line 116: attempt to concatenate field '?' (a table value). |
2000-02-29 | {{Roman Date|2000-02-29}} | Lua error in Module:Roman_Date at line 116: attempt to concatenate field '?' (a table value). |
2022-01-13 | {{Roman Date|2022-01-13}} | Id. Januariis MMDCCLXXV AVC |
2020-06-05 | {{Roman Date|2020-06-05}} | Non. Juniis MMDCCLXXIII AVC |
2016-02-24 | {{Roman Date|2016-02-24}} | a.d. VI Kal. Martias MMDCCLXIX AVC |
2017-02-24 | {{Roman Date|2017-02-24}} | a.d. VI Kal. Martias MMDCCLXX AVC |
2001-12-21 | {{Roman Date|2001-12-21}} | a.d. XII Kal. Januarias MMDCCLIV AVC |
2024-12-22 | {{Roman Date|2024-12-22}} | a.d. XI Kal. Januarias MMDCCLXXVII AVC |
Known Bugs[edit source]
- Doesn't check for dates that are past the maximum number of days in a month
- Doesn't check for dates below 1 and thus may fail
TemplateData[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Roman Date
Convert dates to Roman dating format.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | 1 | The date to be converted to Roman dating format (counting towards the nearest holy day). This can be in the format YYYY-MM-DD or MM-DD. If the date cannot be processed, nothing will be returned.
| Date | optional |