Template:Drep/doc

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

 * { {drep|1}}
 * { {drep|1|y}}
 * { {drep|1|y|AD 1}}
 * { {drep|1|y|1 CE}}
 * { {drep|1|yy}}
 * { {drep|1|yn}}
 * { {drep|1|yt}}
 * { {drep|1|ya}}
 * { {drep|1|ysa}}
 * { {drep|1|yap}}
 * { {drep|1|ysap}}
 * { {drep|1|yab}}
 * { {drep|1|ysab}}
 * { {drep|10s|y}}
 * { {drep|100s|ysabd}}
 * { {drep|911|y|911 (year)}}
 * { {drep|1984|y}}
 * { {drep|2001|y}}
 * { {drep|2014|y}}
 * { {drep|2084|y}}
 * { {drep|3035|y}}