Sjabloon:Adt/doc

Uit informatiestandaarden
< Sjabloon:Adt
Versie door Ahenket (overleg | bijdragen) op 17 jul 2013 om 21:34 (Nieuwe pagina aangemaakt met '{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> {{subst only}} '''Adt''' creates the 'accessdate' field and value in YYY...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen

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: 2024-11-5
  • MYD: november 5, 2024
  • DMY: 5 november 2024

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

  1. |{{subst:adt|three days ago}} — generates the string with the date of three days ago.{{#invoke:Indent|indent|1=|2=}}Given: |{{subst:adt|5}} it will generate:
    |accessdate=2024-11-05
  2. |{{subst:adt|three days ago|lastmonth}} — generates the string with the date of three days ago, which was in the different last month.{{#invoke:Indent|indent|1=|2=}}Given: |{{subst:adt|3|10}} it will generate:
    |accessdate=2024-10-03
  3. "Last year"—has been left as an exercise for the pupil!