Template:Dr-make

From Wikispooks
Revision as of 02:16, 6 July 2016 by Robin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}}.