Template:Citation Style documentation/date: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
imported>Tom.Reding
(Made year usage much more explicit based on this discussion User talk:Tom.Reding#Year vs. date citation parameter preference. (basically: date is preferred under normal (simple) circumstances))
imported>Tom.Reding
m (Clarified.)
Line 3: Line 3:
* <span id="csdoc_year" />OR:
* <span id="csdoc_year" />OR:
** '''year''': Year of source being referenced. Required with some types of {{tld|sfn}} citations;{{sup|[[Template:Sfn#More_than_one_work_in_a_year|[more]]]}} otherwise use '''date'''.
** '''year''': Year of source being referenced. Required with some types of {{tld|sfn}} citations;{{sup|[[Template:Sfn#More_than_one_work_in_a_year|[more]]]}} otherwise use '''date'''.
** '''year''': is required when <code>|ref=harv</code> is used ''and'' when the value in '''date''' is non-numeric in DMYYYY, MDYYYY, YYYYMD, etc. format. For example: citations with <code>|ref=harv</code> and <code>|date=Winter 2012</code> or <code>|date=23–24 Sep 2012</code>, etc. require <code>|year=2012</code>.
** '''year''': is required when <code>|ref=harv</code> is used ''and'' when the value in '''date''' is in non-numeric format (i.e. not DMYYYY, MDYYYY, YYYYMD, etc.). For example: citations with <code>|ref=harv</code> and <code>|date=Winter 2012</code> or <code>|date=23–24 Sep 2012</code>, etc. require <code>|year=2012</code>.
** '''year''': is required when a <code>CITEREF</code> disambiguator is needed ''and'' the CS1 template is: {{t1|cite episode}} or {{t1|cite mailing list}} or {{t1|cite map}} or {{t1|cite report}} or {{t1|cite serial}} only. These templates are those ''not'' marked with a green check mark in the table at the top of [[Help:CS1 errors]]. For example, if <code>|date=1 December 2014a</code>, then <code>|year=2014a</code> is required only for the above templates.
** '''year''': is required when a <code>CITEREF</code> disambiguator is needed ''and'' the CS1 template is: {{t1|cite episode}} or {{t1|cite mailing list}} or {{t1|cite map}} or {{t1|cite report}} or {{t1|cite serial}} only. These templates are those ''not'' marked with a green check mark in the table at the top of [[Help:CS1 errors]]. For example, if <code>|date=1 December 2014a</code>, then <code>|year=2014a</code> is required only for the above templates.
* <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_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|}}}|

Revision as of 19:26, 4 December 2014

  • date: Date of source being referenced. Can be full date (day, month, and year) or partial date (month and year, or year). Use same format as other publication dates in the citations.Template:R Required when year is used to disambiguate {{sfn}} 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.
  • OR:
    • year: Year of source being referenced. Required with some types of Template:Tld citations;Template:Sup otherwise use date.
    • year: is required when |ref=harv is used and when the value in date is in non-numeric format (i.e. not DMYYYY, MDYYYY, YYYYMD, etc.). For example: citations with |ref=harv and |date=Winter 2012 or |date=23–24 Sep 2012, etc. require |year=2012.
    • year: is required when a CITEREF disambiguator is needed and the CS1 template is: Template:T1 or Template:T1 or Template:T1 or Template:T1 or Template:T1 only. These templates are those not marked with a green check mark in the table at the top of Help:CS1 errors. For example, if |date=1 December 2014a, then |year=2014a is required only for the above templates.
  • 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.
Cite error: <ref> tag with name "date" defined in <references> has group attribute "date" which does not appear in prior text.