Jump to content

Template:Citation access-date/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by D'Ranged 1 (talk | contribs) at 08:29, 4 June 2014 (Usage: follow heading usage at Help:Wiki markup). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Adt creates the 'accessdate' field and value for most Citation templates.

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

  • YYYY-MM-DD: 2025-01-04 (all numeric with 2-digit day and month)
  • MDY: January 4, 2025 (full month name and comma separating the day and year)
  • DMY: 4 January 2025 (day followed by full month name followed by year)

Usage

This template MUST be subst'd.

When subst'd, the template provides the date field and word string. You may specify a date format to be consistent with the other citations in the article:

Markup Generates Renders as

 |{{subst:adt}}

 |{{subst:adt|iso}}

 |{{subst:adt|mdy}}

 |{{subst:adt|dmy}}

 |accessdate=CURRENTYEAR-CURRENTMONTH2-CURRENTDAY2

 |accessdate=CURRENTYEAR-CURRENTMONTH2-CURRENTDAY2

 |accessdate=CURRENTMONTHNAME CURRENTDAY, CURRENTYEAR

 |accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR

 |accessdate=2025-01-04

 |accessdate=2025-01-04 (same as default)

 |accessdate=January 4, 2025

 |accessdate=4 January 2025

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