Template:Roman Year/doc

< Template:Roman Year
Revision as of 21:26, 10 June 2022 by Procurator-Imperii-Romani (talk | contribs) (Created page with "{{Documentation subpage}} {{Lua|Module:Roman Year}} {{Lua sidebar}} * This module supports years in both CE and BCE, but with caveats. * This is a new module and may be subject to bugs, to report bugs please use the discord == Usage == {{pre|<nowiki>{{Roman Year|</nowiki>''YYYY''<nowiki>}}</nowiki>}} Replace <code>''YYYY''</code> with the year you would like to be converted to Ab Urbe Condita. When giving a year in BCE, pass the year with a minus sign in front of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • This module supports years in both CE and BCE, but with caveats.
  • This is a new module and may be subject to bugs, to report bugs please use the discord

Usage

{{Roman Year|YYYY}}

Replace YYYY with the year you would like to be converted to Ab Urbe Condita. 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

BCE/CE Template call Roman Date
27 BCE {{Roman Year|-27}} a.d. V Id. Junias MMDCCLXXV AVC
23 BCE {{Roman Year|-23}} a.d. XIII Kal. Novembres MMDCCLXXIV AVC
1 CE {{Roman Year|1}} Kal. Januariis MMDCCLXXV AVC
1 BCE {{Roman Year|-1}} a.d. X Kal. Januarias
01 CE {{Roman Year|01}} Kal. Januariis MMDCCLXXV AVC
02 CE {{Roman Year|02}} pr. Kal. Martias
2012 CE {{Roman Year|2012}} pr. Kal. Martias
2024 CE {{Roman Year|2024}} Lua error in Module:Roman_Date at line 116: attempt to concatenate field '?' (a table value).
2000 CE {{Roman Year|2000}} Lua error in Module:Roman_Date at line 116: attempt to concatenate field '?' (a table value).
2022 CE {{Roman Year|2022}} Id. Januariis MMDCCLXXV AVC
75 BCE {{Roman Year|-75}} Non. Juniis MMDCCLXXIII AVC
2016 CE {{Roman Year|2016}} a.d. VI Kal. Martias MMDCCLXIX AVC
2017 CE {{Roman Year|2017}} a.d. VI Kal. Martias MMDCCLXX AVC
2001 CE {{Roman Year|2001}} a.d. XII Kal. Januarias MMDCCLIV AVC
2024 CE {{Roman Year|2024}} MMDCCLXXVII AVC

Known Bugs

  • 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

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 Year

Convert years to Ab Urbe Condita.

Template parameters

ParameterDescriptionTypeStatus
Year1

The Year to be converted to Ab Urbe Condita. If the year cannot be processed, nothing will be returned.

Example
2022
Numberoptional

See also