Difference between revisions of "Template:Auc/data/doublet/doc"

From blackwiki
Jump to navigation Jump to search
imported>Grufo
(Remove the "main-" prefix from parameters)
imported>Grufo
 
Line 31: Line 31:
 
"flip": {
 
"flip": {
 
"label": "Main flip",
 
"label": "Main flip",
"description": "Invert the order of year and era in the main part",
+
"description": "Invert the order of main year and era",
 
"type": "boolean"
 
"type": "boolean"
 
},
 
},
Line 70: Line 70:
 
"label": "Display",
 
"label": "Display",
 
"description": "Display using a particular format",
 
"description": "Display using a particular format",
"example": "b / sqbr / equals / comma / or / note / alone / number",
+
"example": "b / sqbr / equals / comma / or / bor / note / alone / number",
 
"type": "string",
 
"type": "string",
 
"default": "b"
 
"default": "b"

Latest revision as of 09:40, 5 October 2020

This is only a helper template of {{Auc}} that manages a pair of dates. It is not meant to be invoked directly by humans.

Usage

E.g. {{Auc/data/doublet|year=2773|era=AUC|equals-year=2020|equals-era=CE|abbr=off}} → 2773 Ab Urbe ConditaTemplate:Sp(2020 Common Era)

Parameters

No description.

Template parameters

ParameterDescriptionTypeStatus
Main yearyear

The main year that will be shown

Numberrequired
Main eraera

The main abbreviated era

Example
CE / BCE / AD / BC / AUC / PUC
Stringrequired
Main pagepage

A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year

Pageoptional
Main flipflip

Invert the order of main year and era

Booleanoptional
Equals yearequals-year

The year the main year is equal to

Numberoptional
Equals eraequals-era

The era of the year the main year is equal to

Example
CE / BCE / AD / BC / AUC / PUC
Stringoptional
Equals pageequals-page

A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year

Pageoptional
Equals flipequals-flip

Invert the order of year and era in the equals part

Booleanoptional
Abbreviationsabbr

Use abbreviations

Stringoptional
Automatic linksalinks

Create internal links for the era

Default
on
Example
on / yes / true / off / no / false
Booleanoptional
Displaydisp

Display using a particular format

Default
b
Example
b / sqbr / equals / comma / or / bor / note / alone / number
Stringoptional