Template:Cite news/doc: Difference between revisions

From All Skies Encyclopaedia
imported>Josiah Rowe
(changing "CURRENTDAY2" to "CURRENTDAY" in unlinked date examples)
imported>Conscious
(update)
Line 12: Line 12:
|- width="50%" valign="top" style="vertical-align:top;"
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |curly=y |url= |format= |agency= |work= |publisher= |location= |id= |pages= |page= |date= |accessdate=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}<nowiki> |language= |quote= |archiveurl= |archivedate= }}</nowiki></span>
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |curly=y |url= |format= |agency= |work= |publisher= |location= |id= |pages= |page= |date= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> |language= |quote= |archiveurl= |archivedate= }}</nowiki></span>
|- width="50%" valign="top" style="vertical-align:top;"
|- width="50%" valign="top" style="vertical-align:top;"
! colspan="3" | First example of commonly used fields (or you can use this and not have to delete as much)<br/>(This assumes English, HTML format, with today as [[WP:UNLINKDATES|automatically wikilinked]] access date)
! colspan="3" | First example of commonly used fields (or you can use this and not have to delete as much)<br/>(This assumes English, HTML format)
|- width="50%" valign="top" style="vertical-align:top;"
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |coauthors= |title= |curly=y |url= |work= |publisher= |date= |accessdate=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> }}</nowiki>
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |coauthors= |title= |curly=y |url= |work= |publisher= |date= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> }}</nowiki>
|- width="50%" valign="top" style="vertical-align:top;"
! colspan="3" | Same commonly used fields, using day before month (common international style)
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |coauthors= |title= |curly=y |url= |work= |publisher= |date= |accessdaymonth=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} |accessyear={{CURRENTYEAR}}<nowiki> }}</nowiki>
|- width="50%" valign="top" style="vertical-align:top;"
! colspan="3" | Same commonly used fields, using month before day (common US style)
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |coauthors= |title= |curly=y |url= |work= |publisher= |date= |accessmonthday=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}} |accessyear={{CURRENTYEAR}}<nowiki> }}</nowiki>
|- width="50%" valign="top" style="vertical-align:top;"
|- width="50%" valign="top" style="vertical-align:top;"
! colspan="3" | Shorter example
! colspan="3" | Shorter example
|- width="50%" valign="top" style="vertical-align:top;"
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |coauthors= |title= |curly=y |work= |page= |date= |accessdate=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki>|quote= |url= }}</nowiki></span>
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |coauthors= |title= |curly=y |work= |page= |date= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>|quote= |url= }}</nowiki></span>
|}
|}


