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

From blackwiki
Jump to navigation Jump to search
imported>Colonies Chris
imported>KolbertBot
m (Bot: HTTP→HTTPS (v470))
Line 183: Line 183:
 
:Here is a citation with the chapter title included:
 
:Here is a citation with the chapter title included:
 
::{{cite book  
 
::{{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 |type= reprint of 1965 article in ''Encyclopedia of Physics'' |chapter=Preface }}
+
|chapterurl=https://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 |type= reprint of 1965 article in ''Encyclopedia of Physics'' |chapter=Preface }}
  
 
:The editor's name is preceded by ''in''.  
 
:The editor's name is preceded by ''in''.  
Line 189: Line 189:
 
:If the chapter title is omitted, the treatment of the editor changes:
 
:If the chapter title is omitted, the treatment of the editor changes:
 
::{{cite book  
 
::{{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 |type= reprint of 1965 article in ''Encyclopedia of Physics''  }}
+
|url=https://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 |type= reprint of 1965 article in ''Encyclopedia of Physics''  }}
  
 
:Now there is a ''double'' period after ''ed'' and the ''in'' has been dropped.
 
:Now there is a ''double'' period after ''ed'' and the ''in'' has been dropped.
Line 200: Line 200:
 
:Here is a citation with the chapter title ''Preface'' specified. The url for the book becomes attached to the chapter heading:
 
:Here is a citation with the chapter title ''Preface'' specified. The url for the book becomes attached to the chapter heading:
 
::{{cite book  
 
::{{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 }}
+
|url=https://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:
 
:If the chapter title is omitted, the url is attached to the book title instead:
 
::{{cite book  
 
::{{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''  }}
+
|url=https://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)
 
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)
  
Line 212: Line 212:
 
:Here is a citation with the chapter title included:
 
:Here is a citation with the chapter title included:
 
::{{cite book/new
 
::{{cite book/new
|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 |type= reprint of 1965 article in ''Encyclopedia of Physics'' |chapter=Preface }}
+
|chapterurl=https://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 |type= reprint of 1965 article in ''Encyclopedia of Physics'' |chapter=Preface }}
  
 
:The editor's name is preceded by ''in''.  
 
:The editor's name is preceded by ''in''.  
Line 218: Line 218:
 
:If the chapter title is omitted, the treatment of the editor changes:
 
:If the chapter title is omitted, the treatment of the editor changes:
 
::{{cite book/new
 
::{{cite book/new
|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''  }}
+
|url=https://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.
 
:Now there is a ''double'' period after ''ed'' and the ''in'' has been dropped.
Line 229: Line 229:
 
:Here is a citation with the chapter title ''Preface'' specified. The url for the book becomes attached to the chapter heading:
 
:Here is a citation with the chapter title ''Preface'' specified. The url for the book becomes attached to the chapter heading:
 
::{{cite book/new
 
::{{cite book/new
|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 }}
+
|url=https://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:
 
:If the chapter title is omitted, the url is attached to the book title instead:
 
::{{cite book/new
 
::{{cite book/new
|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''  }}
+
|url=https://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)
 
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)

Revision as of 12:53, 27 October 2017

  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

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.

Some general examples to get started

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

More complex examples

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

ISBN test cases

Template:Testcase

Template:Testcase

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.
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:
Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
The editor's name is preceded by in.
If the chapter title is omitted, the treatment of the editor changes:
Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
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:
Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
If the chapter title is omitted, the url is attached to the book title instead:
Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.

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)