Template:Cite book/testcases

From Simple English Wikipedia, the free encyclopedia

Sandbox version[change source]

Basic usage (single author)

  • {{cite book/sandbox |last=Bloggs |first=Joe |authorlink=Joe Bloggs |year=1974 |title=Book of Bloggs}}
Bloggs, Joe (1974). Book of Bloggs. 

Basic usage (two authors)

  • {{cite book/sandbox |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Bloggs |first2=Fred |authorlink2=Fred Bloggs |year=1974 |title=Book of Bloggs}}:
Bloggs, Joe; Bloggs, Fred (1974). Book of Bloggs. 

Basic usage (two authors stored in vauthors and two editors stored in veditors)

  • {{cite book/sandbox | vauthors = Bloggs J, Bloggs F | veditors = Doe J, Smith F |year=1974 |title=Book of Bloggs}}:
Bloggs J, Bloggs F (1974). Doe J, Smith F. ed. Book of Bloggs. 

Basic usage with url (and accessdate) and edition

  • {{cite book/sandbox |last=Bloggs |first=Joe |authorlink=Joe Bloggs |year=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}
Bloggs, Joe (1974). Book of Bloggs (1st ed.). http://en.wikipedia.org/. Retrieved February 17, 2006. 

Citing a chapter in a book with different authors for different chapters and an editor

  • {{cite book/sandbox |last=Bloggs |first=Fred |editor-first=John |editor-last=Doe |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=1234567890}}
Bloggs, Fred (January 1, 2001). "Chapter 2: The History of the Bloggs Family". In Doe, John. Big Compilation Book with Many Chapters and Distinct Chapter Authors. Book Publishers. pp. 100–110. ISBN 1234567890. 

Citing a chapter in a book with two joint authors and an editor

  • {{cite book/sandbox |last1=Bloggs |first1=Joe |last2=Egg |first2=Fred |editor-last=Doe |editor-first=John |title=Big Book with Many Chapters and Two Co-authors |publisher=Book Publishers |date=January 1, 2001 |origyear=1st. Pub. 1986 |pages=100–110 |chapter=Chapter 6: Getting There |chapterurl=http://en.wikipedia.org/ |isbn=1234567890 |lastauthoramp=y}}
Bloggs, Joe & Egg, Fred (January 1, 2001) [1st. Pub. 1986]. "Chapter 6: Getting There". In Doe, John. Big Book with Many Chapters and Two Co-authors. Book Publishers. pp. 100–110. ISBN 1234567890. http://en.wikipedia.org/. 

Live version[change source]

Basic usage (single author)

  • {{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |year=1974 |title=Book of Bloggs}}
Bloggs, Joe (1974). Book of Bloggs.

Basic usage (two authors)

  • {{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Bloggs |first2=Fred |authorlink2=Fred Bloggs |year=1974 |title=Book of Bloggs}}:
Bloggs, Joe; Bloggs, Fred (1974). Book of Bloggs.

Basic usage (two authors stored in vauthors and two editors stored in veditors)

  • {{cite book| vauthors = Bloggs J, Bloggs F | veditors = Doe J, Smith F |year=1974 |title=Book of Bloggs}}:
Bloggs J, Bloggs F (1974). Doe J, Smith F (eds.). Book of Bloggs.

Basic usage with url (and accessdate) and edition

  • {{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |year=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}
Bloggs, Joe (1974). Book of Bloggs (1st ed.). Retrieved February 17, 2006.

Citing a chapter in a book with different authors for different chapters and an editor

  • {{cite book |last=Bloggs |first=Fred |editor-first=John |editor-last=Doe |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=1234567890}}
Bloggs, Fred (January 1, 2001). "Chapter 2: The History of the Bloggs Family". In Doe, John (ed.). Big Compilation Book with Many Chapters and Distinct Chapter Authors. Book Publishers. pp. 100–110. ISBN 1234567890. {{cite book}}: Check |isbn= value: checksum (help)

Citing a chapter in a book with two joint authors and an editor

  • {{cite book |last1=Bloggs |first1=Joe |last2=Egg |first2=Fred |editor-last=Doe |editor-first=John |title=Big Book with Many Chapters and Two Co-authors |publisher=Book Publishers |date=January 1, 2001 |origyear=1st. Pub. 1986 |pages=100–110 |chapter=Chapter 6: Getting There |chapterurl=http://en.wikipedia.org/ |isbn=1234567890 |lastauthoramp=y}}
Bloggs, Joe; Egg, Fred (January 1, 2001) [1st. Pub. 1986]. "Chapter 6: Getting There". In Doe, John (ed.). Big Book with Many Chapters and Two Co-authors. Book Publishers. pp. 100–110. ISBN 1234567890. {{cite book}}: Check |isbn= value: checksum (help); Unknown parameter |chapterurl= ignored (help); Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)