Template:Auc/doc

From blackwiki
Jump to navigation Jump to search

This template converts a Gregorian or astronomical year to Ab Urbe Condita and vice versa.

Usage

Markup Renders as
{{auc|2020}}

AUC 2773Template:Sp(2020 CE)

{{auc|322|CE}}

AUC 1075Template:Sp(322 CE)

|{{auc|1|AUC}}

AUC 1Template:Sp(753 BCE)

{{auc|1|AD|disp=eq}}

AUC 754Template:Sp=Template:SpAD 1

{{auc|1|BC|disp=or}}
{{auc|33|bc|abbr=greg}}
{{auc|450|BCE|alinks=off}}

AUC 304Template:Sp(450 BCE)

{{auc|321|ad|disp=note}}
{{auc|99|bce|swap=auc}}

655 AUCTemplate:Sp(99 BCE)

Notes

  1. AD 321.

Parameters

Parameter options for {{auc}}
Parameter Value Description Note
|1= [number] The year to convert to Ab Urbe Condita This can be a number greater than zero, in accordance with the Gregorian calendar, or zero or a negative number, in accordance with the astronomical calendar.
|2= ce A Gregorian year will be converted to Ab Urbe Condita (default) "... CE"
ad "AD ..."
bce "... BCE"
bc "... BC"
auc A year Ab Urbe Condita will be converted to a Gregorian year "AUC ..."

E.g.: {{auc|1|AUC}} → "AUC 1Template:Sp(753 BCE)"
puc "PUC ..."

E.g.: {{auc|233|PUC}} → "PUC 233Template:Sp(986 BCE)"
|main= auc The year Ab Urbe Condita is considered the main focus, therefore the Gregorian year will be shown in brackets (default) E.g.: "AUC 2750Template:Sp(1997 CE)"
greg The Gregorian year is considered the main focus, therefore the year Ab Urbe Condita will be shown in brackets E.g.: "1997 CETemplate:Sp(AUC 2750)"
|abbr= on Use the abbreviated name for all calendar eras (default) Display "AUC" instead of "Ab Urbe Condita", "PUC" instead of "Pre Urbe Condita", "CE" instead of "Common Era", "AD" instead of "Anno Domini", "BCE" instead of "Before Common Era", "BC" instead of "BC"
all
greg Abbreviate only the calendar eras that refer to the Gregorian calendar Use the abbreviations "CE", "AD", "BCE" and "BC", but do not abbreviate "Ab Urbe Condita" and "Pre Urbe Condita".
auc Abbreviate only the calendar eras that refer to the Roman calendar Use the abbreviations "AUC" and "PUC", but do not abbreviate "Common Era", "Anno Domini", "Before Common Era" and "Before Christ"
off Use the long name for all calendar eras No abbreviations: all calendar eras will be expanded
none
|disp= b Join input and output using "... (...)" (default) E.g.: "AUC 200Template:Sp(554 BCE)"
sqrb Join input and output using "... [...]" E.g.: "AUC 786Template:Sp[AD 33]"
eq Join input and output using "... = ..." E.g.: "AUC 154Template:Sp=Template:Sp600 BC"
comma Join input and output using "..., ..." E.g.: "AUC 863,Template:Sp110 CE"
or Join input and output using "... or ..." E.g.: "AUC 354Template:SporTemplate:Sp400 BCE"
bor Join input and output using "... (or ...)" E.g.: "AUC 764Template:Sp(orTemplate:SpAD 11)"
note Join input and output using ...{{efn|...}} E.g.: "AUC 633[lower-alpha 1]"

Notes
  1. 121 BCE.
alone Display only the number of years and the calendar era according to the |main= parameter E.g.: "AUC 964"
number Display only a natural number without any era If |1= is a Gregorian year, the number returned equals the value of that year in the astronomical calendar plus 753; if |1= is an year Ab Urbe Condita, the number returned equals exactly the value of that year in the astronomical calendar.

E.g.: {{auc|1|disp=number}} → "754"
|alinks= on Create automatic links for the eras referred (CE, BCE, AD, BC, AUC, PUC) (default) Default behavior
yes
true
off Do not create automatic links for the eras referred E.g.: "AUC 742Template:Sp(12 BCE)"
no
false
|page= [wiki-page-name] Connects the years returned to specific pages; setting one of these parameters overrides the effects of the |alinks= parameter on that year Synonym of |greg-page=
|greg-page= [wiki-page-name] E.g.:
{{auc|12|CE|greg-page=AD 12}}

"AUC 765Template:Sp(12 CE)"
|auc-page= [wiki-page-name] E.g.:
{{auc|12|CE|auc-page=AD 12|alinks=off}}

"AUC 765Template:Sp(12 CE)"
|flip= none Keep the normal order of year and era (default) Default behavior
auc Invert the order of year and era in the Ab Urbe Condita part E.g.: "824 AUCTemplate:Sp(AD 71)"
greg Invert the order of year and era in the Gregorian part E.g.: "AUC 824Template:Sp(71 AD)"
all Invert the order of year and era everywhere E.g.: "824 AUCTemplate:Sp(71 AD)"

Aliases

Subtemplates

See also