Template:Dr-make/doc

&#x3c;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikidata) --&#x3e;

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
 * 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

 * {&#x3c;nowiki/&#x3e;{dr-make|1|y}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|y|n}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|y|t}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|y|a}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|y|sa}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|a}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|sa}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|na}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|nsa}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|ap}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|sap}}
 * {&#x3c;nowiki/&#x3e;{dr-make|212|y|yap}}
 * {&#x3c;nowiki/&#x3e;{dr-make|911|y}}
 * {&#x3c;nowiki/&#x3e;{dr-make|-11|d}}
 * {&#x3c;nowiki/&#x3e;{dr-make|-1|d}}
 * {&#x3c;nowiki/&#x3e;{dr-make|0|d}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|d}}
 * {&#x3c;nowiki/&#x3e;{dr-make|10|d}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|c}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|c|a}}
 * {&#x3c;nowiki/&#x3e;{dr-make|10|c}}
 * {&#x3c;nowiki/&#x3e;{dr-make|1|m}}
 * {&#x3c;nowiki/&#x3e;{dr-make|0|y}}
 * {&#x3c;nowiki/&#x3e;{dr-make|0|y|s}}
 * {&#x3c;nowiki/&#x3e;{dr-make|-2|y|ysa}}

&#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e;