Template:Drep

Revision as of 05:21, 5 August 2014 by Manomow (talk | contribs) (Created page with "{{#switch:{{{2|}}}|ysb|yysb|ysab|yysab=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BD|{{{1}}} <small>BD</small>]]| ysbd|yysbd|ysabd|yysabd={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BD (d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

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:

  • (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 BD in small capitals
  • a: adds AD if no b
  • b: adds BD
  • d: adds (decade) to link only, and only if immediately following b

The above options can be combined, in that order (but t not with n or s).

This template is used by {{dr-make}}.