Template:Dr-make
Jump to navigation
Jump to search
Usage
[edit]Produces a representation of a logically-numbered year/decade/century/millennium (first parameter). Second para is y/d/c/m. Representation style depends on the third parameter:
- (parameter empty or absent): links to the year if it has an article (not a redirect)
- y: always links
- n: never links
- t: produces simple text (no no-break spaces etc.), e.g. for use in category names
- s: displays AD or BC in small capitals
- a: adds AD if not BC
- p: displays AD as prefix (only valid with a)
- ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options
- yap, ysap, nap, nsap, sap: combinations with AD prefix
Used by {{Dr}}
. Uses {{Drep}}
.
Examples
[edit]- {{dr-make|1|y}} 1
- {{dr-make|1|y|n}} 1
- {{dr-make|1|y|t}} 1
- {{dr-make|1|y|a}} AD 1
- {{dr-make|1|y|sa}} AD 1
- {{dr-make|212|y|a}} 212 AD
- {{dr-make|212|y|sa}} 212 AD
- {{dr-make|212|y|na}} 212 AD
- {{dr-make|212|y|nsa}} 212 AD
- {{dr-make|212|y|ap}} AD 212
- {{dr-make|212|y|sap}} AD 212
- {{dr-make|212|y|yap}} AD 212
- {{dr-make|-11|d}} 100s BC
- {{dr-make|-1|d}} 0s BC
- {{dr-make|0|d}} 0s
- {{dr-make|1|d}} 10s
- {{dr-make|10|d}} 100s
- {{dr-make|1|c}} [[Template:Ordinal century|Template:Ordinal century]]
- {{dr-make|1|c|a}} [[Template:Ordinal century|Template:Ordinal century AD]]
- {{dr-make|10|c}} [[Template:Ordinal century|Template:Ordinal century]]
- {{dr-make|1|m}} [[Template:Ordinal millennium|Template:Ordinal millennium]]
- {{dr-make|0|y}} 1 BC
- {{dr-make|0|y|s}} 1 BC
- {{dr-make|-2|y|ysa}} 3 BC
The above documentation is transcluded from Template:Dr-make/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |