User:RossPatterson/Citation/tests

From Wikipedia, the free encyclopedia

Test cases for changes to Template:Citation as prototyped in User:RossPatterson/Citation and User:RossPatterson/Citation/core

Contents

[edit] Examples from Template:Citation/doc

[edit] Citing books

[edit] One author

  • {{User:RossPatterson/Citation | last=Turner | first=O. | title=History of the Pioneer Settlement of Phelps and Gorham's Purchase, and Morris' Reserve | publisher=William Alling | place=Rochester, New York | year=1851 | url = http://olivercowdery.com/texts/1851Trn1.htm#turn1851 }}.

[edit] Three authors, a volume, and an edition

  • {{User:RossPatterson/Citation | last1=Lincoln | first1=A. | last2=Washington | first2=G. | last3=Adams | first3=J. | title=All the Presidents' Names | publisher=The Pentagon | place=Home Base, New York | volume=XII | edition=2nd | year=2007 }}.
  • Lincoln, A.; Washington, G. & Adams, J. (2007), All the Presidents' Names, vol. XII (2nd ed.), Home Base, New York: The Pentagon.

[edit] Citing journals, newspapers, magazines, or other periodicals

[edit] Journal article

  • {{User:RossPatterson/Citation | last=Hill | first=Marvin S. | title=Joseph Smith and the 1826 Trial: New Evidence and New Difficulties | journal=BYU Studies | volume=12 | issue=2 | year=1976 | pages=1–8 | url=https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf }}.

[edit] Newspaper article

  • {{User:RossPatterson/Citation | last=Smith | first=Joseph III | author-link=Joseph Smith III | title=Last Testimony of Sister Emma | newspaper=The Saints' Herald | publication-place=Plano, IL | volume=26 | issue=19 | date=[[October 1]], [[1879]] | year=1879 | month=October | page=289 | url=http://www.sidneyrigdon.com/dbroadhu/IL/sain1872.htm#100179 }}.

[edit] Citing edited books, or parts of edited books, including encyclopedias and encyclopedia articles

[edit] Manuscript published in an edited compilation

  • {{User:RossPatterson/Citation | last=Bidamon | first=Emma Smith | author-link=Emma Hale Smith | chapter=Letter to Emma S. Pilgrim | date=[[March 27]] [[1876]] | year=1876 | editor-surname=Vogel | editor-first=Dan | title=Early Mormon Documents | volume=1 | publisher=Signature Books | publication-date=1996 | isbn=1-56085-072-8 }}.

[edit] Work with an editor but no author

  • {{User:RossPatterson/Citation | editor-surname=Vogel | editor-first=Dan | title=Early Mormon Documents | volume=1 | publisher=Signature Books | publication-date=1996 | isbn=1-56085-072-8 }}.
  • Vogel, Dan, ed. (1996), Early Mormon Documents, vol. 1, Signature Books, ISBN 1-56085-072-8.

[edit] Encyclopedia article by a named author

  • {{User:RossPatterson/Citation | last = Kramer | first = Martin | author-link = Martin Kramer | contribution = Bernard Lewis | editor-last = Boyd | editor-first = Kelley | title = Encyclopedia of Historians and Historical Writing | volume = 1 | pages = 719–720 | publisher = Fitzroy Dearborn | place = London | publication-date = 1999 | contribution-url = http://www.geocities.com/martinkramerorg/BernardLewis.htm }}.

[edit] Encyclopedia article with no named author

  • {{User:RossPatterson/Citation | contribution = Bernard Lewis | editor-last = Boyd | editor-first = Kelley | title = Encyclopedia of Historians and Historical Writing | volume = 1 | pages = 719–720 | publisher = Fitzroy Dearborn | place = London | year = 1999 | contribution-url = http://www.geocities.com/martinkramerorg/BernardLewis.htm }}.

[edit] Citing contributions, republications, or edited quotations in a periodical article

[edit] Manuscript edited and published in a journal

  • {{User:RossPatterson/Citation | last=Knight | first=Joseph, Sr. | year=1833 | editor-last=Jessee | editor-first=Dean | title=Joseph Knight's Recollection of Early Mormon History | journal=BYU Studies | volume=17 | issue=1 | publication-date=1976 | pages=35 | url=https://byustudies.byu.edu/shop/PDFSRC/17.1Jessee.pdf }}.

[edit] Manuscript written at one date and place, then published in a periodical at a different date and place with commentary by the editor.

  • {{User:RossPatterson/Citation | last=Klingensmith | first=Philip | contribution=Affidavit | year=1872 | date=[[September 5]] [[1872]] | place=Lincoln County, Nevada | title=Mountain Meadows Massacre | editor-last=Toohy | editor-first=Dennis J. | journal=Corinne Daily Reporter | publication-date=[[September 24]] [[1872]] | publication-place=Corinne, Utah | volume=5 | issue=252 | pages=1 | contribution-url=http://udn.lib.utah.edu/u?/corinne,5359 }}.

[edit] Citing patents

[edit] United States patent with multiple inventors

  • {{User:RossPatterson/Citation | inventor1-first = Mikael | inventor1-last = Degermark | inventor2-first = Andrej | inventor2-last = Brodnik | inventor3-first = Svante | inventor3-last = Carlsson | inventor4-first = Stephen | inventor4-last = Pink | title = Fast routing lookup system using complete prefix tree, bit vector, and pointers in a routing table for determining where to route IP datagrams | issue-date = 2001 | patent-number = 6266706 | country-code = US}}.
  • Degermark, Mikael; Andrej Brodnik & Svante Carlsson et al., "Fast routing lookup system using complete prefix tree, bit vector, and pointers in a routing table for determining where to route IP datagrams", US 6266706, issued 2001.

[edit] Cases from my own ten fingers

[edit] Using an archived copy of the URL

  • {{User:RossPatterson/Citation | last=Hill | first=Marvin S. | title=Joseph Smith and the 1826 Trial: New Evidence and New Difficulties | journal=BYU Studies | volume=12 | issue=2 | year=1976 | pages=1–8 | url=https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf | archiveurl=http://www.example.org/12.2Hill.pdf | archivedate=2007-12-20 }}.

[edit] Using an archived copy of an encyclopedia article by a named author

  • {{User:RossPatterson/Citation | last = Kramer | first = Martin | author-link = Martin Kramer | contribution = Bernard Lewis | editor-last = Boyd | editor-first = Kelley | title = Encyclopedia of Historians and Historical Writing | volume = 1 | pages = 719–720 | publisher = Fitzroy Dearborn | place = London | publication-date = 1999 | contribution-url = http://www.geocities.com/martinkramerorg/BernardLewis.htm | archive-contribution-url=http://www.example.org/BernardLewis.htm | archivedate=2007-12-30 }}.

[edit] Error cases

The following cases are deliberate attempts to feed the template bad parameters

[edit] Using archivedate without archiveurl

  • {{User:RossPatterson/Citation | last=Hill | first=Marvin S. | title=Joseph Smith and the 1826 Trial: New Evidence and New Difficulties | journal=BYU Studies | volume=12 | issue=2 | year=1976 | pages=1–8 | url=https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf | archivedate=2007-12-20 }}.

[edit] Using archiveurl without archivedate

  • {{User:RossPatterson/Citation | last=Hill | first=Marvin S. | title=Joseph Smith and the 1826 Trial: New Evidence and New Difficulties | journal=BYU Studies | volume=12 | issue=2 | year=1976 | pages=1–8 | url=https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf | archiveurl=http://www.example.org/12.2Hill.pdf }}.