<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://austenasia.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AYEAR%2Fdoc</id>
	<title>Template:YEAR/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://austenasia.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AYEAR%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://austenasia.wiki/index.php?title=Template:YEAR/doc&amp;action=history"/>
	<updated>2026-10-09T07:08:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://austenasia.wiki/index.php?title=Template:YEAR/doc&amp;diff=450&amp;oldid=prev</id>
		<title>Austenasia: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://austenasia.wiki/index.php?title=Template:YEAR/doc&amp;diff=450&amp;oldid=prev"/>
		<updated>2026-09-18T16:44:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:44, 18 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Austenasia</name></author>
	</entry>
	<entry>
		<id>https://austenasia.wiki/index.php?title=Template:YEAR/doc&amp;diff=449&amp;oldid=prev</id>
		<title>Template:YEAR&gt;Paine Ellsworth: High-use template and update /doc</title>
		<link rel="alternate" type="text/html" href="https://austenasia.wiki/index.php?title=Template:YEAR/doc&amp;diff=449&amp;oldid=prev"/>
		<updated>2023-08-17T08:13:16Z</updated>

		<summary type="html">&lt;p&gt;High-use template and update /doc&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;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{for|the article header for year articles|Template:Year article header}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{Tlx|YEAR|{{var|string formatted as a valid date}}}}&lt;br /&gt;
&lt;br /&gt;
Specify optional parameter {{param|2}} to get soft error rather than a hard {{t|error}}&lt;br /&gt;
{{YEAR/demo|1999}}&lt;br /&gt;
{{YEAR/demo|1999-12-12}}&lt;br /&gt;
{{YEAR/demo|January 1999}}&lt;br /&gt;
{{YEAR/demo|1 January 1999}}&lt;br /&gt;
{{YEAR/demo|January 1, 1999}}&lt;br /&gt;
{{YEAR/demo|1-2-1990}}&lt;br /&gt;
{{YEAR/demo|1/2/1990}}&lt;br /&gt;
{{YEAR/demo|2239-10-23}}&lt;br /&gt;
&lt;br /&gt;
Reports &amp;quot;Error&amp;quot; if given bad input:&lt;br /&gt;
&lt;br /&gt;
{{YEAR/demo|1-14-1990}}&amp;lt;br /&amp;gt;{{in5}}Reason for the error: there are not 14 months.&lt;br /&gt;
{{YEAR/demo|61 January 1999}}&amp;lt;br /&amp;gt;{{in5}}Reason for the error: no month has 61 days.&lt;br /&gt;
{{YEAR/demo|1 MyMonth 1999}}&amp;lt;br /&amp;gt;{{in5}}Reason for the error: there is no such month name.&lt;br /&gt;
{{YEAR/demo|some text which is not a date}}&amp;lt;br /&amp;gt;{{in5}}Reason for the error: no date information to parse.&lt;br /&gt;
{{YEAR/demo|on approximately 1999-12-12}}&amp;lt;br /&amp;gt;{{in5}}Reason for the error: includes extraneous content.&lt;br /&gt;
&lt;br /&gt;
If used with a year range, it returns only the first match:&lt;br /&gt;
&lt;br /&gt;
* {{YEAR/demo|1999-2001}}&lt;br /&gt;
This presently only works when the year range is specified with a hyphen; if correctly given with an en dash, it reports an error (this will probably not be fixed, because handling ranges is not the template&amp;#039;s function; that it kinda-sorta works on something like &amp;lt;code&amp;gt;1999-2001&amp;lt;/code&amp;gt; with a hyphen is basically just an accident):&lt;br /&gt;
* {{YEAR/demo|1999–2001}}&lt;br /&gt;
&lt;br /&gt;
If used without input, it simply outputs the current year:&lt;br /&gt;
&lt;br /&gt;
*{{YEAR/demo|}}&lt;br /&gt;
&lt;br /&gt;
It can be cleanly [[WP:SUBST|substituted]] for this purpose.  If fed invalid data when substituted, it produces a larger, red error.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* {{tlx|date}} – outputs the current date in various parameter-controlled formats&lt;br /&gt;
* {{tlx|DATE}} – a subst-only convenience template used inside cleanup/dispute templates; {{tlsx|DATE}} produces: &amp;lt;samp&amp;gt;date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}&amp;lt;/samp&amp;gt;&lt;br /&gt;
* [[:Category:Time, date and calendar templates]] – numerous date computing, formatting, annotating, and navigation templates&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Date-computing templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Template:YEAR&gt;Paine Ellsworth</name></author>
	</entry>
</feed>