Jump to content

Teamplaid:Use dmy dates/documentation

O Wiktionary

Usage

[deasaich]

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). Use the parameter |date= for the month and year that an editor or bot last checked the article for inconsistent date formatting and fixed any found.

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 invisible except 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 Roinn-seòrsa: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 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 {{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).

Auto-formatting citation template dates

[deasaich]

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>. :w:en:Help:Citation Style 1 § auto date format table An example is given at :w:en:Help:Citation Style 1 § Auto-formatting citation template dates.


Nota bene 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

[deasaich]

{{Use dmy dates|date=dhen Dùbhlachd 2024}}

TemplateData

[deasaich]
This is the TemplateData documentation for this template used by VisualEditor and other tools.

Use dmy dates

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

Paramadairean na teamplaide[Stiùirich an TemplateData]

This template has custom formatting.

ParamadairTuairisgeulSeòrsaStaid
Month and yeardate

The month and year that the article was last checked for inconsistent date formatting. Example: 'June 2013'; may use '{{subst:DATE}}' template instead

Luach fèin-obrachail
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Sreangmolta

Wrongly tagged?

[deasaich]

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.

Maintenance category

[deasaich]

See also

[deasaich]