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

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(copied from the template)
 
imported>Wbm1058
(+ Examples)
Line 11: Line 11:
 
*ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options
 
*ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options
  
Used by {{tl|dr}}.
+
Used by {{tl|dr}}. Uses {{tl|drep}}.
 +
 
 +
== Examples ==
 +
* {<nowiki/>{dr-make|1|y}} {{dr-make|1|y}}
 +
* {<nowiki/>{dr-make|1|y|n}} {{dr-make|1|y|n}}
 +
* {<nowiki/>{dr-make|1|y|t}} {{dr-make|1|y|t}}
 +
* {<nowiki/>{dr-make|1|y|a}} {{dr-make|1|y|a}}
 +
* {<nowiki/>{dr-make|1|y|sa}} {{dr-make|1|y|sa}}
 +
* {<nowiki/>{dr-make|1|d}} {{dr-make|1|d}}
 +
* {<nowiki/>{dr-make|1|c}} {{dr-make|1|c}}
 +
* {<nowiki/>{dr-make|1|m}} {{dr-make|1|m}}
 +
* {<nowiki/>{dr-make|0|y}} {{dr-make|0|y}}
 +
* {<nowiki/>{dr-make|0|y|s}} {{dr-make|0|y|s}}
 +
* {<nowiki/>{dr-make|-2|y|ysa}} {{dr-make|-2|y|ysa}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 15:39, 15 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