Template:Auc
Revision as of 04:04, 4 October 2020 by imported>Grufo (Rename |swap= parameter to |flip=)
This template converts a Gregorian or astronomical year to Ab Urbe Condita and vice versa.
Usage
| Markup | Renders as |
|---|---|
{{auc|2020}}
|
Template:Sp(2020 CE) |
{{auc|322|CE}}
|
Template:Sp(322 CE) |
|{{auc|1|AUC}}
|
Template:Sp(753 BCE) |
{{auc|1|AD|disp=eq}}
|
Template:Sp=Template:SpAD 1 |
{{auc|1|BC|disp=or}}
|
|
{{auc|33|bc|abbr=greg}}
|
Template:Sp(33 BC) |
{{auc|450|BCE|alinks=off}}
|
Template:Sp(450 BCE) |
{{auc|321|ad|disp=note}}
|
|
{{auc|99|bce|swap=auc}}
|
Template:Sp(99 BCE) |
Notes
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}} → " Template:Sp(753 BCE)"
| |
puc
|
"PUC ..." E.g.: {{auc|233|PUC}} → " Template: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.: " Template: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.: " Template: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.: " Template:Sp(554 BCE)" |
sqrb
|
Join input and output using "... [...]" | E.g.: " Template:Sp[AD 33]" | |
eq
|
Join input and output using "... = ..." | E.g.: " Template:Sp=Template:Sp600 BC" | |
comma
|
Join input and output using "..., ..." | E.g.: " ,Template:Sp110 CE" | |
or
|
Join input and output using "... or ..." | E.g.: " Template:SporTemplate:Sp400 BCE" | |
bor
|
Join input and output using "... (or ...)" | E.g.: " Template:Sp(orTemplate:SpAD 11)" | |
note
|
Join input and output using ...{{efn|...}}
|
E.g.: " [lower-alpha 1]" Notes | |
alone
|
Display only the number of years and the calendar era according to the |main= parameter
|
E.g.: " " | |
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.: " Template: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}}↓ " Template:Sp(12 CE)" | |
|auc-page=
|
[wiki-page-name]
|
E.g.:{{auc|12|CE|auc-page=AD 12|alinks=off}}↓ " Template: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.: " Template:Sp(AD 71)" | |
greg
|
Invert the order of year and era in the Gregorian part | E.g.: " Template:Sp(71 AD)" | |
all
|
Invert the order of year and era everywhere | E.g.: " Template:Sp(71 AD)" | |
Aliases
- {{Ab urbe condita}}
Subtemplates
- {{Auc/data/year}}
- {{Auc/data/doublet}}
- {{Auc/data/abbr}}
See also
- Ab urbe condita
- Gregorian calendar
- Year zero
- Astronomical year numbering
- Calendar era
- Common Era
- Anno Domini
- {{Year in various calendars}}
| The above documentation is transcluded from Template:Auc/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |