Difference between revisions of "Template:Cite news"
From LGPedia
m |
|||
(4 intermediate revisions by 4 users not shown) | |||
Line 28: | Line 28: | ||
}} | }} | ||
}}{{#if: {{{accessdate|}}} | }}{{#if: {{{accessdate|}}} | ||
− | | . Retrieved on | + | | . Retrieved on {{{accessdate}}} |
}}.{{#if: {{{language|}}} | }}.{{#if: {{{language|}}} | ||
|  (in {{{language|}}}) | |  (in {{{language|}}}) | ||
Line 34: | Line 34: | ||
| “{{{quote}}}” | | “{{{quote}}}” | ||
}}|Template error: argument '''title''' is required.}}</includeonly><noinclude> | }}|Template error: argument '''title''' is required.}}</includeonly><noinclude> | ||
− | {{/ | + | This template is used to cite sources in Wikipedia. It is specifically for news sources. |
− | </noinclude> | + | |
+ | == Usage == | ||
+ | |||
+ | ;Common form for online news articles (English, HTML format, with today as access date) | ||
+ | <tt><nowiki>{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |work= |publisher= |date= |accessdate=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> }}</nowiki></tt> | ||
+ | |||
+ | ;All parameters | ||
+ | <pre> | ||
+ | {{cite news | ||
+ | | first = | ||
+ | | last = | ||
+ | | authorlink = | ||
+ | | author = | ||
+ | | coauthors = | ||
+ | | title = | ||
+ | | url = | ||
+ | | format = | ||
+ | | work = | ||
+ | | publisher = | ||
+ | | pages = | ||
+ | | page = | ||
+ | | date = | ||
+ | | accessdate = | ||
+ | | language = | ||
+ | | quote = | ||
+ | }} | ||
+ | </pre> | ||
+ | <pre> | ||
+ | {{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |pages= |page= |date= |accessdate= |language= |quote= }} | ||
+ | </pre> | ||
+ | *'''title''' is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly. | ||
+ | * '''author''': Author | ||
+ | ** '''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. | ||
+ | ** '''coauthors''': allows additional authors | ||
+ | * '''url''': Link to the news item if available online | ||
+ | ** '''format''': Format, i.e. PDF. Don't specify for HTML (implied as default). | ||
+ | **: Specify as'' 'fee required' ''if free access no longer available. | ||
+ | **: Specify as'' 'Reprint' ''if a full original version but not hosted by the original publisher. | ||
+ | * '''work''': If this item is part of a larger work (such as a newspaper), name of that work. | ||
+ | * '''publisher''': Publisher, if any. | ||
+ | * '''date''': date of publication. ISO 8601 YYYY-MM-DD format recommended. | ||
+ | * '''pages''' overrides '''page''' | ||
+ | * '''accessdate''': Date when item was accessed. Use ISO 8601 YYYY-MM-DD format. Do not wikilink the date. | ||
+ | * '''language''': the language in which the source is written. | ||
+ | * '''quote''': Relevant quote. | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | *<nowiki>{{cite news | ||
+ | | first=John | ||
+ | | last=Doe | ||
+ | | title=News | ||
+ | | url=http://www.url.com/ | ||
+ | | work=Encyclopedia of Things | ||
+ | | publisher=News co. | ||
+ | | pages= 37–39 | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | ||
+ | cite news | ||
+ | | first=John | ||
+ | | last=Doe | ||
+ | | title=News | ||
+ | | url=http://www.url.com/ | ||
+ | | work=Encyclopedia of Things | ||
+ | | publisher=News co. | ||
+ | | pages= 37–39 | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11 | ||
+ | }}</div> | ||
+ | |||
+ | *<nowiki>{{cite news | ||
+ | | author=Staff writer | ||
+ | | title=News | ||
+ | | url=http://www.url.com/News.pdf | ||
+ | | format=PDF | ||
+ | | publisher=News co. | ||
+ | | pages= 37–39 | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | ||
+ | cite news | ||
+ | | author=Staff writer | ||
+ | | title=News | ||
+ | | url=http://www.url.com/News.pdf | ||
+ | | format=PDF | ||
+ | | publisher=News co. | ||
+ | | pages= 37–39 | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11 | ||
+ | }}</div> | ||
+ | |||
+ | *<nowiki>{{cite news | ||
+ | | first=Jon | ||
+ | | last=Fine | ||
+ | | authorlink=Jon Fine | ||
+ | | title=News | ||
+ | | url=http://www.url.com/background | ||
+ | | format=Reprint | ||
+ | | publisher=News co. | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | ||
+ | cite news | ||
+ | | first=Jon | ||
+ | | last=Fine | ||
+ | | authorlink=Jon Fine | ||
+ | | title=News | ||
+ | | url=http://www.url.com/background | ||
+ | | format=Reprint | ||
+ | | publisher=News co. | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11 | ||
+ | }}</div> | ||
+ | |||
+ | *<nowiki>{{cite news | ||
+ | | title=News | ||
+ | | url=http://www.url.com/Archive/News | ||
+ | | format=Fee required | ||
+ | | publisher=News co. | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | ||
+ | cite news | ||
+ | | title=News | ||
+ | | url=http://www.url.com/Archive/News | ||
+ | | format=Fee required | ||
+ | | publisher=News co. | ||
+ | | date=2005-11-21 | ||
+ | | accessdate=2005-12-11 | ||
+ | }}</div> | ||
+ | |||
+ | *<nowiki>{{cite news | ||
+ | | first=John | ||
+ | | last=Doe | ||
+ | | title=FooBar | ||
+ | | page=1}}</nowiki><br><div style="padding:0.5em">→ {{ | ||
+ | cite news | ||
+ | | first=John | ||
+ | | last=Doe | ||
+ | | title=FooBar | ||
+ | | page=1 | ||
+ | }}</div> | ||
+ | |||
+ | *<nowiki>{{cite news | ||
+ | | title=FooBar | ||
+ | | page=1 | ||
+ | }}</nowiki><br><div style="padding:0.5em">→ {{ | ||
+ | cite news | ||
+ | | title=FooBar | ||
+ | | page=1 | ||
+ | }}</div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
+ | [[Category:Citation templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 15:38, 8 April 2008
This template is used to cite sources in Wikipedia. It is specifically for news sources.
Usage
- Common form for online news articles (English, HTML format, with today as access date)
{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |work= |publisher= |date= |accessdate=2025-05-02 }}
- All parameters
{{cite news | first = | last = | authorlink = | author = | coauthors = | title = | url = | format = | work = | publisher = | pages = | page = | date = | accessdate = | language = | quote = }}
{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |pages= |page= |date= |accessdate= |language= |quote= }}
- title is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly.
- 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
- last works with first to produce
- url: Link to the news item if available online
- format: Format, i.e. PDF. Don't specify for HTML (implied as default).
- Specify as 'fee required' if free access no longer available.
- Specify as 'Reprint' if a full original version but not hosted by the original publisher.
- format: Format, i.e. PDF. Don't specify for HTML (implied as default).
- work: If this item is part of a larger work (such as a newspaper), name of that work.
- publisher: Publisher, if any.
- date: date of publication. ISO 8601 YYYY-MM-DD format recommended.
- pages overrides page
- accessdate: Date when item was accessed. Use ISO 8601 YYYY-MM-DD format. Do not wikilink the date.
- language: the language in which the source is written.
- quote: Relevant quote.
Examples
- {{cite news
| first=John
| last=Doe
| title=News
| url=http://www.url.com/
| work=Encyclopedia of Things
| publisher=News co.
| pages= 37–39
| date=2005-11-21
| accessdate=2005-12-11}}→ Doe, John. "News", Encyclopedia of Things, News co., 2005-11-21, pp. 37–39. Retrieved on 2005-12-11.
- {{cite news
| author=Staff writer
| title=News
| url=http://www.url.com/News.pdf
| format=PDF
| publisher=News co.
| pages= 37–39
| date=2005-11-21
| accessdate=2005-12-11}}→ Staff writer. "News" (PDF), News co., 2005-11-21, pp. 37–39. Retrieved on 2005-12-11.
- {{cite news
| first=Jon
| last=Fine
| authorlink=Jon Fine
| title=News
| url=http://www.url.com/background
| format=Reprint
| publisher=News co.
| date=2005-11-21
| accessdate=2005-12-11}}
- {{cite news
| title=News
| url=http://www.url.com/Archive/News
| format=Fee required
| publisher=News co.
| date=2005-11-21
| accessdate=2005-12-11}}→ "News" (Fee required), News co., 2005-11-21. Retrieved on 2005-12-11.
- {{cite news
| first=John
| last=Doe
| title=FooBar
| page=1}}→ Doe, John. "FooBar", p. 1.
- {{cite news
| title=FooBar
| page=1
}}→ "FooBar", p. 1.