Template:Citation Style documentation/date: Difference between revisions

m
imported>Jonesey95
(deprecate "began" and "ended")
 
(28 intermediate revisions by 12 users not shown)
Line 1:
* <spanb id="csdoc_date" >date</b>'''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|}}}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.}} }}
{{anchor|Undated}}
* <span id="csdoc_year" />'''year''': Year of source being referenced. Use of {{para|date}} is recommended unless all of the following conditions are met:
:#For Theno template uses {{para|ref|harv}}date, or the template is {{tlx|citation}}"undated", oruse {{para|modedate|cs2n.d.}})
 
:# The {{para|date}} format is YYYY-MM-DD.
{{Citation Style documentation/auto-date-format}}
:# The citation requires a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]].
* <spanb id="csdoc_year" />'''year'''</b>: Year of source being referenced. Use of {{para|date}} is recommended unless {{em|all}} of the following conditions are met:
* <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|}}}|
:*# The {{para|date}} format is YYYY-MM-DD.
* {{xtd|'''coauthors'''}}: (deprecated) <s>Names of coauthors. Requires '''author''', '''authors''', or '''last''n'''''</s> Include coauthors in '''author''' or '''authors''' or use separate '''author''n''''' or '''last''n'''''/'''first''n''''' to list coauthors.}}
:*# The citation requires a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]].
* <span id="csdoc_began" />OR: {{xtd|'''began'''}}: (deprecated) <s>Full date the first part of the program or episode aired.</s> Use {{para|date}} with a date range.
*# The template uses {{para|ref|harv}} or {{para|mode|cs2}}, or the template is {{tlx|citation}}.{{#if:{{{limited_param_list|}}}||
* <span id="csdoc_ended" />AND: {{xtd|'''ended'''}}: (deprecated) <s>Full date the last part of the program or episode aired.</s> Use {{para|date}} with a date range.}}
* <spanb id="csdoc_origyear" />'''orig-year'''</b>: Original publication year; displays in square brackets 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 Alias:{{{began| '''origyear'''}}}|
* <b id="csdoc_df">df</b>: date format; sets rendered dates to the specified format; does not support date ranges or seasonal dates; overrides the automatic date formatting described above. Accepts one value which may be one of these:
*:<code>dmy</code> – set publication dates to day month year format; access- and archive-dates are not modified;
*:<code>mdy</code> – as above for month day, year format
*:<code>ymd</code> – as above for year initial numeric format YYYY-MM-DD
*:<code>dmy-all</code> – set publication, access-, and archive-dates to day month year format;
*:<code>mdy-all</code> – as above for month day, year format
*:<code>ymd-all</code> – as above for year initial numeric format YYYY-MM-DD
{{#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. {{crossref|See: [[MOS:DATEUNIFY]].}}</ref>}}