Template:Use dmy dates/doc: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported: Wikipedia article on Nicotine templates needed |
imported>KoolKidz112 m changed link |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{high- | {{high use |no-percent=yes}} | ||
{{Template shortcut|dmy|DMY}} | {{Template shortcut|dmy|DMY}} | ||
=== Usage === | === Usage === | ||
To promote consistent date formatting, place this template with other maintenance tags near the top of articles that use the <code>d mmmm yyyy</code> [[date format]] (below hatnotes, but above infoboxes, as per the [[Wikipedia:Manual of Style/Lead section#Elements | To promote consistent date formatting, place this template with other maintenance tags near the top of articles that use the <code>d mmmm yyyy</code> [[date format]] (below hatnotes, but above infoboxes, as per the [[Wikipedia:Manual of Style/Lead section#Elements|Manual of Style]]). Use the parameter <code>|date=</code> for the month and year that an editor or [[WP:bot|bot]] last checked the article for inconsistent date formatting and fixed any found. | ||
Wikipedia articles that use <code>d mmmm yyyy</code> dates, either because of the [[MOS:DATERET|first main contributor]] rule or [[WP:TIES|close national ties]] (see [[Wikipedia:MOSNUM|MOSNUM]]), are systematically tagged with {{Tl|Use dmy dates}} over time. The template is invisible except in edit mode. | Wikipedia articles that use <code>d mmmm yyyy</code> dates, either because of the [[MOS:DATERET|first main contributor]] rule or [[WP:TIES|close national ties]] (see [[Wikipedia:MOSNUM|MOSNUM]]), are systematically tagged with {{Tl|Use dmy dates}} over time. The template is invisible except in edit mode. | ||
Line 13: | Line 13: | ||
'''Use of this template is part of a continuing effort to monitor the date formats used in articles, to assist in maintaining consistent formatting within an article. It is ''not'' a temporary "cleanup" template. Therefore, do not remove the template without valid reason, such as a determination the article uses or should use a different date format.''' | '''Use of this template is part of a continuing effort to monitor the date formats used in articles, to assist in maintaining consistent formatting within an article. It is ''not'' a temporary "cleanup" template. Therefore, do not remove the template without valid reason, such as a determination the article uses or should use a different date format.''' | ||
After being tagged, and bearing in mind article evolution, periodic script or bot runs clean up formats, correcting any new introductions since its last visit, and updating the visit date on the {{Tl|Use dmy dates}} template. | After being tagged, and bearing in mind article evolution, periodic script or bot runs clean up formats, correcting any new introductions since its last visit, and '''updating the visit date''' on the {{Tl|Use dmy dates}} template. | ||
The dmy and mdy templates have almost always been used to indicate date styles in the body of the articles; although it ''may'' also indicate the flavour of dates in reference sections or parts thereof. Therefore, this template notice ought to be read in conjunction with the blurb at [[Wikipedia:Date formattings]]. [[User:Ohconfucius/script/MOSNUM dates|MOSNUM script documentation]] may also be relevant to those interested. | The dmy and mdy templates have almost always been used to indicate date styles in the body of the articles; although it ''may'' also indicate the flavour of dates in reference sections or parts thereof. Therefore, this template notice ought to be read in conjunction with the blurb at [[Wikipedia:Date formattings]]. [[User:Ohconfucius/script/MOSNUM dates|MOSNUM script documentation]] may also be relevant to those interested. | ||
When a citation style does not expect differing date formats, it is permissible to normalize publication dates to the article body text date format, and access/archive dates to either, with date consistency being preferred (see [[MOS:DATEUNIFY]]). | When a citation style does not expect differing date formats, it is permissible to normalize publication dates to the article body text date format, and access/archive dates to either, with date consistency being preferred (see [[MOS:DATEUNIFY]]). | ||
This template is intended for use in articles. It can be used on a template page in order to format citation dates on the template page itself, but it must be enclosed in {{tag|noinclude}} tags so that it is not transcluded into articles or other pages. | |||
===Auto-formatting citation template dates=== | ===Auto-formatting citation template dates=== | ||
Line 43: | Line 45: | ||
"date": { | "date": { | ||
"label": "Month and year", | "label": "Month and year", | ||
"description": "The month and year that the article was last checked | "description": "The month and year that the template was placed or the article was last checked or cleaned (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.", | ||
"type": "string", | "type": "string", | ||
"autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", | "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", | ||
"example": "April 2022", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 61: | Line 63: | ||
=== See also === | === See also === | ||
* {{Tl|Use mdy dates}}, for the <code>mmmm d, yyyy</code> format | * {{Tl|Use mdy dates}}, for the <code>mmmm d, yyyy</code> format | ||
* {{tl|Date}}, which can alter the format of an inputted date | |||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| |