Difference between revisions of "Template:Auc/data/doublet/doc"
imported>Grufo (Document the new |main-flip= |equals-flip= parameters) |
imported>Grufo m (→Parameters) |
||
| Line 44: | Line 44: | ||
"description": "Create internal links for the era", | "description": "Create internal links for the era", | ||
"type": "boolean", | "type": "boolean", | ||
| − | "default": "on" | + | "default": "on", |
| + | "example": "on / yes / true / off / no / false" | ||
}, | }, | ||
"disp": { | "disp": { | ||
Revision as of 04:28, 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|main-year=2773|main-era=AUC|equals-year=2020|equals-era=CE|abbr=off}} → Template:Sp(2020 Common Era)
Parameters
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Main year | main-year | The main year that will be shown | Number | required |
| Main era | main-era | The main abbreviated era
| String | required |
| 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 |
| 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 |
| Main page | main-page | A Wikipedia article for the specific year; if specified it overrides the effects of the |links= parameter on the year | Page | 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 |
| Main flip | main-flip | Invert the order of year and era in the main part | Boolean | optional |
| Equals flip | equals-flip | Invert the order of year and era in the equals part | Boolean | optional |