Difference between revisions of "Template:Dr-make/doc"

From blackwiki
Jump to navigation Jump to search
imported>JFG
(Add examples with year 212 to check switch of prefix/suffix AD notation after year 100 →‎Examples)
imported>JFG
(Expand examples →‎Examples)
Line 21: Line 21:
 
* {<nowiki/>{dr-make|212|y|a}} {{dr-make|212|y|a}}
 
* {<nowiki/>{dr-make|212|y|a}} {{dr-make|212|y|a}}
 
* {<nowiki/>{dr-make|212|y|sa}} {{dr-make|212|y|sa}}
 
* {<nowiki/>{dr-make|212|y|sa}} {{dr-make|212|y|sa}}
 +
* {<nowiki/>{dr-make|212|y|na}} {{dr-make|212|y|na}}
 +
* {<nowiki/>{dr-make|212|y|nsa}} {{dr-make|212|y|nsa}}
 +
* {<nowiki/>{dr-make|212|y|ap}} {{dr-make|212|y|ap}}
 +
* {<nowiki/>{dr-make|212|y|sap}} {{dr-make|212|y|sap}}
 
* {<nowiki/>{dr-make|-11|d}} {{dr-make|-11|d}}
 
* {<nowiki/>{dr-make|-11|d}} {{dr-make|-11|d}}
 
* {<nowiki/>{dr-make|-1|d}} {{dr-make|-1|d}}
 
* {<nowiki/>{dr-make|-1|d}} {{dr-make|-1|d}}

Revision as of 11:24, 22 November 2016

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
  • ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options

Used by {{dr}}. Uses {{drep}}.

Examples