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

From blackwiki
Jump to navigation Jump to search
imported>Grufo
(→‎Parameters: Rename |links= parameter to |alink=)
imported>Grufo
Line 29: Line 29:
 
},
 
},
 
"alink": {
 
"alink": {
"label": "Links",
+
"label": "Automatic link",
 
"description": "Create internal links for the era",
 
"description": "Create internal links for the era",
 
"type": "boolean",
 
"type": "boolean",

Revision as of 17:31, 2 October 2020

This is only a helper template of {{Auc}} that creates a year string.

Usage

E.g. {{Auc/data/year|2003|CE|abbr=off}} → 2003 Common Era

Parameters

No description.

Template parameters

ParameterDescriptionTypeStatus
Year1

The year that will be shown

Numberrequired
Era2

The abbreviated era

Example
CE / BCE / AD / BC / AUC / PUC
Unknownrequired
Abbreviationsabbr

Use abbreviation

Stringoptional
Automatic linkalink

Create internal links for the era

Default
true
Booleanoptional
Pagepage

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

Pageoptional