Difference between revisions of "Template:Drep/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Arthur Rubin
(create sandbox)
 
imported>Arthur Rubin
(add d connections)
Line 1: Line 1:
 
{{#switch:{{{2|}}}|ysb|yysb|ysab|yysab=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC|{{{1}}}&nbsp;<small>BC</small>]]|
 
{{#switch:{{{2|}}}|ysb|yysb|ysab|yysab=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC|{{{1}}}&nbsp;<small>BC</small>]]|
 +
ysbd|yysbd|ysabd|yysabd=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC (decade)|{{{1}}}&nbsp;<small>BC</small>]]|
 
yb|yyb|yab|yyab=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC|{{{1}}}&nbsp;BC]]|
 
yb|yyb|yab|yyab=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC|{{{1}}}&nbsp;BC]]|
sb|nsb|ynsb|sab|nsab|ynsab={{{1}}}&nbsp;<small>BC</small>|
+
ybd|yybd|yabd|yyabd=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC (decade)|{{{1}}}&nbsp;BC]]|
b|nb|ynb|ab|nab|ynab={{{1}}}&nbsp;BC|
+
sb|nsb|ynsb|sab|nsab|ynsab|sbd|nsbd|ynsbd|sabd|nsabd|ynsabd={{{1}}}&nbsp;<small>BC</small>|
 +
b|nb|ynb|ab|nab|ynab|bd|nbd|ynbd|abd|nabd|ynabd={{{1}}}&nbsp;BC|
 
tb|ytb|tab|ytab={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC|
 
tb|ytb|tab|ytab={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC|
 +
tbd|ytbd|tabd|ytabd={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC (decade)|
 
ysa|yysa=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}&nbsp;<small>AD</small>]]|
 
ysa|yysa=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}&nbsp;<small>AD</small>]]|
 
ya|yya=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}&nbsp;AD]]|
 
ya|yya=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}&nbsp;AD]]|
Line 20: Line 23:
 
*a: adds AD if no b
 
*a: adds AD if no b
 
*b: adds BC
 
*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).
 
The above options can be combined, in that order (but t not with n or s).
  

Revision as of 17:06, 24 June 2013

{{{1}}}

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