Difference between revisions of "Template:Drep/doc"
Jump to navigation
Jump to search
imported>Wbm1058 (copied documentation from the template page) |
imported>Wbm1058 (+ Examples) |
||
| Line 14: | Line 14: | ||
This template is used by {{tl|dr-make}}. | This template is used by {{tl|dr-make}}. | ||
| + | |||
| + | == Examples == | ||
| + | *{<nowiki/>{drep|1}} {{drep|1}} | ||
| + | *{<nowiki/>{drep|1|y}} {{drep|1|y}} | ||
| + | *{<nowiki/>{drep|1|yy}} {{drep|1|yy}} | ||
| + | *{<nowiki/>{drep|1|yn}} {{drep|1|yn}} | ||
| + | *{<nowiki/>{drep|1|yt}} {{drep|1|yt}} | ||
| + | *{<nowiki/>{drep|1|ysa}} {{drep|1|ysa}} | ||
| + | *{<nowiki/>{drep|1|yab}} {{drep|1|yab}} | ||
| + | *{<nowiki/>{drep|1|ysab}} {{drep|1|ysab}} | ||
| + | *{<nowiki/>{drep|10s|y}} {{drep|10s|y}} | ||
| + | *{<nowiki/>{drep|100s|ysabd}} {{drep|100s|ysabd}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 14:13, 15 November 2016
| This is a documentation subpage for Template:Drep. It contains usage information, categories and other content that is not part of the original template page. |
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
- 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|yy}} 1
- {{drep|1|yn}} 1
- {{drep|1|yt}} 1
- {{drep|1|ysa}} 1 AD
- {{drep|1|yab}} 1 BC
- {{drep|1|ysab}} 1 BC
- {{drep|10s|y}} 10s
- {{drep|100s|ysabd}} 100s BC