Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Auto-formatting citation template dates  





3 Syntax  





4 TemplateData  





5 Wrongly tagged?  





6 Tracking categories  





7 See also  














Template:Use dmy dates






Аԥсшәа
العربية

Авар
تۆرکجه
Basa Bali

Bosanski
Català
Cymraeg
الدارجة
فارسی
Fiji Hindi
Føroyskt

ि
Bahasa Indonesia
Kurdî

مصرى

Bahasa Melayu
Монгол

 

Oʻzbekcha / ўзбекча
پښتو
Română

Scots
Shqip

Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
ி
Татарча / tatarça
 


Українська
اردو
Tiếng Vit

Zazaki

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikidata
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


  • {{DMY}}
  • Usage

    To promote consistent date formatting, place this template with other maintenance tags near the top of articles that use the d mmmm yyyy date format (below hatnotes, but above infoboxes, as per the Manual of Style). The parameter |date= is intended to track the most recent month and year in which an editor or bot checked the article for inconsistent date formatting and, if any inconsistencies were found, fixed them to comply with this template's date formatting preference.

    Wikipedia articles that use d mmmm yyyy dates, either because of the first main contributor rule or close national ties (see MOSNUM), are systematically tagged with {{Use dmy dates}} over time. The template is visible only in edit mode.

    The template is useful to the editors to quickly know which date format is to be used when adding new dates into an article. It also facilitates article maintenance by enabling bots to recognise use of this format, and by adding the article to the hidden category Use dmy dates.

    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 that the article uses or should use a different date format.

    After an article is tagged, periodic script or bot runs clean up formats, correcting any new introductions since the bot's last visit, and updating the tracking date parameter in the {{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. 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).

    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 <noinclude>...</noinclude> tags so that it is not transcluded into articles or other pages.

    Auto-formatting citation template dates

    Citation Style 1 and 2 (collectively cs1|2) templates automatically render dates (|date=, |access-date=, |archive-date=, etc.) in the style specified by this template. Because it is allowed by WP:MOSDATES, the cs1|2 templates can automatically format dates in a variety of styles. Editors may choose how cs1|2 templates render dates by the use of |cs1-dates=<keyword>.

    Acceptable |cs1-dates= keywords
    Keyword Definition
    l long-form publication and access- / archive-dates;
    this is the default case when |cs1-dates= is omitted or empty
    ll
    ls long-form publication dates; abbreviated access- / archive-dates
    ly long-form publication dates; year-initial numeric access- / archive-dates (ymd)
    s abbreviated publication and access- / archive-dates
    ss
    sy abbreviated publication dates; year-initial numeric access- / archive-dates (ymd)
    y year-initial numeric publication, access- and archive-dates (ymd);
    cs1|2 cannot reformat Month YYYY, Season YYYY, date-ranges of any form, or Julian calendar dates into ymd format
    yy

    An example is given at Help:Citation Style 1 § Auto-formatting citation template dates.

    Nota bene: cs1|2 auto-date formatting does not apply when previewing an article section that does not contain a {{use xxx dates}} template. When editing with the visual editor, changes to this template do not take effect until the page is saved.

    Syntax

    {{Use dmy dates|date=June 2024}}

    Notes:

    TemplateData

    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Use dmy dates in articles based on its TemplateData.

    TemplateData for Use dmy dates

    This template should be placed near the top of articles that use the d mmmm yyyy date format.

    Template parameters[Edit template data]

    This template prefers inline formatting of parameters.

    ParameterDescriptionTypeStatus
    Month and yeardate

    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.

    Example
    April 2022
    Auto value
    {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
    Stringsuggested
    cs1-datescs1-dates

    How dates should be formatted in CS1 citations

    Suggested values
    l ll ls ly s ss sy y yy
    Unknownoptional

    Wrongly tagged?

    If, for example, you determine that an article has a template that is inappropriate for its nationality, you should replace it with the appropriate template to avoid scripts or bots reapplying the "wrong" format in the course of maintenance.

    Tracking categories

    See also


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Use_dmy_dates&oldid=1188707464"

    Categories: 
    Templates with no visible output
    Time and date maintenance templates
    Hidden categories: 
    Wikipedia template-protected templates
    Templates using TemplateData
    Templates that add a tracking category
     



    This page was last edited on 7 December 2023, at 04:39 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki