Difference between revisions of "Template:Auc/data/doublet/doc"
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 | + | "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
| 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 main year and era | 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 |