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

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

Revision as of 17:30, 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
Linksalink

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