Jump to content

Template:Citation access-date/doc

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Primefac (talk | contribs) at 11:14, 4 May 2023 (tsh). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Adt creates the access-date parameter and value for most Citation templates.

Access (retrieved) dates may be implemented in three formats and should be consistent throughout the article:

Format Example Notes
D Month YYYY: 3 January 2025 "DMY" – day followed by full month name, followed by year; no leading zeros
Month D, YYYY: January 3, 2025 "MDY" – full month name then day; comma separating the day and year; no leading zeros
YYYY-MM-DD: 2025-01-03 "ISO" – all numeric, with 2-digit day and month

Usage

[edit]

This template must be subst'd.

When subst'd, the template provides the access-date parameter name, the = sign, and the formatted date. You may specify a date format to be consistent with the other citations in the article:

Markup Generates Renders as
|{{subst:adt}} |access-date={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} |access-date=2 January 2025
(default; the most common internationally)
|{{subst:adt|dmy}} |access-date={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} |access-date=2 January 2025
(same as default)
|{{subst:adt|mdy}} |access-date={{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} |access-date=January 2, 2025
(chiefly US)
|{{subst:adt|iso}} |access-date={{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}} |access-date=2025-01-02
(ISO 8601; chiefly technical)

Note that the template does not include the leading pipe (|); always precede {{subst:adt}} with a pipe character as in the examples above.