Template:Citation access-date/doc
Appearance
This is a documentation subpage for Template:Citation access-date. It may contain usage information, categories and other content that is not part of the original template page. |
This template should always be substituted (i.e., use {{subst:Citation access-date}} ). |
Adt creates the 'accessdate' field and value in YYYY-MM-DD format for most Citation templates.
Access dates may be implemented in three formats and should be consistent throughout the article:
- YYYY-MM-DD: 2025-01-4
- MDY: January 4, 2025
- DMY: 4 January 2025
Usage
This template MUST be subst'd.
When subst'd, the template provides the YYYY-MM-DD date field and word string
- "accessdate=CURRENTYEAR-CURRENTMONTH-CURRENTDAY" (all numeric with proper leading zero's)
Alternatively, it can be used to record an older date:
- "accessdate={{{3}}}-{{{2}}}-{{{1}}}", of which any one, two, or all three may be specified, and again will add proper leading zero's and format the output.
Examples
- |
{{subst:Adt|three days ago}}
— generates the string with the date of three days ago.
Given: |{{subst:Adt|5}}
it will generate:|accessdate=2025-01-05
- |
{{subst:Adt|three days ago|lastmonth}}
— generates the string with the date of three days ago, which was in the different last month.
Given: |{{subst:Adt|3|10}}
it will generate:|accessdate=2025-10-03
- "Last year"—has been left as an exercise for the pupil!