Difference between revisions of "Template:Drep/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(+ 911)
imported>R'n'B
(additional examples)
 
Line 33: Line 33:
 
*{<nowiki/>{drep|100s|ysabd}} {{drep|100s|ysabd}}
 
*{<nowiki/>{drep|100s|ysabd}} {{drep|100s|ysabd}}
 
*{<nowiki/>{drep|911|y|911 (year)}} {{drep|911|y|911 (year)}}
 
*{<nowiki/>{drep|911|y|911 (year)}} {{drep|911|y|911 (year)}}
 +
*{<nowiki/>{drep|1984|y}} {{drep|1984|y}}
 +
*{<nowiki/>{drep|2001|y}} {{drep|2001|y}}
 +
*{<nowiki/>{drep|2084|y}} {{drep|2084|y}}
 +
*{<nowiki/>{drep|3035|y}} {{drep|3035|y}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Latest revision as of 18:30, 3 September 2020

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:

  • (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

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

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

Examples

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