.

Template:Cite news: Difference between revisions

Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
No edit summary
 
No edit summary
 
Line 37: Line 37:
{{/doc}}
{{/doc}}
</noinclude>
</noinclude>
[[Category:Templates]]

Latest revision as of 15:52, 9 December 2006

This high-risk template has been protected from editing to prevent vandalism. Please discuss changes on the talk page. You may use Template:Tl on the talk page to ask for an administrator to make an edit for you.
This template documentation is transcluded from Template:Cite news/doc [edit]

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=2024-10-31 }}

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
  • 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. If the whole date is known it should be wikilinked to enable date user preferences.
  • 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}}
    → {{#if: News
 |{{#if: Doe
   | {{#if: 
     | [[{{{authorlink}}}|{{#if: Doe
       | Doe{{#if: John | , John }}
       | {{{author}}}
     }}]]
     | {{#if: Doe
       | Doe{{#if: John | , John }}
       | {{{author}}}
     }}
   }}
 }}{{#if: Doe
   | {{#if:  | , {{{coauthors}}} }}. 
 }}{{#if: |“|"}}{{#if: http://www.url.com/
  | News 
  | News
 }}{{#if: |”|"}}{{#if:  |  ({{{format}}}) 
   }}{{#if: Encyclopedia of Things
   | , Encyclopedia of Things}}{{#if: News co.
   | , News co.
 }}{{#if: 2005-11-21
   | , 2005-11-21
 }}{{#if: 37–39
   | , pp. 37–39
   |{{#if: 
     | , p. {{{page}}}
   }}
 }}{{#if: 2005-12-11  
 | . Retrieved on 2005-12-11
 }}.{{#if: 
 |  (in )
 }}{{ #if: 
   |  “{{{quote}}}”

}}|Template error: argument title is required.}}

  • {{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}}
    → {{#if: News
 |{{#if: Staff writer
   | {{#if: 
     | [[{{{authorlink}}}|{{#if: 
       | {{{last}}}{{#if:  | , {{{first}}} }}
       | Staff writer
     }}]]
     | {{#if: 
       | {{{last}}}{{#if:  | , {{{first}}} }}
       | Staff writer
     }}
   }}
 }}{{#if: Staff writer
   | {{#if:  | , {{{coauthors}}} }}. 
 }}{{#if: |“|"}}{{#if: http://www.url.com/News.pdf
  | News 
  | News
 }}{{#if: |”|"}}{{#if: PDF |  (PDF) 
   }}{{#if: 
   | , {{{work}}}}}{{#if: News co.
   | , News co.
 }}{{#if: 2005-11-21
   | , 2005-11-21
 }}{{#if: 37–39
   | , pp. 37–39
   |{{#if: 
     | , p. {{{page}}}
   }}
 }}{{#if: 2005-12-11  
 | . Retrieved on 2005-12-11
 }}.{{#if: 
 |  (in )
 }}{{ #if: 
   |  “{{{quote}}}”

}}|Template error: argument title is required.}}

  • {{cite news | first=John | last=Doe | authorlink=John Doe | title=News | url=http://www.url.com/background | format=Reprint | publisher=News co. | date=[[2005-11-21]] | accessdate=2005-12-11}}
    → {{#if: News
 |{{#if: Doe
   | {{#if: John Doe
     | {{#if: Doe
        | Doe{{#if: John | , John }}
        | {{{author}}}
      }}
     | {{#if: Doe
       | Doe{{#if: John | , John }}
       | {{{author}}}
     }}
   }}
 }}{{#if: Doe
   | {{#if:  | , {{{coauthors}}} }}. 
 }}{{#if: |“|"}}{{#if: http://www.url.com/background
  | News 
  | News
 }}{{#if: |”|"}}{{#if: Reprint |  (Reprint) 
   }}{{#if: 
   | , {{{work}}}}}{{#if: News co.
   | , News co.
 }}{{#if: 2005-11-21
   | , 2005-11-21
 }}{{#if: 
   | , pp. {{{pages}}}
   |{{#if: 
     | , p. {{{page}}}
   }}
 }}{{#if: 2005-12-11  
 | . Retrieved on 2005-12-11
 }}.{{#if: 
 |  (in )
 }}{{ #if: 
   |  “{{{quote}}}”

}}|Template error: argument title is required.}}

  • {{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}}
    → {{#if: News
 |{{#if: 
   | {{#if: 
     | [[{{{authorlink}}}|{{#if: 
       | {{{last}}}{{#if:  | , {{{first}}} }}
       | {{{author}}}
     }}]]
     | {{#if: 
       | {{{last}}}{{#if:  | , {{{first}}} }}
       | {{{author}}}
     }}
   }}
 }}{{#if: 
   | {{#if:  | , {{{coauthors}}} }}. 
 }}{{#if: |“|"}}{{#if: http://www.url.com/Archive/News
  | News 
  | News
 }}{{#if: |”|"}}{{#if: Fee required |  (Fee required) 
   }}{{#if: 
   | , {{{work}}}}}{{#if: News co.
   | , News co.
 }}{{#if: 2005-11-21
   | , 2005-11-21
 }}{{#if: 
   | , pp. {{{pages}}}
   |{{#if: 
     | , p. {{{page}}}
   }}
 }}{{#if: 2005-12-11  
 | . Retrieved on 2005-12-11
 }}.{{#if: 
 |  (in )
 }}{{ #if: 
   |  “{{{quote}}}”

}}|Template error: argument title is required.}}

  • {{cite news | first=John | last=Doe | title=FooBar | page=1}}
    → {{#if: FooBar
 |{{#if: Doe
   | {{#if: 
     | [[{{{authorlink}}}|{{#if: Doe
       | Doe{{#if: John | , John }}
       | {{{author}}}
     }}]]
     | {{#if: Doe
       | Doe{{#if: John | , John }}
       | {{{author}}}
     }}
   }}
 }}{{#if: Doe
   | {{#if:  | , {{{coauthors}}} }}. 
 }}{{#if: |“|"}}{{#if: 
  | [{{{url}}} FooBar] 
  | FooBar
 }}{{#if: |”|"}}{{#if:  |  ({{{format}}}) 
   }}{{#if: 
   | , {{{work}}}}}{{#if: 
   | , {{{publisher}}}
 }}{{#if: 
   | , {{{date}}}
 }}{{#if: 
   | , pp. {{{pages}}}
   |{{#if: 1
     | , p. 1
   }}
 }}{{#if:   
 | . Retrieved on [[{{{accessdate}}}]]
 }}.{{#if: 
 |  (in )
 }}{{ #if: 
   |  “{{{quote}}}”

}}|Template error: argument title is required.}}

  • {{cite news | title=FooBar | page=1 }}
    → {{#if: FooBar
 |{{#if: 
   | {{#if: 
     | [[{{{authorlink}}}|{{#if: 
       | {{{last}}}{{#if:  | , {{{first}}} }}
       | {{{author}}}
     }}]]
     | {{#if: 
       | {{{last}}}{{#if:  | , {{{first}}} }}
       | {{{author}}}
     }}
   }}
 }}{{#if: 
   | {{#if:  | , {{{coauthors}}} }}. 
 }}{{#if: |“|"}}{{#if: 
  | [{{{url}}} FooBar] 
  | FooBar
 }}{{#if: |”|"}}{{#if:  |  ({{{format}}}) 
   }}{{#if: 
   | , {{{work}}}}}{{#if: 
   | , {{{publisher}}}
 }}{{#if: 
   | , {{{date}}}
 }}{{#if: 
   | , pp. {{{pages}}}
   |{{#if: 1
     | , p. 1
   }}
 }}{{#if:   
 | . Retrieved on [[{{{accessdate}}}]]
 }}.{{#if: 
 |  (in )
 }}{{ #if: 
   |  “{{{quote}}}”

}}|Template error: argument title is required.}}

See also


Information icon.jpg This template employs some extremely complicated and/or esoteric features of template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.

cs:Šablona:Citace novin el:Πρότυπο:Cite news it:Template:Cite news pl:Szablon:Cytuj news vi:Tiêu bản:Chú thích báo zh:Cite news