Difference between revisions of "Template:Auc/data/year"
imported>Grufo (New sub-template) |
imported>Grufo (Add TemplateData) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{2|}}}|ad|auc|puc={{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|links={{{links|}}}}}{{sp}}{{{1|}}}|{{{1|}}}{{sp}}{{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|links={{{links|}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | <includeonly>{{#switch:{{{2|}}}|ad|auc|puc={{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|links={{{links|}}}}}{{sp}}{{{1|}}}|{{{1|}}}{{sp}}{{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|links={{{links|}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Year", | ||
| + | "description": "The year that will be shown", | ||
| + | "type": "number" | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "Era", | ||
| + | "description": "The abbreviated era", | ||
| + | "example": "CE / BCE / AD / BC / AUC / PUC" | ||
| + | }, | ||
| + | "abbr": { | ||
| + | "label": "Abbreviations", | ||
| + | "description": "Use abbreviation", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "links": { | ||
| + | "label": "Links", | ||
| + | "description": "Create internal links for the era", | ||
| + | "type": "boolean", | ||
| + | "default": "true" | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
Revision as of 10:02, 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}} → 2003Template:SpCommon Era
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | The year that will be shown | Number | optional |
| Era | 2 | The abbreviated era
| Unknown | optional |
| Abbreviations | abbr | Use abbreviation | String | optional |
| Links | links | Create internal links for the era
| Boolean | optional |
E.g. {{Auc/data/year|258|AUC|alink=off|flip}} → 258Template:SpAUC
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | The year that will be shown | Number | optional |
| Era | 2 | The abbreviated era
| Unknown | optional |
| Abbreviations | abbr | Use abbreviation | String | optional |
| Links | links | Create internal links for the era
| Boolean | optional |
Parameters
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | The year that will be shown | Number | required |
| Era | 2 | The abbreviated era
| String | required |
| Flip | 3 | Invert the order of year and era
| String | optional |
| Abbreviations | abbr | Use abbreviation | String | optional |
| Automatic link | alink | Create internal link for the era
| Boolean | optional |
| Page | page | A Wikipedia article for the specific year; if specified it overrides the |links= parameter | Page | optional |
| The above documentation is transcluded from Template:Auc/data/year/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | The year that will be shown | Number | optional |
| Era | 2 | The abbreviated era
| Unknown | optional |
| Abbreviations | abbr | Use abbreviation | String | optional |
| Links | links | Create internal links for the era
| Boolean | optional |