Difference between revisions of "Template:Adt/doc"
blackwiki>SMcCandlish (spell it out (these formats are not random); alignment cleanup) |
blackwiki>SMcCandlish m (tweak) |
||
| Line 7: | Line 7: | ||
* {{var|D Month YYYY}}:{{pad|1em}}3<!--Don't use magicword here; need a 1-digit example.--> {{CURRENTMONTHNAME}} {{CURRENTYEAR}}{{pad|1em}}("DMY" – day followed by full month name, followed by year; no leading zeros) | * {{var|D Month YYYY}}:{{pad|1em}}3<!--Don't use magicword here; need a 1-digit example.--> {{CURRENTMONTHNAME}} {{CURRENTYEAR}}{{pad|1em}}("DMY" – day followed by full month name, followed by year; no leading zeros) | ||
* {{var|Month D, YYYY}}:{{pad|0.8em}}{{CURRENTMONTHNAME}} 3, {{CURRENTYEAR}}{{pad|0.7em}}("MDY" – full month name then day; comma separating the day and year; no leading zeros) | * {{var|Month D, YYYY}}:{{pad|0.8em}}{{CURRENTMONTHNAME}} 3, {{CURRENTYEAR}}{{pad|0.7em}}("MDY" – full month name then day; comma separating the day and year; no leading zeros) | ||
| − | * {{var|YYYY-MM-DD}}:{{pad|1.4em}}{{CURRENTYEAR}}-{{CURRENTMONTH}}-03{{pad|3.8em}}("ISO" | + | * {{var|YYYY-MM-DD}}:{{pad|1.4em}}{{CURRENTYEAR}}-{{CURRENTMONTH}}-03{{pad|3.8em}}("ISO" — all numeric, with 2-digit day and month) |
===Usage=== | ===Usage=== | ||
Revision as of 18:13, 14 November 2015
| This is a documentation subpage for Template:Adt. It contains 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:Adt}}). |
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 April 2026 ("DMY" – day followed by full month name, followed by year; no leading zeros)
- Month D, YYYY: April 3, 2026 ("MDY" – full month name then day; comma separating the day and year; no leading zeros)
- YYYY-MM-DD: 2026-04-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 |
|---|---|---|
|
|
|
|
Note that the template does not include the leading pipe (|); always precede {{subst:adt}} with a pipe character as in the examples above.