Template:Citation Style documentation/date: Difference between revisions

From Climate Change AI Wiki
Content added Content deleted
imported>SMcCandlish
(self-rv; I forgot this parameter does all kinds of checking for certain allowed values; we need to change it to permit "undated" as permissible input (and "undated" as the output in that case))
imported>SMcCandlish
m (put the more restrictive conditions first)
Line 4: Line 4:
:For no date, or "undated", add as {{para|date|n.d.}}
:For no date, or "undated", add as {{para|date|n.d.}}
* <b id="csdoc_year">year</b>: Year of source being referenced. Use of {{para|date}} is recommended unless all of the following conditions are met:
* <b id="csdoc_year">year</b>: Year of source being referenced. Use of {{para|date}} is recommended unless all of the following conditions are met:
*# The template uses {{para|ref|harv}}, or the template is {{tlx|citation}}, or {{para|mode|cs2}}
*# The {{para|date}} format is YYYY-MM-DD.
*# The {{para|date}} format is YYYY-MM-DD.
*# The citation requires a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]].{{#if:{{{limited_param_list|}}}||
*# The citation requires a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]].
*# The template uses {{para|ref|harv}}, or the template is {{tlx|citation}}, or {{para|mode|cs2}}{{#if:{{{limited_param_list|}}}||
* <b id="csdoc_origyear">orig-year</b>: Original publication year; displays after the date or year. For clarity, please supply specifics. For example: {{para|orig-year|First published 1859}} or {{para|orig-year|Composed 1904}}. Alias: '''origyear'''}}
* <b id="csdoc_origyear">orig-year</b>: Original publication year; displays after the date or year. For clarity, please supply specifics. For example: {{para|orig-year|First published 1859}} or {{para|orig-year|Composed 1904}}. Alias: '''origyear'''}}
* <b id="csdoc_df">df</b>: date format; sets rendered dates to the specified format; does not support date ranges or seasonal dates. Accepts one value which may be one of these:
* <b id="csdoc_df">df</b>: date format; sets rendered dates to the specified format; does not support date ranges or seasonal dates. Accepts one value which may be one of these:

Revision as of 03:08, 3 May 2019

  • date: Date of source being referenced. Can be full date (day, month, and year) or partial date (month and year, season and year, or year). Use same format as other publication dates in the citations.Template:R Required when year is used to disambiguate Template:Tlx links to multiple-work citations by the same author in the same year.Template:Sup Do not wikilink. Displays after the authors and is enclosed in parentheses. If there is no author, then displays after publisher. Template:Hatnote inline
For approximate year, precede with "c. ", like this: Template:Para.

Script error: No such module "anchor".

For no date, or "undated", add as Template:Para
  • year: Year of source being referenced. Use of Template:Para is recommended unless all of the following conditions are met:
    1. The Template:Para format is YYYY-MM-DD.
    2. The citation requires a CITEREF disambiguator.
    3. The template uses Template:Para, or the template is Template:Tlx, or Template:Para
  • orig-year: Original publication year; displays after the date or year. For clarity, please supply specifics. For example: Template:Para or Template:Para. Alias: origyear
  • df: date format; sets rendered dates to the specified format; does not support date ranges or seasonal dates. Accepts one value which may be one of these:
    dmy – set publication dates to day month year format; access- and archive-dates are not modified;
    mdy – as above for month day, year format
    ymd – as above for year initial numeric format YYYY-MM-DD
    dmy-all – set publication, access-, and archive-dates to day month year format;
    mdy-all – as above for month day, year format
    ymd-all – as above for year initial numeric format YYYY-MM-DD

Template:Reflist