Template:Cite news/doc: Difference between revisions

From All Skies Encyclopaedia
imported>Bellhalla
m (remove curly from all examples except "full" version; remove default of "y" from full (see talk page))
imported>Funandtrvl
m (WikiCleaner 0.84 - Repairing links to disambiguation and redirect pages - You can help!)
Line 3: Line 3:


== Usage ==
== Usage ==
All parameter names '''''must''''' be [[lower case]].

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.
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.
Line 57: Line 56:


*'''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.
*'''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.
** '''curly=y''' causes the title to be enclosed in true [[curved quotes]], not [[typewriter quotes]]. Currently has no effect on the quotation specified in '''quote'''.
** '''curly=y''' causes the title to be enclosed in true [[Quotation mark glyphs|curved quotes]], not [[Quotation mark glyphs|typewriter quotes]]. Currently has no effect on the quotation specified in '''quote'''.
* '''author''': Author.
* '''author''': Author.
** '''last''' works with '''first''' to produce <code>last, first</code>
** '''last''' works with '''first''' to produce <code>last, first</code>
** '''authorlink''' works either with '''author''' or with '''last''' & '''first''' to link to the appropriate Wikipedia article. Does not work with URLs.
** '''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.
** '''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]]://.
* '''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. [[hypertext Transfer Protocol|http]]://.
** '''format''': Format, e.g. PDF. Don’t specify for HTML (implied as default).
** '''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'' ‘fee required’ ''if free access is no longer available.
Line 242: Line 241:


==See also==
==See also==
* [[Wikipedia:Cite sources]]: Style guide
* [[Wikipedia:Citing sources]], style guideline
* [[Wikipedia:Template messages/Sources of articles/Generic citations]]: Related templates
* [[Wikipedia:Citation templates]], examples of template usage
* [[Wikipedia:WikiProject Wikicite]]
* [[Wikipedia:WikiProject Wikicite]]
* [[Template:Cite web]]
* [[Template:Cite book]]
* [[Template:Cite book]]
* [[Template:Cite web]]


__NOEDITSECTION__
__NOEDITSECTION__

Revision as of 23:13, 19 December 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 lower case.

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= |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= |url= |work= |publisher= |date= |accessdate=1 March 2025 }}
Shorter example
{{cite news |first= |last= |coauthors= |title= |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.
  • 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