Difference between revisions of "Template:Adt/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Good Olfactory
(cat was renamed)
blackwiki>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
Line 33: Line 33:
 
|}
 
|}
 
Note that the template does not include the leading pipe (<code><nowiki>|</nowiki></code>); always precede <code><nowiki>{{subst:adt}}</nowiki></code> with a pipe character as in the examples above.
 
Note that the template does not include the leading pipe (<code><nowiki>|</nowiki></code>); always precede <code><nowiki>{{subst:adt}}</nowiki></code> with a pipe character as in the examples above.
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Citation utility templates]]
 
[[Category:Citation utility templates]]
 
[[Category:ISO date templates]]
 
[[Category:ISO date templates]]
</includeonly>
+
}}</includeonly>

Revision as of 22:02, 23 April 2020

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:

  • D Month YYYY: 3 November 2025 ("DMY" – day followed by full month name, followed by year; no leading zeros)
  • Month D, YYYY: November 3, 2025 ("MDY" – full month name then day; comma separating the day and year; no leading zeros)
  • YYYY-MM-DD: 2025-11-03 ("ISO" — all numeric, with 2-digit day and month)

Usage

This template MUST be subst'd.

When subst'd, the template provides the accessdate 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}}


 |{{subst:adt|dmy}}


 |{{subst:adt|mdy}}


 |{{subst:adt|iso}}

 |accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR


 |accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR


 |accessdate=CURRENTMONTHNAME CURRENTDAY, CURRENTYEAR


 |accessdate=CURRENTYEAR-CURRENTMONTH2-CURRENTDAY2

 |accessdate=11 November 2025
 (default; the most common internationally)

 |accessdate=11 November 2025
 (same as default)

 |accessdate=November 11, 2025
 (chiefly US)

 |accessdate=2025-11-11
 (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.