Difference between revisions of "Template:Citation Style documentation/date"

From Timelines
Jump to: navigation, search
m (Wikified the other instance of CITEREF for symmetry (not duplicating links is for articles, not for useful directions, I'm gonna say))
(simpler)
 
(22 intermediate revisions by 10 users not shown)
Line 1: Line 1:
* <span id="csdoc_date" />'''date''': Date of source being referenced. Can be full date (day, month, and year) or partial date (month and year{{#if:{{{lua|}}}|, season and year}}, or year). Use same format as other publication dates in the citations.{{r|date|group=date}} Required when '''year''' is used to disambiguate {{tlx|sfn}} links to multiple-work citations by the same author in the same year.{{sup|[[Template:Sfn#More_than_one_work_in_a_year|[more]]]}} Do not wikilink. Displays after the authors and is enclosed in parentheses. If there is no author, then displays after publisher.{{#if:{{{aliases|}}}|&#32;Aliases: {{{aliases}}}}} {{#if:{{{lua|}}}|For acceptable date formats, see [[Help:Citation Style 1#Dates]].}}
+
* <b id="csdoc_date">date</b>: 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.{{r|date|group=date}} Required when '''year''' is used to disambiguate {{tlx|sfn}} links to multiple-work citations by the same author in the same year.{{sup|[[Template:Sfn#More_than_one_work_in_a_year|[more]]]}} Do not wikilink. Displays after the authors and is enclosed in parentheses. If there is no author, then displays after publisher.{{#if:{{{aliases|}}}|&#32;Aliases: {{{aliases}}}}} {{crossref|For acceptable date formats, see {{section link|Help:Citation Style 1|Dates}}.}}
{{#if:{{{lua|}}}|:For approximate year, precede with "<code>c. </code>", like this: {{para|date|c. 1900}}; for no date, add as {{para|date|n.d.}} }}
+
:For approximate year, precede with "<code>c. </code>", like this: {{para|date|c. 1900}}.
* <span id="csdoc_year" />OR:
+
{{anchor|Undated}}
** '''year''': Year of source being referenced ...
+
:For no date, or "undated", add as {{para|date|n.d.}}  
**: Is the template {{t1|cite episode}} or {{t1|cite mailing list}} or {{t1|cite map}} or {{t1|cite report}} or {{t1|cite serial}}?
+
* <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}}
::::NO: Does the template use {{para|ref|harv}}? (answer YES if the template is {{tlx|citation}})
+
*# The {{para|date}} format is YYYY-MM-DD.
:::::NO: use {{para|date}}.
+
*# The citation requires a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]].
:::::YES:  Is the date format in {{para|date}} YYYY-MM-DD?
+
* <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'''
::::::NO: use {{para|date}}.
+
* <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:
::::::YES: Does the citation require a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]]?
+
*:<code>dmy</code> – set publication dates to day month year format; access- and archive-dates are not modified;
:::::::NO: use {{para|date}}.
+
*:<code>mdy</code> – as above for month day, year format
:::::::YES: {{para|year}} ''required''.
+
*:<code>ymd</code> – as above for year initial numeric format YYYY-MM-DD
::::YES: Does the citation use {{para|ref|harv}}?
+
*:<code>dmy-all</code> – set publication, access-, and archive-dates to day month year format;
:::::NO: use {{para|date}}.
+
*:<code>mdy-all</code> – as above for month day, year format
:::::YES: Is the date format in {{para|date}} DD Month YYYY or Month YYYY or YYYY or Month DD, YYYY or YYYY-MM-DD?
+
*:<code>ymd-all</code> – as above for year initial numeric format YYYY-MM-DD
::::::NO: {{para|year}} ''required''.
+
{{#if:{{{aliases2|}}}|&#32;Aliases:{{{aliases2}}}}}
::::::YES: Does the citation require a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]]?
+
{{reflist|group=date|refs=<ref name=date>Publication dates in references within an article should all have the same format. This may be a different format from that used for archive and access dates. {{crossref|See [[MOS:DATEUNIFY]].}}</ref>}}
:::::::NO: use {{para|date}}.
 
:::::::YES: {{para|year}} ''required''.
 
* <span id="csdoc_origyear" />'''orig-year''': 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}}.{{#if:{{{began|}}}|
 
* <span id="csdoc_began" />OR: '''began''': Full date the first part of the program or episode aired.
 
* <span id="csdoc_ended" />AND: '''ended''': Full date the last part of the program or episode aired.}}{{#if:{{{aliases2|}}}|&#32;Aliases:{{{aliases2}}}}}
 
{{reflist|group=date|refs=<ref name=date>Publication dates in references within an article should all have the same format. This may be a different format from that used for archive and access dates. See: [[MOS:DATEUNIFY]].</ref>}}
 

Latest revision as of 02:20, 17 July 2016

  • 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.[date 1] Required when year is used to disambiguate {{sfn}} links to multiple-work citations by the same author in the same year.[more] Do not wikilink. Displays after the authors and is enclosed in parentheses. If there is no author, then displays after publisher. For acceptable date formats, see Help:Citation Style 1 § Dates.
For approximate year, precede with "c. ", like this: |date=c. 1900.

For no date, or "undated", add as |date=n.d.
  • year: Year of source being referenced. Use of |date= is recommended unless all of the following conditions are met:
    1. The template uses |ref=harv, or the template is {{citation}}, or |mode=cs2
    2. The |date= format is YYYY-MM-DD.
    3. The citation requires a CITEREF disambiguator.
  • orig-year: Original publication year; displays after the date or year. For clarity, please supply specifics. For example: |orig-year=First published 1859 or |orig-year=Composed 1904. 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
  1. Publication dates in references within an article should all have the same format. This may be a different format from that used for archive and access dates. See MOS:DATEUNIFY.