Difference between revisions of "Template:Auc/data/year"
Jump to navigation
Jump to search
imported>Grufo (Rename |links= parameter to |alink=) |
imported>Grufo m |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch:{{{2|}}}|ad|auc|puc={{#if:{{{page|}}}|[[{{{page | + | <includeonly>{{#switch:{{{2|}}}|ad|auc|puc={{#if:{{{page|}}}|[[{{{page}}}|{{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|alink=off}}{{sp}}{{{1|}}}]]|{{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|alink={{{alink|}}}}}{{sp}}{{{1|}}}}}|{{#if:{{{page|}}}|[[{{{page}}}|{{{1|}}}{{sp}}{{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|alink=off}}]]|{{{1|}}}{{sp}}{{auc/data/abbr|{{{2|}}}|abbr={{{abbr|}}}|alink={{{alink|}}}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 17:41, 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
E.g. {{Auc/data/year|258|AUC|alink=off|flip}} → 258Template:SpAUC
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. |