Template:Cite book/testcases

From English Wikipedia @ Freddythechick

__EXPECTUNUSEDTEMPLATE__

Special:ExpandTemplates

https://en.m.wikipedia.org/wiki/Special:ExpandTemplates

https://en.m.wikipedia.org/wiki/Template_talk:Cite_book

   ====== Reference ======

[1] The Music Bangla Tv opening last night,[1] [2] channel-16 return back is music bangla tv not too late.[2] [3] A New music channel.[3]

More complex examples

{{testcase|id=Using a DOI | *{{cite book |last=Mumford |first=David |authorlink=David Mumford |year=1999 |title=The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians |edition=2nd |publisher=Springer-Verlag |doi=10.1007/b62130 |isbn=354063293X }}

Notes

  1. ^ Daily ManobJamin 2015, p. 3.
  2. ^ Daily janata 2015, p. 6.
  3. ^ bd2day24news 2015, p. 1.

Some general examples to get started

General
{{cite book
 | author = Buckland, W.
 | year = 1841
 | title = Geology and Mineralogy Considered with Reference to Natural Theology
 | publisher = Lea & Blanchard
 }}
Buckland, W. (1841). Geology and Mineralogy Considered with Reference to Natural Theology. Lea & Blanchard.
Buckland, W. (1841). Geology and Mineralogy Considered with Reference to Natural Theology. Lea & Blanchard.
Expanded code
<syntaxhighlight lang="html" inline="1">Buckland, W. (1841). Geology and Mineralogy Considered with Reference to Natural Theology. Lea & Blanchard.

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Buckland, W. (1841). Geology and Mineralogy Considered with Reference to Natural Theology. Lea & Blanchard.

</syntaxhighlight>

Unusual separators
{{cite book
| title=On the Origin of Species by Natural Selection
| author=Darwin, C
| authorlink=Charles Darwin
| year=2002
| origyear = First published 1859
| pages=315–316
| publisher=Murray, London, United Kingdom
| isbn=1602061440
| oclc=176630493
| separator = ;
| lastauthoramp = &
| postscript = A good read!
}}
Darwin, C (2002) [First published 1859]. On the Origin of Species by Natural Selection. Murray, London, United Kingdom. pp. 315–316. ISBN 1602061440. OCLC 176630493A good read! {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |separator= ignored (help)CS1 maint: postscript (link)
Darwin, C (2002) [First published 1859]. On the Origin of Species by Natural Selection. Murray, London, United Kingdom. pp. 315–316. ISBN 1602061440. OCLC 176630493A good read! {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |separator= ignored (help)CS1 maint: postscript (link)
Expanded code
<syntaxhighlight lang="html" inline="1">Darwin, C (2002) [First published 1859]. On the Origin of Species by Natural Selection. Murray, London, United Kingdom. pp. 315–316. ISBN 1602061440. OCLC 176630493A good read! {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |separator= ignored (help)CS1 maint: postscript (link)</syntaxhighlight>
<syntaxhighlight lang="html" inline="1">Darwin, C (2002) [First published 1859]. On the Origin of Species by Natural Selection. Murray, London, United Kingdom. pp. 315–316. ISBN 1602061440. OCLC 176630493A good read! {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |separator= ignored (help)CS1 maint: postscript (link)</syntaxhighlight>
General
{{cite book | title=The Burgess Shale | author=Whittington, H.B. | authorlink=Harry Whittington | coauthors = Geological Survey of Canada | year=1985 | publisher=Yale University Press | isbn=0660119013 | oclc=15630217 }}
Whittington, H.B. (1985). The Burgess Shale. Yale University Press. ISBN 0660119013. OCLC 15630217. {{cite book}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)
Whittington, H.B. (1985). The Burgess Shale. Yale University Press. ISBN 0660119013. OCLC 15630217. {{cite book}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)
Expanded code
<syntaxhighlight lang="html" inline="1">Whittington, H.B. (1985). The Burgess Shale. Yale University Press. ISBN 0660119013. OCLC 15630217. {{cite book}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Whittington, H.B. (1985). The Burgess Shale. Yale University Press. ISBN 0660119013. OCLC 15630217. {{cite book}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)

</syntaxhighlight>

Just a title
{{cite book | title=Mysterious book }}
Mysterious book.
Mysterious book.
Expanded code
<syntaxhighlight lang="html" inline="1">Mysterious book.

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Mysterious book.

</syntaxhighlight>

Year and title
* {{cite book | title=Mysterious book | year=1901 }}
Mysterious book. 1901.
Mysterious book. 1901.
Expanded code
<syntaxhighlight lang="html" inline="1">Mysterious book. 1901.

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Mysterious book. 1901.

</syntaxhighlight>

Basic usage
* {{cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
Bloggs, Joe (1974). Book of Bloggs.
Bloggs, Joe (1974). Book of Bloggs.
Expanded code
<syntaxhighlight lang="html" inline="1">Bloggs, Joe (1974). Book of Bloggs.

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Bloggs, Joe (1974). Book of Bloggs.

</syntaxhighlight>

Basic usage with url
* {{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs | edition=1st Edition | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}
Bloggs, Joe (1974). Book of Bloggs (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)
Bloggs, Joe (1974). Book of Bloggs (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)
Expanded code
<syntaxhighlight lang="html" inline="1">Bloggs, Joe (1974). Book of Bloggs (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Bloggs, Joe (1974). Book of Bloggs (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)

</syntaxhighlight>

More complex examples

Three authors, title with a piped wikilink, edition
* {{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | coauthors=John Smith, Jim Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd Edition }}
Bloggs, Joe. 1000 Acres (2nd Edition ed.). {{cite book}}: |edition= has extra text (help); Unknown parameter |coauthors= ignored (|author= suggested) (help)
Bloggs, Joe. 1000 Acres (2nd Edition ed.). {{cite book}}: |edition= has extra text (help); Unknown parameter |coauthors= ignored (|author= suggested) (help)
Expanded code
<syntaxhighlight lang="html" inline="1">Bloggs, Joe. 1000 Acres (2nd Edition ed.). {{cite book}}: |edition= has extra text (help); Unknown parameter |coauthors= ignored (|author= suggested) (help)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Bloggs, Joe. 1000 Acres (2nd Edition ed.). {{cite book}}: |edition= has extra text (help); Unknown parameter |coauthors= ignored (|author= suggested) (help)

</syntaxhighlight>

Date without day, wikilinked title and publisher, id, pages, location
* {{cite book | last=Cordell | first=Bruce R. | coauthors=Jeff Grubb, David Noonan | year=2001 | month=September | title=[[Manual of the Planes]] | publisher=[[Wizards of the Coast]] | location=Timbuktu | isbn=0-7869-1850-8 | pages=pp. 134-137 }}
Cordell, Bruce R. (2001). Manual of the Planes. Timbuktu: Wizards of the Coast. pp. pp. 134-137. ISBN 0-7869-1850-8. {{cite book}}: |pages= has extra text (help); Check |isbn= value: checksum (help); Unknown parameter |coauthors= ignored (|author= suggested) (help); Unknown parameter |month= ignored (help)
Cordell, Bruce R. (2001). Manual of the Planes. Timbuktu: Wizards of the Coast. pp. pp. 134-137. ISBN 0-7869-1850-8. {{cite book}}: |pages= has extra text (help); Check |isbn= value: checksum (help); Unknown parameter |coauthors= ignored (|author= suggested) (help); Unknown parameter |month= ignored (help)
Expanded code
<syntaxhighlight lang="html" inline="1">Cordell, Bruce R. (2001). Manual of the Planes. Timbuktu: Wizards of the Coast. pp. pp. 134-137. ISBN 0-7869-1850-8. {{cite book}}: |pages= has extra text (help); Check |isbn= value: checksum (help); Unknown parameter |coauthors= ignored (|author= suggested) (help); Unknown parameter |month= ignored (help)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Cordell, Bruce R. (2001). Manual of the Planes. Timbuktu: Wizards of the Coast. pp. pp. 134-137. ISBN 0-7869-1850-8. {{cite book}}: |pages= has extra text (help); Check |isbn= value: checksum (help); Unknown parameter |coauthors= ignored (|author= suggested) (help); Unknown parameter |month= ignored (help)

</syntaxhighlight>

Date of first edition, other language, illustrator
* {{cite book | last=Bloggs | first=Joe | origyear=1463 | year=1974 | title=Book of Bloggs | edition=1st Edition | others=illustrated by Smith | language=German | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}
Bloggs, Joe (1974) [1463]. Book of Bloggs (in German). illustrated by Smith (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)CS1 maint: unrecognized language (link)
Bloggs, Joe (1974) [1463]. Book of Bloggs (in German). illustrated by Smith (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)CS1 maint: unrecognized language (link)
Expanded code
<syntaxhighlight lang="html" inline="1">Bloggs, Joe (1974) [1463]. Book of Bloggs (in German). illustrated by Smith (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)CS1 maint: unrecognized language (link)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Bloggs, Joe (1974) [1463]. Book of Bloggs (in German). illustrated by Smith (1st Edition ed.). Retrieved 2006-02-17. {{cite book}}: |edition= has extra text (help)CS1 maint: unrecognized language (link)

</syntaxhighlight>

Using a DOI
*{{cite book
|last=Mumford
|first=David
|authorlink=David Mumford
|year=1999
|title=The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians
|edition=2nd
|publisher=Springer-Verlag
|doi=10.1007/b62130
|isbn=354063293X
}}

Mumford, David (1999). The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians (2nd ed.). Springer-Verlag. doi:10.1007/b62130. ISBN 354063293X.
Mumford, David (1999). The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians (2nd ed.). Springer-Verlag. doi:10.1007/b62130. ISBN 354063293X.
Expanded code
<syntaxhighlight lang="html" inline="1">Mumford, David (1999). The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians (2nd ed.). Springer-Verlag. doi:10.1007/b62130. ISBN 354063293X.

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Mumford, David (1999). The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians (2nd ed.). Springer-Verlag. doi:10.1007/b62130. ISBN 354063293X.

</syntaxhighlight>

Editor ampersands
*{{cite book|author=Au1|last2=Au2|last3=Au3|editor=Ed1|editor2-last=Ed2|editor3-last=Ed3|title=Title|lastauthoramp=&}}
*{{cite book|editor=Ed1|editor2-last=Ed2|editor3-last=Ed3|title=Title|lastauthoramp=&}}
*Au1; Au2; Au3. Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: authors list (link)
  • Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: editors list (link)
*Au1; Au2; Au3. Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: authors list (link)
  • Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: editors list (link)
Expanded code
<syntaxhighlight lang="html" inline="1">*Au1; Au2; Au3. Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: authors list (link)
  • Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: editors list (link)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">*Au1; Au2; Au3. Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: authors list (link)
  • Ed1; Ed2; Ed3 (eds.). Title. {{cite book}}: Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help)CS1 maint: numeric names: editors list (link)

</syntaxhighlight>

ISBN test cases

ISBN 1
{{cite book |author= Dakin CJ |chapter= Life on the outside: A personal perspective of Asperger syndrome |editor= Stoddart KP |title= Children, Youth and Adults with Asperger Syndrome: Integrating Multiple Perspectives |year=2005 |publisher= Jessica Kingsley |isbn=1-84310-319-2 |pages=352–61}}
Dakin CJ (2005). "Life on the outside: A personal perspective of Asperger syndrome". In Stoddart KP (ed.). Children, Youth and Adults with Asperger Syndrome: Integrating Multiple Perspectives. Jessica Kingsley. pp. 352–61. ISBN 1-84310-319-2.
Dakin CJ (2005). "Life on the outside: A personal perspective of Asperger syndrome". In Stoddart KP (ed.). Children, Youth and Adults with Asperger Syndrome: Integrating Multiple Perspectives. Jessica Kingsley. pp. 352–61. ISBN 1-84310-319-2.
Expanded code
<syntaxhighlight lang="html" inline="1">Dakin CJ (2005). "Life on the outside: A personal perspective of Asperger syndrome". In Stoddart KP (ed.). Children, Youth and Adults with Asperger Syndrome: Integrating Multiple Perspectives. Jessica Kingsley. pp. 352–61. ISBN 1-84310-319-2.

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Dakin CJ (2005). "Life on the outside: A personal perspective of Asperger syndrome". In Stoddart KP (ed.). Children, Youth and Adults with Asperger Syndrome: Integrating Multiple Perspectives. Jessica Kingsley. pp. 352–61. ISBN 1-84310-319-2.

</syntaxhighlight>

ISBN 2
{{cite book |title= Foundations of Evolutionary Psychology |chapter= The evolution of brain mechanisms for social behavior |author= Baron-Cohen S |pages=415–32 |editor= Crawford C, Krebs D (eds.) |publisher= Lawrence Erlbaum |date=2008 |isbn=0-8058-5957-8}}
Baron-Cohen S (2008). "The evolution of brain mechanisms for social behavior". In Crawford C, Krebs D (eds.) (ed.). Foundations of Evolutionary Psychology. Lawrence Erlbaum. pp. 415–32. ISBN 0-8058-5957-8. {{cite book}}: |editor= has generic name (help)
Baron-Cohen S (2008). "The evolution of brain mechanisms for social behavior". In Crawford C, Krebs D (eds.) (ed.). Foundations of Evolutionary Psychology. Lawrence Erlbaum. pp. 415–32. ISBN 0-8058-5957-8. {{cite book}}: |editor= has generic name (help)
Expanded code
<syntaxhighlight lang="html" inline="1">Baron-Cohen S (2008). "The evolution of brain mechanisms for social behavior". In Crawford C, Krebs D (eds.) (ed.). Foundations of Evolutionary Psychology. Lawrence Erlbaum. pp. 415–32. ISBN 0-8058-5957-8. {{cite book}}: |editor= has generic name (help)

</syntaxhighlight>

<syntaxhighlight lang="html" inline="1">Baron-Cohen S (2008). "The evolution of brain mechanisms for social behavior". In Crawford C, Krebs D (eds.) (ed.). Foundations of Evolutionary Psychology. Lawrence Erlbaum. pp. 415–32. ISBN 0-8058-5957-8. {{cite book}}: |editor= has generic name (help)

</syntaxhighlight>

Inconsistent formatting

First, an example of incorrect formatting of editor reference:

Here is a citation with the chapter title included:
Clifford Truesdell & Walter Noll (2004). "Preface". In Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793. {{cite book}}: External link in |chapterurl= (help); Unknown parameter |chapterurl= ignored (|chapter-url= suggested) (help)
The editor's name is preceded by in.
If the chapter title is omitted, the treatment of the editor changes:
Clifford Truesdell & Walter Noll (2004). Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793.
Now there is a double period after ed and the in has been dropped.
Aside from this inconsistency in format, insertion of the word in before the editors name is sometimes inappropriate. The word in makes sense for a collection of works by various authors, edited by an editor. But it does not make sense for a reprinted classic work, such as this example, where the original authors are responsible for the entire work. In this latter case, the reference is not to a chapter among variously sourced chapters, but to a particular topic in a work by the same authors.

This issue is remedied by simply using the editor's name followed by (editor) in all cases.

Second, an example of inconsistent linking to url.

Here is a citation with the chapter title Preface specified. The url for the book becomes attached to the chapter heading:
Clifford Truesdell & Walter Noll (2004). "Preface". In Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793.
If the chapter title is omitted, the url is attached to the book title instead:
Clifford Truesdell & Walter Noll (2004). Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793.

If |chapterurl= is not used, the url should attach by default to the title, and not to the chapter heading. The option |chapterurl= then becomes a true option, and is not forced upon the writer. Brews ohare (talk) 15:20, 8 December 2008 (UTC)

Again with the sandbox


First, an example of incorrect formatting of editor reference:

Here is a citation with the chapter title included:
Clifford Truesdell & Walter Noll (2004). "Preface". In Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793. {{cite book}}: External link in |chapterurl= (help); Unknown parameter |chapterurl= ignored (|chapter-url= suggested) (help)
The editor's name is preceded by in.
If the chapter title is omitted, the treatment of the editor changes:
Clifford Truesdell & Walter Noll (2004). Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793.
Now there is a double period after ed and the in has been dropped.
Aside from this inconsistency in format, insertion of the word in before the editors name is sometimes inappropriate. The word in makes sense for a collection of works by various authors, edited by an editor. But it does not make sense for a reprinted classic work, such as this example, where the original authors are responsible for the entire work. In this latter case, the reference is not to a chapter among variously sourced chapters, but to a particular topic in a work by the same authors.

This issue is remedied by simply using the editor's name followed by (editor) in all cases.

Second, an example of inconsistent linking to url.

Here is a citation with the chapter title Preface specified. The url for the book becomes attached to the chapter heading:
Clifford Truesdell & Walter Noll (2004). "Preface". In Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793.
If the chapter title is omitted, the url is attached to the book title instead:
Clifford Truesdell & Walter Noll (2004). Stuart S. Antman (ed.). The Non-linear Field Theories of Mechanics (reprint of 1965 article in Encyclopedia of Physics) (3rd ed.). Springer. p. xiii. ISBN 3540027793.

If |chapterurl= is not used, the url should attach by default to the title, and not to the chapter heading. The option |chapterurl= then becomes a true option, and is not forced upon the writer. Brews ohare (talk) 15:20, 8 December 2008 (UTC)