Difference between revisions of "Template:Cite book/testcases"

m
1 revision
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{Citation/core/sandbox
This page is for comparing the current Cite Book output with the sandbox version.  Editors are invited to add any examples of inconsistency below so they can be addressed, but please keep discussion on [[Template talk:Cite book]] where possible.
  |Citation type=Journal
 
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
==Some general examples to get started==
  |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
 
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
;Original:
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
*{{cite book
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
| author = Buckland, W.
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
| year = 1841
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
| title = Geology and Mineralogy Considered with Reference to Natural Theology
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
| publisher = Lea & Blanchard
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
}}
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
;Sandbox:
  |Given2 = {{{first2|{{{given2|}}}}}}
*{{cite book/sandbox
  |Given3 = {{{first3|{{{given3|}}}}}}
| author = Buckland, W.
  |Given4 = {{{first4|{{{given4|}}}}}}
| year = 1841
  |Given5 = {{{first5|{{{given5|}}}}}}
| title = Geology and Mineralogy Considered with Reference to Natural Theology
  |Given6 = {{{first6|{{{given6|}}}}}}
| publisher = Lea & Blanchard
  |Given7 = {{{first7|{{{given7|}}}}}}
}}
  |Given8 = {{{first8|{{{given8|}}}}}}
 
  |Given9 = {{{first9|{{{given9|}}}}}}
;Original:{{cite book
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
| title=On the Origin of Species by Natural Selection
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
| author=Darwin, C
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
| authorlink=Charles Darwin
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
| year=2002
  |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
| origyear = First published 1859
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
| pages=315–316
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
| publisher=Murray, London, United Kingdom
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
| isbn=1602061440
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
| oclc=176630493
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
}}
            #if: {{{date|}}}
;Sandbox:{{cite book/sandbox
            |{{
| title=On the Origin of Species by Natural Selection
                #iferror:{{#time:Y|{{{date|}}} }}
| author=Darwin, C
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
| authorlink=Charles Darwin
                |{{#time:Y|{{{date|}}} }}
| year=2002
              }}
| origyear = First published 1859
            |{{{publication-date|}}} <!-- last resort -->
| pages=315–316
          }}
| publisher=Murray, London, United Kingdom
        }}}
| isbn=1602061440
  |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
| oclc=176630493
  |Title={{{title|}}}
}}
  |URL={{{url|}}}
;Citation:{{citation
  |Series={{{series|}}}
| title=On the Origin of Species by Natural Selection
  |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
| author=Darwin, C
  |Volume = {{{volume|}}}
| authorlink=Charles Darwin
  |Issue = {{{issue|{{{number|}}}}}}
| year=1859
  |At = {{
| pages=315–316
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
| publisher=Murray, London, United Kingdom
          |{{{pages|{{{page|{{{at|}}}}}}}}}
| isbn=1602061440
          |{{
| oclc=176630493
            #if: {{{page|}}}
}}
            |p. {{{page}}}
 
            |{{
;Cite book:{{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 }}
                #if: {{{pages|}}}
;Cite book sandbox:>{{cite book/sandbox | 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 }}
                |pp. {{{pages}}}
;Citation:>{{citation | 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 }}
                |{{{at|}}}
 
              }}
 
          }}
 
        }}
;Just a title:
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
:<code><nowiki>* {{cite book | title=Mysterious book }}</nowiki></code>
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
 
  |Edition = {{{edition|}}}
:*{{cite book | title = Mysterious book }}
  |Place = {{{place|{{{location|}}}}}}
:*{{cite book/sandbox | title = Mysterious book }}
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
 
  |Publisher = {{{publisher|}}}
;Year and title:
  |PublicationDate = {{{publication-date|}}}
