Template:Dr-make
From WilhelmWiki
for
Template:Dr-make
Jump to:
navigation
,
search
<includeonly>{{#switch:{{{2}}}|y={{#switch:{{#expr:{{{1}}}<-498}}{{#expr:{{{1}}}<1}}{{#expr:{{{1}}}<2060}}|111={{drep |{{#expr:1-{{{1}}}}}|{{{3|}}}b}}|011={{drep |{{#expr:1-{{{1}}}}}|y{{{3|}}}b}}|001={{drep|{{{1}}}|y{{{3|}}}}}|000={{Drep |{{{1}}}|{{{3|}}}}}}}|d={{#switch:{{{1}}}|10|20|30|40|50|60|70|80|90|100|110|120|130|140|150|160|170|180 |190|200|210={{drep|{{{1}}}0s|y{{{3|}}}|{{{1}}}0–{{{1}}}9}}|-11|-21|-31|-41|-51|-61|-71|-81|-91|-101|-111|-121|-131|-141|-151|-161={{drep|{{#expr:-{{{1}}}-1}}0s|y{{{3|}}}b|{{#expr:-{{{1}}}-1}}9–{{#expr:-{{{1}}}-1}}0}}|{{#switch:{{#expr:{{{1}}}<-170}}{{#expr:{{{1}}}<-1 }}{{#expr:{{{1}}}<0}}{{#expr:{{{1}}}<1}}{{#expr:{{{1}}}<211}}|11111={{drep |{{#expr:-1-{{{1}}}}}0s|{{{3|}}}b}}|01111={{drep |{{#expr:-1-{{{1}}}}}0s|y{{{3|}}}b}}|00111={{drep|0s|y{{{3|}}}b}}| 00011={{drep|0s|y{{{3|}}}}}|00001={{drep|{{{1}}}0s|y{{{3|}}}}}|00000={{drep|{{{1}}}0s|{{{3|}}}}}}}}}|c={{#switch:{{#expr:{{{1}}}<-39}}{{#expr:{{{1}}}<1}}{{#expr:{{{1}}}<41}}|111={{drep |{{ordinal|{{#expr: 1-{{{1}}}}}}} century|{{{3|}}}b|{{ordinal|{{#expr: 1-{{{1}}}}}}} century}}|011={{drep|{{ordinal|{{#expr: 1-{{{1}}}}}}} century|y{{{3|}}}b|{{ordinal|{{#expr: 1-{{{1}}}}}}} century}}|001={{drep |{{ordinal|{{{1}}}}} century|y{{{3|}}}|{{ordinal|{{{1}}}}} century}}|000={{drep |{{ordinal|{{{1}}}}} century|{{{3|}}}|{{ordinal|{{{1}}}}} century}}}}|m={{#switch:{{#expr:{{{1}}}<-9}}{{#expr:{{{1}}}<1}}{{#expr:{{{1}}}<11}}|111={{drep |{{ordinal|{{#expr: 1-{{{1}}}}}}} millennium|{{{3|}}}b|{{ordinal|{{#expr: 1-{{{1}}}}}}} millennium}}|011={{drep|{{ordinal|{{#expr: 1-{{{1}}}}}}} millennium|y{{{3|}}}b|{{ordinal|{{#expr: 1-{{{1}}}}}}} millennium}}|001={{drep |{{ordinal|{{{1}}}}} millennium|y{{{3|}}}|{{ordinal|{{{1}}}}} millennium}}|000={{drep |{{ordinal|{{{1}}}}} millennium|{{{3|}}}|{{ordinal|{{{1}}}}} millennium}}}}}}</includeonly><noinclude>Produces a representation of a logically-numbered year/decade/century/millennium (first parameter). Second para is y/d/c/m. Representation style depends on the third parameter: *(parameter empty or absent): links to the year if it has an article (not a redirect) *y: always links *n: never links *t: produces simple text (no no-break spaces etc.), e.g. for use in category names *s: displays AD or BC in small capitals *a: adds AD if not BC *ys, ya, ysa, ns, na, nsa, sa: permitted combinations of above options Used by {{tl|dr}}. [[Category:Historical period subtemplates|Dr-make]] </noinclude>
Template:Tl
(
view source
)
Return to
Template:Dr-make
.
Views
Template
Discussion
View source
History
Personal tools
Log in
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Categories
People
Places
Ships
Months
Years
Autobiographies
Documents
Maps
Search
Toolbox
What links here
Related changes
Special pages