Line 81: Line 71:
* '''publisher''': The company or organization that publishes the news source. Not necessary for major publications like [[The New York Times]], but may add credibility for local papers that are part of a family of publications like [[The McClatchy Company]].
* '''publisher''': The company or organization that publishes the news source. Not necessary for major publications like [[The New York Times]], but may add credibility for local papers that are part of a family of publications like [[The McClatchy Company]].
*'''id''': Identifier such as {{tlx|ISSN|0028–0836}} — remember, if you use this parameter, you '''must''' specify the kind of identifier, not just give a number.
*'''id''': Identifier such as {{tlx|ISSN|0028–0836}} — remember, if you use this parameter, you '''must''' specify the kind of identifier, not just give a number.
* '''date''': Date of publication. Use the same format as the main text of the article. If the [[ISO 8601]] YYYY-MM-DD format is used it will be automatically [[m:Help:Preferences#Date format|wikilinked]] to enable [[Special:Preferences#prefsection-4|date user preferences]] if used.
* '''date''': Date of publication. Use the same format as the main text of the article.
* '''page''' or '''pages''': The page(s) on which the article is found. '''page''' inserts the abbreviation "p." before the number; '''pages''' inserts "pp." Use only one of these parameters. If numbers are entered for both, '''pages''' overrides '''page'''.
* '''page''' or '''pages''': The page(s) on which the article is found. '''page''' inserts the abbreviation "p." before the number; '''pages''' inserts "pp." Use only one of these parameters. If numbers are entered for both, '''pages''' overrides '''page'''.
*'''''Choose a date format''''' from the following options that matches the main text of the article.
*'''''Choose a date format''''' from the following options that matches the main text of the article.
*'''accessdate''': Full date when item was accessed.
:''For producing a [[WP:CONTEXT#Dates|wikilinked date]] of retrieval:''
::*'''accessdate''': Full date when item was accessed, in [[ISO 8601]] YYYY-MM-DD format, for example "accessdate = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}". ''Must not be wikilinked; it will be linked automatically.'' If the American/International date format is required for consistency within the article, use '''accessyear''' and '''accessmonthday''' or '''accessdaymonth''', as American/International dates will not display correctly if used for '''accessdate'''.
:''For producing a non-wikilinked date of retrieval:''
::*'''accessmonthday''' and '''accessyear''': Month and day when item was accessed, for example "accessmonthday = May 10", <u>and</u> year when item was accessed, for example "accessyear = 2006". Produces: ''Retrieved on May 10, 2006.''
::*'''accessdaymonth''' and '''accessyear''': Month and day when item was accessed, for example "accessdaymonth= 10 May", <u>and</u> year when item was accessed, for example "accessyear = 2006". Produces: ''Retrieved on 10 May 2006.''
* '''language''': The language in which the source is written. If English (the default) do not use this parameter.
* '''language''': The language in which the source is written. If English (the default) do not use this parameter.
* '''quote''': Relevant quotation. Adding a quotation can help locate online copies of the item using a text search, especially if the original link goes dead.
* '''quote''': Relevant quotation. Adding a quotation can help locate online copies of the item using a text search, especially if the original link goes dead.
*'''archiveurl''': URL of the archive location of the item (requires '''archivedate''', '''title''', and '''url'''); this is for archives such as those at internetarchive.org; for back-issues and the like that are on file at the publisher's site, use the "url" parameter.
*'''archiveurl''': URL of the archive location of the item (requires '''archivedate''', '''title''', and '''url'''); this is for archives such as those at internetarchive.org; for back-issues and the like that are on file at the publisher's site, use the "url" parameter.
*'''archivedate''': Date when the item was archived (requires '''archiveurl''', '''title''', and '''url'''), in [[ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''. Must not be wikilinked; it will be linked automatically. This field does not support American/International dates (they will display incorrectly as redlinks if used).
*'''archivedate''': Date when the item was archived (requires '''archiveurl''', '''title''', and '''url''').


== Examples ==
== Examples ==
Line 106: Line 92:
| location=Toronto
| location=Toronto
| pages= 37&ndash;39
| pages= 37&ndash;39
| date=[[2005-11-21]]
| date=21 November 2005
| id={{ISSN|0028–0836}}
| id={{ISSN|0028–0836}}
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</nowiki><br><div style="padding:0.5em">→ {{
}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
cite news
Line 120: Line 106:
| location=Toronto
| location=Toronto
| pages= 37&ndash;39
| pages= 37&ndash;39
| date=[[2005-11-21]]
| date=21 November 2005
| id={{ISSN|0028–0836}}
| id={{ISSN|0028–0836}}
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</div>
}}</div>


Line 135: Line 121:
| publisher=News co.
| publisher=News co.
| pages= 37&ndash;39
| pages= 37&ndash;39
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</nowiki><br><div style="padding:0.5em">→ {{
}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
cite news
Line 147: Line 133:
| publisher=News co.
| publisher=News co.
| pages= 37&ndash;39
| pages= 37&ndash;39
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</div>
}}</div>


Line 161: Line 147:
| format=Reprint
| format=Reprint
| publisher=News co.
| publisher=News co.
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</nowiki><br><div style="padding:0.5em">→ {{
}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
cite news
Line 173: Line 159:
| format=Reprint
| format=Reprint
| publisher=News co.
| publisher=News co.
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</div>
}}</div>


Line 184: Line 170:
| format=Fee required
| format=Fee required
| publisher=News co.
| publisher=News co.
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</nowiki><br><div style="padding:0.5em">→ {{
}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
cite news
Line 193: Line 179:
| format=Fee required
| format=Fee required
| publisher=News co.
| publisher=News co.
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
}}</div>
}}</div>


Line 234: Line 220:
| publisher=News co.
| publisher=News co.
| pages= 37&ndash;39
| pages= 37&ndash;39
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
| archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf
| archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf
| archivedate=2007-06-28
| archivedate=28 June 2008
}}</nowiki><br><div style="padding:0.5em">→ {{
}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
cite news
Line 247: Line 233:
| publisher=News co.
| publisher=News co.
| pages= 37&ndash;39
| pages= 37&ndash;39
| date=[[2005-11-21]]
| date=21 November 2005
| accessdate=2005-12-11
| accessdate=11 December 2005
| archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf
| archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf
| archivedate=2007-06-28
| archivedate=28 June 2008
}}</div>
}}</div>



Revision as of 19:58, 9 November 2008

Template:Template doc page viewed directly This template is used to cite sources in Wikipedia. It is specifically for news sources.

Usage

All parameter names must be lowercase.

Copy a blank version to use. Remember to use the "|" (pipe) character between each field. Please delete any unused fields to avoid clutter in the edit window.

