Template:Dr
From WilhelmWiki
for
Template:Dr
Jump to:
navigation
,
search
<includeonly>{{dr-make|{{dr-logno|{{dr-yr|{{{3}}}|{{{1}}}}}|{{{4|0}}}|{{{2}}}}}|{{{2}}}|{{{5|}}}}}</includeonly><noinclude> Produces a year, decade, century or millennium for use in an infobox or navbox. First parameter is y, d, c, m, depending on what is being input. Second parameter is y, d, c, m, depending on what is to be output. Third parameter is the input number. For example, 1 represents the year 1, the 10s, the 1st century or the 1st millennium (depending on the first parameter). For BC, make the number negative (for the decade 0s BC, use -0). Fourth parameter is an offset from the output value. Notice that the output decade/century/millennium is the (first) decade/century/millennium of the input year/decade/century/millennium, but an output ''year'' is the ''second'' year of an input decade/century/millennium. Fifth parameter contains style options. Normally the item is linked iff it is within the range for which Wikipedia has articles (to configure that range, please edit {{tl|dr-make}}). The following options are available: *y = always link *n = never link *t = never link, and no no-break spaces or other formatting (e.g. for use in category names) *s = small letters for BC (or AD if present) *a = use AD if not BC *ys, ysa, ya, ns, nsa, na, sa = permitted combinations of the above Example: <nowiki>{{dr|c|d|-5|3|s}}</nowiki> produces {{dr|c|d|-5|3|s}}, i.e. first decade of the 5th century BC, offset by +3 decades. [[Category:Historical period subtemplates|Dr]] </noinclude>
Template:Dr
(
view source
)
Template:Dr-logno
(
view source
)
Template:Dr-make
(
view source
)
Template:Dr-yr
(
view source
)
Template:Drep
(
view source
)
Template:Tl
(
view source
)
Return to
Template:Dr
.
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