Changes
Jump to navigation
Jump to search
cat was renamed
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
{{subst only}}
'''Adt''' creates the 'accessdate' field and value for most {{C|Citation templates}}.
Access dates may be implemented in three formats and should be consistent throughout the article:
* {{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|YYYY-MM-DD}}:{{pad|1.4em}}{{CURRENTYEAR}}-{{CURRENTMONTH}}-03{{pad|3.8em}}("ISO" — all numeric, with 2-digit day and month)
===Usage===
This template MUST be subst'd.
When subst'd, the template provides the <code>accessdate</code> parameter name, the <code>=</code> sign, and the formatted date. You may specify a date format to be consistent with the other citations in the article:
{| class="wikitable"
! Markup!! Generates !! Renders as
|- style="vertical-align:top;"
| width="175px" |
{{pad|4px}}<code><nowiki>|{{subst:adt}}</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|{{subst:adt|dmy}}</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|{{subst:adt|mdy}}</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|{{subst:adt|iso}}</nowiki></code>
| width="450px" |
{{pad|4px}}<code><nowiki>|accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|accessdate=CURRENTMONTHNAME CURRENTDAY, CURRENTYEAR</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|accessdate=CURRENTYEAR-CURRENTMONTH2-CURRENTDAY2</nowiki></code>
| width="350px" |
{{pad|4px}}{{para|accessdate|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}<br />{{pad|1em}}(default; the most common internationally)<br /><br />
{{pad|4px}}{{para|accessdate|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}<br />{{pad|1em}}(same as default)<br /><br />
{{pad|4px}}{{para|accessdate|{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}<br />{{pad|1em}}(chiefly [[American English|US]])<br /><br />
{{pad|4px}}{{para|accessdate|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}<br />{{pad|1em}}([[ISO 8601]]; chiefly technical)
|}
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>
<!-- Categories and interwikis go here: -->
[[Category:Citation utility templates]]
[[Category:ISO date templates]]
</includeonly>
<!-- Categories and interwikis go at the bottom of this page. -->
{{subst only}}
'''Adt''' creates the 'accessdate' field and value for most {{C|Citation templates}}.
Access dates may be implemented in three formats and should be consistent throughout the article:
* {{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|YYYY-MM-DD}}:{{pad|1.4em}}{{CURRENTYEAR}}-{{CURRENTMONTH}}-03{{pad|3.8em}}("ISO" — all numeric, with 2-digit day and month)
===Usage===
This template MUST be subst'd.
When subst'd, the template provides the <code>accessdate</code> parameter name, the <code>=</code> sign, and the formatted date. You may specify a date format to be consistent with the other citations in the article:
{| class="wikitable"
! Markup!! Generates !! Renders as
|- style="vertical-align:top;"
| width="175px" |
{{pad|4px}}<code><nowiki>|{{subst:adt}}</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|{{subst:adt|dmy}}</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|{{subst:adt|mdy}}</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|{{subst:adt|iso}}</nowiki></code>
| width="450px" |
{{pad|4px}}<code><nowiki>|accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|accessdate=CURRENTDAY CURRENTMONTHNAME CURRENTYEAR</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|accessdate=CURRENTMONTHNAME CURRENTDAY, CURRENTYEAR</nowiki></code><br /><br /><br />
{{pad|4px}}<code><nowiki>|accessdate=CURRENTYEAR-CURRENTMONTH2-CURRENTDAY2</nowiki></code>
| width="350px" |
{{pad|4px}}{{para|accessdate|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}<br />{{pad|1em}}(default; the most common internationally)<br /><br />
{{pad|4px}}{{para|accessdate|{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}<br />{{pad|1em}}(same as default)<br /><br />
{{pad|4px}}{{para|accessdate|{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}<br />{{pad|1em}}(chiefly [[American English|US]])<br /><br />
{{pad|4px}}{{para|accessdate|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}<br />{{pad|1em}}([[ISO 8601]]; chiefly technical)
|}
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>
<!-- Categories and interwikis go here: -->
[[Category:Citation utility templates]]
[[Category:ISO date templates]]
</includeonly>