Difference between revisions of "Template:Drep/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Arthur Rubin
(add d connections)
imported>Wbm1058
(synchronize with live template)
Line 14: Line 14:
 
ys|yys|y|yy=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}]]|
 
ys|yys|y|yy=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}]]|
 
s|ns|yns||n|yn={{{1}}}}}<noinclude>
 
s|ns|yns||n|yn={{{1}}}}}<noinclude>
 
+
{{documentation|content=
 
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:
 
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
 
*(parameter empty or absent): no link
Line 29: Line 29:
  
 
[[Category:Historical period subtemplates|Drep]]
 
[[Category:Historical period subtemplates|Drep]]
</noinclude>
+
}}</noinclude>

Revision as of 03:12, 15 November 2016

{{{1}}}

Template documentation

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