Template:Drep/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 date. First parameter is the display text; second is the style; third is the link text (defaults to the display text). Style parameters: The above options can be combined, in that order (but t not with n or s).
 * (parameter empty or absent): no link
 * y/yy: link
 * n: no link even after y
 * t: no link even after y, but return the link text
 * s: displays AD or BC in small capitals
 * a: adds AD if no b
 * p: places AD as prefix (only valid with a)
 * b: adds BC
 * d: adds (decade) to link only, and only if immediately following b

This template is used by dr-make.

Examples

 * {&#x3c;nowiki/&#x3e;{drep|1}}
 * {&#x3c;nowiki/&#x3e;{drep|1|y}}
 * {&#x3c;nowiki/&#x3e;{drep|1|y|AD 1}}
 * {&#x3c;nowiki/&#x3e;{drep|1|y|1 CE}}
 * {&#x3c;nowiki/&#x3e;{drep|1|yy}}
 * {&#x3c;nowiki/&#x3e;{drep|1|yn}}
 * {&#x3c;nowiki/&#x3e;{drep|1|yt}}
 * {&#x3c;nowiki/&#x3e;{drep|1|ya}}
 * {&#x3c;nowiki/&#x3e;{drep|1|ysa}}
 * {&#x3c;nowiki/&#x3e;{drep|1|yap}}
 * {&#x3c;nowiki/&#x3e;{drep|1|ysap}}
 * {&#x3c;nowiki/&#x3e;{drep|1|yab}}
 * {&#x3c;nowiki/&#x3e;{drep|1|ysab}}
 * {&#x3c;nowiki/&#x3e;{drep|10s|y}}
 * {&#x3c;nowiki/&#x3e;{drep|100s|ysabd}}
 * {&#x3c;nowiki/&#x3e;{drep|911|y|911 (year)}}
 * {&#x3c;nowiki/&#x3e;{drep|1984|y}}
 * {&#x3c;nowiki/&#x3e;{drep|2001|y}}
 * {&#x3c;nowiki/&#x3e;{drep|2084|y}}
 * {&#x3c;nowiki/&#x3e;{drep|3035|y}}

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