User:RossPatterson/cite news/tests

From Wikipedia, the free encyclopedia

[edit] Test cases from Cite news/doc#Examples

Using first and last to identify the author, and id to supply the ISSN
  • {{User:RossPatterson/Cite news | first=John | last=Doe | title=News | url=http://www.example.org/ | work=Encyclopedia of Things | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | id={{ISSN|0028-0836}} | accessdate=2005-12-11 }}
    ? Doe, John. "News", Encyclopedia of Things, News co., 2005-11-21, pp. 37–39. ISSN 0028-0836. Retrieved on 2005-12-11. 
Using author instead of first and last
  • {{User:RossPatterson/Cite news | author=Staff writer | title=News | url=http://www.example.org/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. 
Using authorlink to link to the author's article
  • {{User:RossPatterson/Cite news | first=John | last=Doe | authorlink=John Doe | title=News | url=http://www.example.org/background | format=Reprint | publisher=News co. | date=[[2005-11-21]] | accessdate=2005-12-11 }}
    ? Doe, John. "News" (Reprint), News co., 2005-11-21. Retrieved on 2005-12-11. 
Using format
  • {{User:RossPatterson/Cite news | title=News | url=http://www.example.org/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. 
Using page to identify the reference by page
  • {{User:RossPatterson/Cite news | first=John | last=Doe | title=FooBar | page=1 }}
    ? Doe, John. "FooBar", p. 1. 
A very simple citation
  • {{User:RossPatterson/Cite news | title=FooBar | page=1 }}
    ? "FooBar", p. 1. 
Using archiveurl and archivedate to refer to items that went away but are available from an archive site
  • {{User:RossPatterson/Cite news | author=Staff writer | title=News | url=http://www.example.org/News.pdf | format=PDF | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | accessdate=2005-12-11 | archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf | archivedate=2007-06-28 }}
    ? Staff writer. "News" (PDF), News co., 2005-11-21, pp. 37–39. Retrieved on 2005-12-11. Archived from the original on 2007-06-28. 
Omitting archivedate in error
  • {{User:RossPatterson/Cite news | author=Staff writer | title=News | url=http://www.example.org/News.pdf | format=PDF | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | accessdate=2005-12-11 | archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf }}
    ?

You must specify archiveurl= and archivedate= when using {{cite news}}. Available parameters:

{{cite news
 | first = 
 | last = 
 | authorlink = 
 | author = 
 | coauthors = 
 | title = 
 | url = 
 | format = 
 | work = 
 | publisher = 
 | id = 
 | pages = 
 | page = 
 | date = 
 | accessdate = 
 | language = 
 | quote = 
 | archiveurl = 
 | archivedate = 
 }}

Staff writer. "News" (PDF), News co., 2005-11-21, pp. 37–39. Retrieved on 2005-12-11.