Difference between revisions of "Template:Auc/data/doublet/doc"
imported>Grufo m (→Parameters) |
imported>Grufo (Remove the "main-" prefix from parameters) |
||
| Line 6: | Line 6: | ||
== Usage == | == Usage == | ||
| − | E.g. <code><nowiki>{{Auc/data/doublet| | + | E.g. <code><nowiki>{{Auc/data/doublet|year=2773|era=AUC|equals-year=2020|equals-era=CE|abbr=off}}</nowiki></code> → {{Auc/data/doublet|year=2773|era=AUC|equals-year=2020|equals-era=CE|abbr=off}} |
== Parameters == | == Parameters == | ||
<templatedata>{ | <templatedata>{ | ||
"params": { | "params": { | ||
| − | " | + | "year": { |
"label": "Main year", | "label": "Main year", | ||
"description": "The main year that will be shown", | "description": "The main year that will be shown", | ||
| Line 17: | Line 17: | ||
"required": true | "required": true | ||
}, | }, | ||
| − | " | + | "era": { |
"label": "Main era", | "label": "Main era", | ||
"description": "The main abbreviated era", | "description": "The main abbreviated era", | ||
| Line 23: | Line 23: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
| + | }, | ||
| + | "page": { | ||
| + | "label": "Main page", | ||
| + | "description": "A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year", | ||
| + | "type": "wiki-page-name" | ||
| + | }, | ||
| + | "flip": { | ||
| + | "label": "Main flip", | ||
| + | "description": "Invert the order of year and era in the main part", | ||
| + | "type": "boolean" | ||
}, | }, | ||
"equals-year": { | "equals-year": { | ||
| Line 34: | Line 44: | ||
"example": "CE / BCE / AD / BC / AUC / PUC", | "example": "CE / BCE / AD / BC / AUC / PUC", | ||
"type": "string" | "type": "string" | ||
| + | }, | ||
| + | "equals-page": { | ||
| + | "label": "Equals page", | ||
| + | "description": "A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year", | ||
| + | "type": "wiki-page-name" | ||
| + | }, | ||
| + | "equals-flip": { | ||
| + | "label": "Equals flip", | ||
| + | "description": "Invert the order of year and era in the equals part", | ||
| + | "type": "boolean" | ||
}, | }, | ||
"abbr": { | "abbr": { | ||
| Line 53: | Line 73: | ||
"type": "string", | "type": "string", | ||
"default": "b" | "default": "b" | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
} | } | ||
Revision as of 05:03, 4 October 2020
| 40px | This is a documentation subpage for Template:Auc/data/doublet. It contains usage information, categories and other content that is not part of the original template page. |
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Main year | year | The main year that will be shown | Number | required |
| Main era | era | The main abbreviated era
| String | required |
| Main page | page | A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year | Page | optional |
| Main flip | flip | Invert the order of year and era in the main part | Boolean | optional |
| Equals year | equals-year | The year the main year is equal to | Number | optional |
| Equals era | equals-era | The era of the year the main year is equal to
| String | optional |
| Equals page | equals-page | A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year | Page | optional |
| Equals flip | equals-flip | Invert the order of year and era in the equals part | Boolean | optional |
| Abbreviations | abbr | Use abbreviations | String | optional |
| Automatic links | alinks | Create internal links for the era
| Boolean | optional |
| Display | disp | Display using a particular format
| String | optional |