:<code><nowiki>* {{cite book | title=Mysterious book | year=1901 }}</nowiki></code>
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
 
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
:*{{cite book | title = Mysterious book | year = 1901 }}
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
:*{{cite book/sandbox | title = Mysterious book | year = 1901 }}
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
 
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
;Basic usage:
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
:<code><nowiki>* {{cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}</nowiki></code>
  |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
 
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
:*{{cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
:*{{cite book/sandbox | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
  |Editorlink2={{{editor2-link|}}}
 
  |Editorlink3={{{editor3-link|}}}
;Basic usage with url:
  |Editorlink4={{{editor4-link|}}}
:<code><nowiki>* {{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 }}</nowiki></code>
  |language = {{{language|{{{in|}}}}}}
 
  |format = {{{format|}}}
:*{{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 }}
  |ID={{{id|{{{ID|}}}}}}
:*{{cite book/sandbox | 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 }}
  |ISBN={{{isbn|{{{ISBN|}}}}}}
 
  |ISSN={{{issn|{{{ISSN|}}}}}}
;Three authors, title with a piped wikilink, edition
  |OCLC={{{oclc|{{{OCLC|}}}}}}
:<code><nowiki>* {{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | coauthors=John Smith, Jim Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd Edition }}</nowiki></code>
  |PMID={{{pmid|{{{PMID|}}}}}}
 
  |PMC={{{pmc|{{{PMC|}}}}}}
:*{{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | coauthors=John Smith, Jim Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd Edition }}
  |Bibcode={{{bibcode|}}}
:*{{cite book/sandbox | last=Bloggs | first=Joe | authorlink=Joe Bloggs | coauthors=John Smith, Jim Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd Edition }}
  |DOI={{{doi|{{{DOI|}}}}}}
 
  |DoiBroken={{{doi_brokendate|}}}
;Date without day, wikilinked title and publisher, id, pages, location
  |AccessDate={{{access-date|{{{accessdate|}}}}}}
:<code><nowiki>* {{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 }}</nowiki></code>
  |laysource = {{{laysource|}}}
 
  |laysummary = {{{laysummary|}}}
:*{{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 }}
  |laydate = {{{laydate|}}}
:*{{cite book/sandbox | 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 }}
  |quote = {{{quote|}}}
 
  |Ref={{{ref|}}}
;Date of first edition, other language, illustrator
  |Sep = {{{separator|{{{seperator|.}}}}}}
:<code><nowiki>* {{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 }}</nowiki></code>
  |PS = {{{postscript|.}}}
 
  |msm = {{{use mixture of punctuation marks|}}}
:*{{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 }}
  |amp = {{{use ampersand before last author|}}}
:*{{cite book/sandbox | 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 }}
}}<noinclude>
 
{{pp-template|small=yes}}
;Status: {{doing}}
{{documentation}}
 
</noinclude>
;Using a [[Digital object identifier|DOI]]
:<code><nowiki>*{{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 ed.
|publisher=[[Springer-Verlag]]
|doi=10.1007/b62130
|isbn=354063293X
}}</nowiki></code>
 
:*{{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 ed.
|publisher=[[Springer-Verlag]]
|doi=10.1007/b62130
|isbn=354063293X
}}
:*{{cite book/sandbox
|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 ed.
|publisher=[[Springer-Verlag]]
|doi=10.1007/b62130
|isbn=354063293X
}}
Bit of a bug here (2nd ed. ed.). --[[User:Salix alba|Salix]] ([[User talk:Salix alba|talk]]): 09:16, 29 October 2008 (UTC)
 
==Inconsistent formatting==
'''First''', an example of incorrect formatting of editor reference:
:Here is a citation with the chapter title included:
::{{cite book
|chapterurl=http://books.google.com/books?id=dp84F_odrBQC&pg=PR13&dq=%22Preface+to+the+Third%22+inauthor:Antman&lr=&as_brr=0 |title=The Non-linear Field Theories of Mechanics |author=Clifford Truesdell & Walter Noll |editor= Stuart S. Antman |isbn=3540027793 |publisher=Springer |year=2004 |page=xiii |edition=3rd |format= reprint of 1965 article in ''Encyclopedia of Physics'' |chapter=Preface }}
 
:The editor's name is preceded by ''in''.
 
:If the chapter title is omitted, the treatment of the editor changes:
::{{cite book
|url=http://books.google.com/books?id=dp84F_odrBQC&pg=PR13&dq=%22Preface+to+the+Third%22+inauthor:Antman&lr=&as_brr=0 |title=The Non-linear Field Theories of Mechanics |author=Clifford Truesdell & Walter Noll |editor= Stuart S. Antman |isbn=3540027793 |publisher=Springer |year=2004 |page=xiii |edition=3rd |format= reprint of 1965 article in ''Encyclopedia of Physics''  }}
 
: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:
::{{cite book
|url=http://books.google.com/books?id=dp84F_odrBQC&pg=PR13&dq=%22Preface+to+the+Third%22+inauthor:Antman&lr=&as_brr=0 |title=The Non-linear Field Theories of Mechanics |author=Clifford Truesdell & Walter Noll |editor= Stuart S. Antman |isbn=3540027793 |publisher=Springer  |year=2004 |page=xiii |edition=3rd |format= reprint of 1965 article in ''Encyclopedia of Physics'' |chapter=Preface }}
:If the chapter title is omitted, the url is attached to the book title instead:
::{{cite book
|url=http://books.google.com/books?id=dp84F_odrBQC&pg=PR13&dq=%22Preface+to+the+Third%22+inauthor:Antman&lr=&as_brr=0 |title=The Non-linear Field Theories of Mechanics |author=Clifford Truesdell & Walter Noll |editor= Stuart S. Antman |isbn=3540027793 |publisher=Springer |year=2004 |page=xiii |edition=3rd |format= reprint of 1965 article in ''Encyclopedia of Physics''  }}
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. [[User:Brews ohare|Brews ohare]] ([[User talk:Brews ohare|talk]]) 15:20, 8 December 2008 (UTC)
Budlight
Bots, Bureaucrats, Administrators
529

edits