Difference between revisions of "Template:Dr-make/doc"
Jump to navigation
Jump to search
imported>JFG (Adding example "1st century AD" →Examples) |
imported>JFG (Add examples with year 212 to check switch of prefix/suffix AD notation after year 100 →Examples) |
||
| Line 19: | Line 19: | ||
* {<nowiki/>{dr-make|1|y|a}} {{dr-make|1|y|a}} | * {<nowiki/>{dr-make|1|y|a}} {{dr-make|1|y|a}} | ||
* {<nowiki/>{dr-make|1|y|sa}} {{dr-make|1|y|sa}} | * {<nowiki/>{dr-make|1|y|sa}} {{dr-make|1|y|sa}} | ||
| + | * {<nowiki/>{dr-make|212|y|a}} {{dr-make|212|y|a}} | ||
| + | * {<nowiki/>{dr-make|212|y|sa}} {{dr-make|212|y|sa}} | ||
* {<nowiki/>{dr-make|-11|d}} {{dr-make|-11|d}} | * {<nowiki/>{dr-make|-11|d}} {{dr-make|-11|d}} | ||
* {<nowiki/>{dr-make|-1|d}} {{dr-make|-1|d}} | * {<nowiki/>{dr-make|-1|d}} {{dr-make|-1|d}} | ||
Revision as of 11:56, 19 November 2016
| File:Edit-copy green.svg | This is a documentation subpage for Template:Dr-make. It contains usage information, categories and other content that is not part of the original template page. |
Usage
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
- ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options
Used by {{dr}}. Uses {{drep}}.
Examples
- {{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}} AD 212
- {{dr-make|212|y|sa}} 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