<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ADr%2Fdoc</id>
	<title>Template:Dr/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ADr%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Dr/doc&amp;action=history"/>
	<updated>2026-04-12T09:33:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Dr/doc&amp;diff=14803&amp;oldid=prev</id>
		<title>Wikipedia&gt;Vanisaac: /* Subtemplates */clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Dr/doc&amp;diff=14803&amp;oldid=prev"/>
		<updated>2020-04-25T00:36:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Subtemplates: &lt;/span&gt;clean up per &lt;a href=&quot;/w/index.php?title=WP:CAT&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:CAT (page does not exist)&quot;&gt;WP:CAT#T&lt;/a&gt; and &lt;a href=&quot;/w/index.php?title=WP:AWBREQ&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:AWBREQ (page does not exist)&quot;&gt;WP:AWBREQ&lt;/a&gt; add template:Sandbox other&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces a year, decade, century or millennium for use in an infobox or navbox.&lt;br /&gt;
== Usage ==&lt;br /&gt;
First parameter is y, d, c, m, depending on what is being input.&lt;br /&gt;
&lt;br /&gt;
Second parameter is y, d, c, m, depending on what is to be output.&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
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 &amp;#039;&amp;#039;year&amp;#039;&amp;#039; is the &amp;#039;&amp;#039;second&amp;#039;&amp;#039; year of an input decade/century/millennium.&lt;br /&gt;
&lt;br /&gt;
Fifth parameter contains style options. Normally the item is linked if it is within the range for which Wikipedia has articles (to configure that range, please edit {{tl|dr-make}}). The following options are available:&lt;br /&gt;
*y = always link&lt;br /&gt;
*n = never link&lt;br /&gt;
*t = never link, and no no-break spaces or other formatting (e.g. for use in category names)&lt;br /&gt;
*s = small letters for BC (or AD if present)&lt;br /&gt;
*a = use AD if not BC&lt;br /&gt;
*ys, ysa, ya, ns, nsa, na, sa = permitted combinations of the above&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;nowiki&amp;gt;{{dr|c|d|-5|3|s}}&amp;lt;/nowiki&amp;gt; produces {{dr|c|d|-5|3|s}}, i.e. first decade of the 5th century BC, offset by +3 decades.&lt;br /&gt;
&lt;br /&gt;
== Subtemplates ==&lt;br /&gt;
* {{tl|Dr-make}}&lt;br /&gt;
* {{tl|Dr-logno}}&lt;br /&gt;
* {{tl|Dr-yr}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:Historical period subtemplates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Input type&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Specifies whether the input is interpreted as years (y), decades (d), centuries (c), or millennia (m)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Output type&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Specifies whether the output should be in years (y), decades (d), centuries (c), or millennia (m)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Input number&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Starting year, century, etc. Negative values are interpreted as BC.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Offset&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Offset of the output value from the input value, interpreted as the output type&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Style options&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Flags to select the output style. Possible options are \&amp;quot;always link\&amp;quot; (y), \&amp;quot;never link\&amp;quot; (n), \&amp;quot;never link and no formatting\&amp;quot; (t), \&amp;quot;small letters for BC/AD\&amp;quot; (s), \&amp;quot;use AD if not BC\&amp;quot; (a). These may be combined, but y, n, and t are mutually exclusive.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Produces a year, decade, century or millennium for use in an infobox or navbox.&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Vanisaac</name></author>
	</entry>
</feed>