Template:Cite news/testcases
This is the template test cases page for the sandbox of Template:Cite news. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Full template
edit{{Cite news|accessdate=29 November 2008 |agency=Agency |archivedate=ARchiveDate |archiveurl=archiveURL |author=Author |authorlink=Link |coauthors=Coauthors |date=Date |department=Department |first=First |format=Format |id=ID |language=Language |last=Last |location=Location |page=Page |publisher=Publisher |quote=Quote |title=Title |url=http://url.com |work=Work}}
{{Cite news}}
Last, First (Date). [archiveURL "Title"]. Department. Work (in Language). Location: Publisher. Agency. p. Page. ID. Archived from the original (Format) on ARchiveDate. Retrieved 29 November 2008. Quote
{{cite news}}
: Check |archiveurl=
value (help); Check date values in: |date=
and |archivedate=
(help); More than one of |author=
and |last=
specified (help); Unknown parameter |coauthors=
ignored (|author=
suggested) (help)CS1 maint: unrecognized language (link)
Last, First (Date). [archiveURL "Title"]. Department. Work (in Language). Location: Publisher. Agency. p. Page. ID. Archived from the original (Format) on ARchiveDate. Retrieved 29 November 2008. Quote
{{cite news}}
: Check |archiveurl=
value (help); Check date values in: |date=
and |archivedate=
(help); More than one of |author=
and |last=
specified (help); Unknown parameter |coauthors=
ignored (|author=
suggested) (help)CS1 maint: unrecognized language (link)
Using first and last to identify the author, and id to supply the ISSN
edit{{Cite news|ISSN=0028–0836 |accessdate=11 December 2005 |date=21 November 2005 |first=John |last=Doe |location=Toronto |pages=37–39 |publisher=News co. |title=News |url=http://www.example.org/ |work=Encyclopedia of Things}}
{{Cite news}}
Doe, John (21 November 2005). "News". Encyclopedia of Things. Toronto: News co. pp. 37–39. ISSN 0028–0836. Retrieved 11 December 2005. {{cite news}}
: Check |issn=
value (help)
Doe, John (21 November 2005). "News". Encyclopedia of Things. Toronto: News co. pp. 37–39. ISSN 0028–0836. Retrieved 11 December 2005. {{cite news}}
: Check |issn=
value (help)
Using author instead of first and last, and adding a news agency
edit{{Cite news|accessdate=11 December 2005 |agency=Wireservice |author=Staff writer |date=21 November 2005 |format=PDF |pages=37–39 |publisher=News co. |title=News |url=http://www.example.org/News.pdf}}
{{Cite news}}
Staff writer (21 November 2005). "News" (PDF). News co. Wireservice. pp. 37–39. Retrieved 11 December 2005.
Staff writer (21 November 2005). "News" (PDF). News co. Wireservice. pp. 37–39. Retrieved 11 December 2005.
Using authorlink to link to the author's article
edit{{Cite news|accessdate=11 December 2005 |authorlink=John Doe |date=21 November 2005 |first=John |format=Reprint |last=Doe |publisher=News co. |title=News |url=http://www.example.org/background}}
{{Cite news}}
Doe, John (21 November 2005). "News" (Reprint). News co. Retrieved 11 December 2005.
Doe, John (21 November 2005). "News" (Reprint). News co. Retrieved 11 December 2005.
Using format
edit{{Cite news|accessdate=11 December 2005 |date=21 November 2005 |format=Fee required |publisher=News co. |title=News |url=http://www.example.org/Archive/News}}
{{Cite news}}
"News" (Fee required). News co. 21 November 2005. Retrieved 11 December 2005.
"News" (Fee required). News co. 21 November 2005. Retrieved 11 December 2005.
Using page to identify the reference by page
edit{{Cite news|first=John |last=Doe |page=1 |title=FooBar}}
{{Cite news}}
Doe, John. "FooBar". p. 1.
Doe, John. "FooBar". p. 1.
A very simple citation
edit{{Cite news|page=1 |title=FooBar}}
{{Cite news}}
"FooBar". p. 1.
"FooBar". p. 1.
Using archiveurl and archivedate to refer to items that went away but are available from an archive site
edit{{Cite news|accessdate=11 December 2005 |archivedate=28 June 2008 |archiveurl=https://web.archive.org/web/20070628082911/http://www.example.org/News.pdf |author=Staff writer |date=21 November 2005 |format=PDF |pages=37–39 |publisher=News co. |title=News |url=http://www.example.org/News.pdf}}
{{Cite news}}
Staff writer (21 November 2005). "News" (PDF). News co. pp. 37–39. Archived from the original (PDF) on 28 June 2008. Retrieved 11 December 2005. {{cite news}}
: |archive-date=
/ |archive-url=
timestamp mismatch; 28 June 2007 suggested (help)
Staff writer (21 November 2005). "News" (PDF). News co. pp. 37–39. Archived from the original (PDF) on 28 June 2008. Retrieved 11 December 2005. {{cite news}}
: |archive-date=
/ |archive-url=
timestamp mismatch; 28 June 2007 suggested (help)
Error when blank url specified: archiveurl and archivedate to refer to items that went away but are available from an archive site
edit{{Cite news|accessdate=11 December 2005 |archivedate=28 June 2008 |archiveurl=https://web.archive.org/web/20070628082911/http://www.example.org/News.pdf |author=Staff writer |date=21 November 2005 |format=PDF |pages=37–39 |publisher=News co. |title=News |url=}}
{{Cite news}}
Staff writer (21 November 2005). "News". News co. pp. 37–39. {{cite news}}
: |access-date=
requires |url=
(help); |archive-date=
/ |archive-url=
timestamp mismatch; 28 June 2007 suggested (help); |archive-url=
requires |url=
(help); |format=
requires |url=
(help)
Staff writer (21 November 2005). "News". News co. pp. 37–39. {{cite news}}
: |access-date=
requires |url=
(help); |archive-date=
/ |archive-url=
timestamp mismatch; 28 June 2007 suggested (help); |archive-url=
requires |url=
(help); |format=
requires |url=
(help)
Date formatting problems
edit{{Cite news|accessdate=2008-09-03 |date=2008-09-03 |publisher=Sparkart |title=All Hope Is Gone is #1!! |url=https://www.webcitation.org/5aYydJpQI}}
{{Cite news}}
"All Hope Is Gone is #1!!". Sparkart. 2008-09-03. Retrieved 2008-09-03.
"All Hope Is Gone is #1!!". Sparkart. 2008-09-03. Retrieved 2008-09-03.