Difference between revisions of "Template:Drep"
Jump to navigation
Jump to search
imported>Shii (move Anno Domini to the front for typographical accuracy (yeah, i am crossing fingers over this one)) |
imported>Kotniski (sorry but such a change would have to be more complex - this affects centuries etc. as well as years) |
||
| Line 4: | Line 4: | ||
b|nb|ynb|ab|nab|ynab={{{1}}} BC| | b|nb|ynb|ab|nab|ynab={{{1}}} BC| | ||
tb|ytb|tab|ytab={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC| | tb|ytb|tab|ytab={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}} BC| | ||
| − | ysa|yysa=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|<small>AD</small> | + | ysa|yysa=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}} <small>AD</small>]]| |
| − | ya|yya=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}| | + | ya|yya=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}} AD]]| |
| − | sa|nsa|ynsa=<small>AD</small> | + | sa|nsa|ynsa={{{1}}} <small>AD</small>| |
| − | a|na|yna= | + | a|na|yna={{{1}}} AD| |
ta|yta|t|yt={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}| | ta|yta|t|yt={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}| | ||
ys|yys|y|yy=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}]]| | ys|yys|y|yy=[[{{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}|{{{1}}}]]| | ||
Revision as of 07:21, 31 October 2008
{{{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
The above options can be combined, in that order (but t not with n or s).
This template is used by {{dr-make}}.