模板:Auc/doc
此頁面是Template:Auc的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
This template converts a Gregorian or astronomical year to Ab Urbe Condita and vice versa.
使用方式
原始碼 | 效果 |
---|---|
{{auc|2020}} |
|
{{auc|322|CE}} |
|
{{auc|1|AUC}} |
|
{{auc|1|AD|disp=eq}} |
|
{{auc|1|BC|disp=or}} |
|
{{auc|33|bc|abbr=greg}} |
Ab Urbe Condita 721 (33 BC) |
{{auc|450|BCE|alinks=off}} |
AUC 304 (450 BCE) |
{{auc|321|ad|disp=note}} |
|
{{auc|99|bce|swap=auc}} |
|
註釋
參數
Parameter | Value | Description | Note |
---|---|---|---|
|1=
|
[number] | The year to convert to Ab Urbe Condita (or vice versa, see |2= )
|
This can be a number greater than zero, in accordance with Gregorian and Roman calendars, 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 1 (753 BCE)"
| |
puc
|
"PUC ..." E.g.: {{auc|233|PUC}} → "PUC 233 (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 2750 (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 CE (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 200 (554 BCE)" |
sqrb
|
Join input and output using "... [...]" | E.g.: "AUC 786 [AD 33]" | |
eq
|
Join input and output using "... = ..." | E.g.: "AUC 154 = 600 BC" | |
comma
|
Join input and output using "..., ..." | E.g.: "AUC 863, 110 CE" | |
or
|
Join input and output using "... or ..." | E.g.: "AUC 354 or 400 BCE" | |
bor
|
Join input and output using "... (or ...)" | E.g.: "AUC 764 (or AD 11)" | |
cor
|
Join input and output using "..., or ..." | E.g.: "AUC 764, or AD 11" | |
note
|
Join input and output using ...{{efn|...}}
|
E.g.: "AUC 633[a]" Notes | |
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 742 (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 765 (12 CE)" | |
|auc-page=
|
[wiki-page-name]
|
E.g.:{{auc|12|CE|auc-page=AD 12|alinks=off}} ↓ "AUC 765 (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 AUC (AD 71)" | |
greg
|
Invert the order of year and era in the Gregorian part | E.g.: "AUC 824 (71 AD)" | |
all
|
Invert the order of year and era everywhere | E.g.: "824 AUC (71 AD)" |
重定向
- {{Ab urbe condita}}
- {{AUC}}
子模板
- {{Auc/data/year}}
- {{Auc/data/doublet}}
- {{Auc/data/abbr}}
參見