Full version (copy and paste text below and delete parameters you don't need)
{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |curly=y |url= |format= |agency= |work= |publisher= |location= |id= |pages= |page= |date= |accessdate=1 March 2025 |language= |quote= |archiveurl= |archivedate= }}
First example of commonly used fields (or you can use this and not have to delete as much)
(This assumes English, HTML format)
{{cite news |first= |last= |authorlink= |coauthors= |title= |curly=y |url= |work= |publisher= |date= |accessdate=1 March 2025 }}
Shorter example
{{cite news |first= |last= |coauthors= |title= |curly=y |work= |page= |date= |accessdate=1 March 2025|quote= |url= }}
All parameters, vertical format
{{cite news
 | first = 
 | last = 
 | authorlink = 
 | author = 
 | coauthors = 
 | title = 
 | curly = y 
 | url = 
 | format = 
 | agency = 
 | work = 
 | publisher = 
 | location = 
 | id = 
 | pages = 
 | page = 
 | date = 
 | accessdate = 
 | accessdaymonth = 
 | accessmonthday = 
 | accessyear = 
 | language = 
 | quote = 
 | archiveurl = 
 | archivedate = 
 }}
  • title is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly. Do not enclose it in quotations marks, italics or other formatting, though it may be wikilinked.
  • author: Author.
    • last works with first to produce last, first
    • authorlink works either with author or with last & first to link to the appropriate Wikipedia article. Does not work with URLs.
    • coauthors: Allows additional authors.
  • url: Link to the news item if available online (note this is not for a link to the main web page of the work of publisher, but only to a copy of the item specified in title). Start the url with the communications protocol e.g. http://.
    • format: Format, e.g. PDF. Don’t specify for HTML (implied as default).
      Specify as ‘fee required’ if free access is no longer available.
      Specify as ‘Reprint’ if you use a full original version but not hosted by the original publisher.
  • agency: The news agency (wire service) that provided the content, e.g. Associated Press, Reuters, etc. Spell out and link the full name.
  • work: The publication that ran the item, e.g. Newsweek. Can also be used for the name of a column or subpart of an issue. Do not italicize.
  • publisher: The company or organization that publishes the news source. Not necessary for major publications like The New York Times, but may add credibility for local papers that are part of a family of publications like The McClatchy Company.
  • id: Identifier such as {{ISSN|0028–0836}} — remember, if you use this parameter, you must specify the kind of identifier, not just give a number.
  • date: Date of publication. Use the same format as the main text of the article.
  • page or pages: The page(s) on which the article is found. page inserts the abbreviation "p." before the number; pages inserts "pp." Use only one of these parameters. If numbers are entered for both, pages overrides page.
  • Choose a date format from the following options that matches the main text of the article.
  • accessdate: Full date when item was accessed.
  • language: The language in which the source is written. If English (the default) do not use this parameter.
  • quote: Relevant quotation. Adding a quotation can help locate online copies of the item using a text search, especially if the original link goes dead.
  • archiveurl: URL of the archive location of the item (requires archivedate, title, and url); this is for archives such as those at internetarchive.org; for back-issues and the like that are on file at the publisher's site, use the "url" parameter.
  • archivedate: Date when the item was archived (requires archiveurl, title, and url).

Examples

Using first and last to identify the author, and id to supply the ISSN
  • {{cite news | first=John | last=Doe | title=News | curly=y | url=http://www.example.org/ | work=Encyclopedia of Things | publisher=News co. | location=Toronto | pages= 37–39 | date=21 November 2005 | id={{ISSN|0028–0836}} | accessdate=11 December 2005 }}
    Lua error: bad argument #1 to "get" (not a valid title).
Using author instead of first and last, and adding a news agency
  • {{cite news | author=Staff writer | title=News | curly=y | url=http://www.example.org/News.pdf | format=PDF | agency=Wireservice | publisher=News co. | pages= 37–39 | date=21 November 2005 | accessdate=11 December 2005 }}
    Lua error: bad argument #1 to "get" (not a valid title).
Using authorlink to link to the author’s article
  • {{cite news | first=John | last=Doe | authorlink=John Doe | title=News | curly=y | url=http://www.example.org/background | format=Reprint | publisher=News co. | date=21 November 2005 | accessdate=11 December 2005 }}
    Lua error: bad argument #1 to "get" (not a valid title).
Using format
  • {{cite news | title=News | curly=y | url=http://www.example.org/Archive/News | format=Fee required | publisher=News co. | date=21 November 2005 | accessdate=11 December 2005 }}
    Lua error: bad argument #1 to "get" (not a valid title).
Using page to identify the reference by page
  • {{cite news | first=John | last=Doe | title=FooBar | curly=y | page=1 }}
    Lua error: bad argument #1 to "get" (not a valid title).
A very simple citation
  • {{cite news | title=FooBar | curly=y | page=1 }}
    Lua error: bad argument #1 to "get" (not a valid title).
Using archiveurl and archivedate to refer to items that went away but are available from an archive site
  • {{cite news | author=Staff writer | title=News | curly=y | url=http://www.example.org/News.pdf | format=PDF | publisher=News co. | pages= 37–39 | date=21 November 2005 | accessdate=11 December 2005 | archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf | archivedate=28 June 2008 }}
    Lua error: bad argument #1 to "get" (not a valid title).

COinS

This template produces COinS metadata; see COinS in Wikipedia for background information.

See also


Template:Esoteric