Template:Use mdy dates/doc

Usage[edit]

To promote consistent date formatting, place this template with other maintenance tags near the top of articles that use the mmmm d, 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 checked the article for inconsistent date formatting and, if any inconsistencies were found, fixed them to comply with this template's date formatting preference. The template lets editors know which date format to use when adding or editing dates in an article.

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.


Syntax[edit]

{{Use mdy dates|date=May 2024}}

Notes:

  • The template should be inserted in one of the first few lines of code of an article (to improve performance).
  • Do not use redirects of this template, because otherwise its presence in an article may not be recognized by date formatting templates and bots. (There are a number of "legacy redirects" which are still supported at least by CS1/CS2 citation templates, but they should be changed to direct invocations of this template, also for performance reasons.)

TemplateData[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Use mdy dates

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Month and yeardate

The month and year that the article was last checked for inconsistent date formatting. May use "{{subst:DATE}}" template instead

Example
April 2022
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Datesuggested
Cs1-datescs1-dates

How dates should be formatted in CS1 citations

Unknownoptional

Wrongly tagged?[edit]

If you determine that an article is incorrectly tagged with this template, you should replace this template with the correct one or at least remove it. This will prevent scripts and bots from applying the "wrong" format.

Maintenance categories[edit]

See also[edit]