<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ADts%2Fdoc</id>
	<title>Template:Dts/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ADts%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Dts/doc&amp;action=history"/>
	<updated>2026-04-23T20:07:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:Dts/doc&amp;diff=4500&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Dts/doc&amp;diff=4500&amp;oldid=prev"/>
		<updated>2014-03-22T04:19:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:19, 22 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&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>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:Dts/doc&amp;diff=4499&amp;oldid=prev</id>
		<title>Jc3s5h: Explain calendar issue</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Dts/doc&amp;diff=4499&amp;oldid=prev"/>
		<updated>2014-01-28T18:59:44Z</updated>

		<summary type="html">&lt;p&gt;Explain calendar issue&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;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt;&lt;br /&gt;
'''{{PAGENAME}}''' stands for &amp;lt;big&amp;gt;'''D'''&amp;lt;/big&amp;gt;ate &amp;lt;big&amp;gt;'''T'''&amp;lt;/big&amp;gt;able &amp;lt;big&amp;gt;'''S'''&amp;lt;/big&amp;gt;orting and is used to correctly sort and display dates in a sortable table (see [[Help:Sorting]]).&lt;br /&gt;
&lt;br /&gt;
==What it solves==&lt;br /&gt;
Normally, for proper sorting, dates must be entered in YYYY-MM-DD format. However, that format does not conform to the [[MOS:DATE|Manual of Style]] for date display. This template automatically creates the hidden &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span&amp;amp;nbsp;style=&amp;quot;display:none&amp;quot;&amp;gt;1776-07-04&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for sorting purposes and then displays the date like this: '''July 4, 1776'''. To hide the output, use the {{tl|dtsh}} template instead.&lt;br /&gt;
&lt;br /&gt;
==Calendar choice==&lt;br /&gt;
The template is not capable of distinguishing Julian and Gregorian calendar dates. Also, it is not capable of taking a date in one calendar as input and outputting a date in the other calendar. Thus, to insure proper sorting, editors must either use one calendar for all dates, or pick a specific changeover date (for example, deciding that 4 October 1582 is Julian and all later dates are Gregorian); this would be done on an article-by article basis. Editors are also responsible for explaining to the reader whether the visible dates are Julian or Gregorian, if there is any possibility of confusion.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
{{notice|1=Date display can be modified using two named parameters. &lt;br /&gt;
*To use international date formats, use the &amp;lt;code&amp;gt;format=dmy&amp;lt;/code&amp;gt; parameter. &lt;br /&gt;
*To turn off the suppression of word wraps, use the &amp;lt;code&amp;gt;nowrap=off&amp;lt;/code&amp;gt; parameter.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
|+The year, month and day can either be entered separately or as a single date.&lt;br /&gt;
|-&lt;br /&gt;
!width=50%|{{tlf|dts|''year''|''month''|''day''|''BC''}}&lt;br /&gt;
!width=50%|{{tlf|dts|''date''}}&lt;br /&gt;
|-valign=top&lt;br /&gt;
|&lt;br /&gt;
*1st parameter – Year (optional if month is given)&lt;br /&gt;
**Year number – number in the range -9999 through 9999: the numbers -9999 through 0 are used without &amp;quot;bc&amp;quot; and represent astronomical years -9999 through 0, the numbers 1 through 9999 represent that year AD, or BC with the fourth parameter set to bc or BC&lt;br /&gt;
*2nd parameter – Month (optional if the day is not given either)&lt;br /&gt;
**Full month name – February or february&lt;br /&gt;
**Abbreviated month name – Feb or feb&lt;br /&gt;
**Month number – 2 or 02&lt;br /&gt;
*3rd parameter – Day (optional)&lt;br /&gt;
**Day number – 7 or 07&lt;br /&gt;
*4th parameter – optional with value BC or bc&lt;br /&gt;
**Used with a positive year number&lt;br /&gt;
&lt;br /&gt;
Thus e.g. for the year 5 BC we can use &amp;quot;5|bc&amp;quot; or &amp;quot;-4&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
A time period (year or month and year) is sorted according to its start, and time periods with the same starting moment are in order of descending length: a year comes before its first month; a month comes before its first day.&lt;br /&gt;
|&lt;br /&gt;
*1st parameter – the full date in international, US or YYYY-MM-DD format&lt;br /&gt;
**It uses {{[[mw:Help:Extension:ParserFunctions#.23time:|#time:]]}} and so is limited to what the parser function can handle (e.g. it won't go beyond 100 AD).&lt;br /&gt;
**International format is left as it is.  YYYY-MM-DD format defaults to US format.&lt;br /&gt;
**Abbreviated months are accepted.&lt;br /&gt;
**Capitalisation and comma mistakes are corrected.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Input===&lt;br /&gt;
{{tlf|dts|''year''|''month''|''day''|''BC''}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1776|July|4&amp;lt;/code&amp;gt;}}&lt;br /&gt;
{{tlf|dts|''date''}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1776-07-04&amp;lt;/code&amp;gt;}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|July 4, 1776&amp;lt;/code&amp;gt;}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|4 July 1776&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
When supplying a single parameter for the date, it is accepted and interpreted according to the  [http://www.php.net/manual/en/datetime.formats.php php date/time format], except that a single number is interpreted as a year. By default the date is shown as supplied. If the first parameter is not just the year, but no format parameter is supplied, due to a call of function &amp;lt;code&amp;gt;#time&amp;lt;/code&amp;gt; the maximum number of calls of this template on a page is 1200.&lt;br /&gt;
&lt;br /&gt;
Using &amp;lt;code&amp;gt;format&amp;lt;/code&amp;gt; produces a format that depends on, but is not necessarily equal to the format of the supplied date. This requires multiple calls of function &amp;lt;code&amp;gt;#time&amp;lt;/code&amp;gt;, reducing the maximum number of calls of this template on a page in the worst case to 88, see below.&lt;br /&gt;
&lt;br /&gt;
Also see the [[#Examples|examples]] below.&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
Output sent to table&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;display:none&amp;quot;&amp;gt;01776-07-04&amp;lt;/span&amp;gt; July 4, 1776&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;display:none&amp;quot;&amp;gt;01776-07-04&amp;lt;/span&amp;gt; 4 July 1776&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output displayed to user&amp;lt;br&amp;gt;&lt;br /&gt;
*July 4, 1776 or&lt;br /&gt;
*4 July 1776&lt;br /&gt;
&lt;br /&gt;
===Linking===&lt;br /&gt;
The template formerly linked dates automatically. To turn linking off the parameter &amp;lt;code&amp;gt;link=off&amp;lt;/code&amp;gt; was used. In accordance with current guidelines linking is no longer supported. Please do not use this parameter. Please remove it from existing transclusions.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
|-&lt;br /&gt;
!Normal function of the template.&lt;br /&gt;
!The template with &amp;lt;code&amp;gt;debug=yes&amp;lt;/code&amp;gt;, which causes hidden parts to appear:&lt;br /&gt;
|-valign=top&lt;br /&gt;
|&lt;br /&gt;
{{dts/examples}}&lt;br /&gt;
|&lt;br /&gt;
{{dts/examples|debug=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Abbreviating the month name==&lt;br /&gt;
The template displays the name of the month either in abbreviated form or fully spelt out.  There are two ways of controlling which is used.&lt;br /&gt;
#Directly input the desired format.&lt;br /&gt;
#Use the &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; parameter.&lt;br /&gt;
Note that the method to use is determined by the input.  The first method works wherever the second method fails and only in these cases.  The following explains which method to use.&lt;br /&gt;
&lt;br /&gt;
;All numeric input&lt;br /&gt;
If the month is input as a number, the default is to spell it out in full.  &lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|2000-01-01&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|2000-01-01}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|2000|1|1&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|2000|1|1}}&amp;quot;&lt;br /&gt;
In this case the month can be abbreviated by setting &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;on&amp;lt;code&amp;gt;.&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|2000-01-01|abbr=on&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|2000-01-01|abbr=on}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|2000|1|1|abbr=on&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|2000|1|1|abbr=on}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
;Entering a non-numeric month as the second unnamed parameter&lt;br /&gt;
The name of the month either in abbreviated form or fully spelt out when input as the second unnamed parameter.  In either case the output form is equivalent to the input form.&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|2000|January|1&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|2000|January|1}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|2000|Jan|1&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|2000|Jan|1}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
;The whole date as a single parameter with a non-numeric month&lt;br /&gt;
The if the whole date is entered as a single parameter with a non-numeric month, the default is to display the date as input.  In this case either abbreviate or fully spelt out he name of the month as desired.&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1 January 2000&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|1 January 2000}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1 Jan 2000&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|1 Jan 2000}}&amp;quot;&lt;br /&gt;
Using the &amp;lt;code&amp;gt;format&amp;lt;/code&amp;gt; parameter overrides this default behaviour and the month name is spelt out in full by default. In this case the month can be abbreviated by setting &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;on&amp;lt;code&amp;gt;.&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1 January 2000&amp;lt;/code&amp;gt;|format=my}} gives &amp;quot;{{dts|1 January 2000|format=my}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1 Jan 2000|format=my&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|1 Jan 2000|format=my}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1 January 2000&amp;lt;/code&amp;gt;|format=my|abbr=on}} gives &amp;quot;{{dts|1 January 2000|format=my|abbr=on}}&amp;quot;&lt;br /&gt;
*{{&amp;lt;code&amp;gt;dts|1 Jan 2000|format=my|abbr=on&amp;lt;/code&amp;gt;}} gives &amp;quot;{{dts|1 Jan 2000|format=my|abbr=on}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Error handling==&lt;br /&gt;
Entering an invalid date format will (generally)&amp;lt;!--It's not quite perfect.--&amp;gt; produce an error message such as the one below.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;{{dts|35 June 1900}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tl|dtsh}}, hides the template's output&lt;br /&gt;
* {{tl|TBA}}, allows quarters, and allows sorting of time periods by end date.&lt;br /&gt;
* {{tim|dts}}, since on Meta e.g. 09999 9999 induces numeric sort mode, &amp;quot;&amp;amp;&amp;quot; is prefixed to force string sort mode.&lt;br /&gt;
* {{tl|dts1}}&lt;br /&gt;
* {{tl|dts vgr}}, for video game release dates.&lt;br /&gt;
* {{tl|sort}}, sorting by a specified key (also good for complicated numbers, e.g. scientific notation)&lt;br /&gt;
* {{tl|sortname}}, full name sorting (using &amp;quot;last name, first name&amp;quot; as default sort key)&lt;br /&gt;
* {{tl|tts}}, for sorting times in result tables of athletic events (only needed in certain cases - see template documentation)&lt;br /&gt;
* {{tl|mss}}, for sorting times in tables of eclipses&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Sorting templates|Dts]]&lt;br /&gt;
[[Category:Date mathematics templates|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;!-- ADD INTERWIKIS BELOW THIS LINE --&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jc3s5h</name></author>
		
	</entry>
</feed>