Template:Cite book/doc
This page will only parse completely when it is included in another page.
This template is used to [wiki="WP:CITE"]cite sources[/wiki] in BRwiki. It is specifically for books. [TOC]NO[/TOC]
[h="2"] Usage [/h]
All fields [b][i]must[/b][/i] be [wiki]lowercase[/wiki].
Copy a blank version to use. Remember to use the "|" (pipe) character between each field. Please delete any unused fields to avoid clutter in the edit window.
No templates or magic words are necessary when using an [wiki]ISBN[/wiki], [wiki]OCLC[/wiki] number, or [wiki]DOI[/wiki] as an identifier. Instead of using the <code>id</code> field in these instances, simply use the appropriate field. For instance, type <code>isbn=</code> followed by the number instead of <code>id=ISBN</code>. Templates are available for other identification number types to be used in the ID field ([template]tl|ISSN[/template], [template]tl|LCCN[/template], [template]tl|LCC[/template], etc.) if these aren't available. See also the complete [wiki="Cite book/doc#Description of fields"]description of fields[/wiki].
[table] class="wikitable"
! colspan="3" | Full version (copy and paste text below and delete parameters you don't need)
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
[indent][span] style="font-family:Courier; " |
{{cite book |last= |first= |authorlink= |coauthors= |editor= |others= |title= |origdate= |origyear= |origmonth= |url= |format= |accessdate= |accessyear= |accessmonth= |edition= |series= |date= |year= |month= |publisher= |location= |language= |isbn= |oclc= |doi= |id= |pages= |chapter= |chapterurl= |quote= }}
[/span][/indent]|- width="50%" valign="top" style="vertical-align:top;"
! colspan="3" | Most commonly used fields (or you can use this and not have to delete as much)
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
[indent][span] style="font-family:Courier; " |
{{cite book |last= |first= |authorlink= |coauthors= |title= |year= |publisher= |location= |isbn= }}
[/span][/indent]|- width="50%" valign="top" style="vertical-align:top;"
! Example 1
| style="vertical-align: top;" |
[span] style="font-family:Courier; " |
{{cite book |last= Cordell |first= Bruce R. |coauthors= Jeff Grubb, David Yu |title= [[Manual of the Planes]] |publisher= [[Wizards of the Coast]] |year= 2001 |month= September |isbn= 0-7869-1850-8 }}
[/span]
| style="vertical-align: top;" |
[template]cite book |last= Cordell |first= Bruce R. |coauthors= Jeff Grubb, David Yu |title= [wiki]Manual of the Planes[/wiki] |publisher= [wiki]Wizards of the Coast[/wiki] |year= 2001 |month= September |isbn= 0-7869-1850-8 [/template]
|- width="50%" valign="top" style="vertical-align:top;"
! Example 2
| style="vertical-align: top;" |<div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:144px;">{{cite book<br /> | last = Cordell <br /> | first = Bruce R.<br /> | authorlink = Bruce R. Cordell <br /> | title = [[Manual of the Planes]]<br /> | publisher = [[Wizards of the Coast]]<br /> | pages = 80-83<br /> | year = 2001<br /> | month= September<br /> | isbn = 0-7869-1850-8}}</pre></div>| style="vertical-align: top;" |
[template]cite book
| last = Cordell
| first = Bruce R.
| authorlink = Bruce R. Cordell
| title = [wiki]Manual of the Planes[/wiki]
| publisher = [wiki]Wizards of the Coast[/wiki]
| pages = 80-83
| year = 2001
| month= September
| isbn = 0-7869-1850-8[/template]
[/table]
[table] class="wikitable"
|- width="50%" valign="top" style="vertical-align:top;"
! Vertical list !! Prerequisites * !! Brief instructions
|- width="50%" valign="top" style="vertical-align:top;"
| style="vertical-align:top;padding:1ex;" |<div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:372px;"> {{cite book<br /> | last = <br /> | first = <br /> | authorlink = <br /> | coauthors = <br /> | editor = <br /> | others = <br /> | title = <br /> | origdate = <br /> | origyear = <br /> | origmonth = <br /> | url = <br /> | format = <br /> | accessdate = <br /> | accessyear = <br /> | accessmonth = <br /> | edition = <br /> | series = <br /> | date = <br /> | year = <br /> | month = <br /> | publisher = <br /> | location = <br /> | language = <br /> | isbn = <br /> | oclc = <br /> | doi = <br /> | id = <br /> | pages = <br /> | chapter = <br /> | chapterurl = <br /> | quote = <br /> }}</pre></div>| style="vertical-align:top;padding:1ex;" |<div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:372px;"> &nbsp; <br /> &nbsp;<br /> last<br /> last <br /> last <br /> &nbsp;<br /> &nbsp;<br /> REQUIRED**<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> url<br /> url<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> publisher<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> chapter<br /> &nbsp;<br /> &nbsp;</pre></div>| style="vertical-align:top;padding:1ex;" |<div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:372px;"> &nbsp; <br /> (no wikilink)<br /> (no wikilink)<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> ?preferred (no wikilink)<br /> &nbsp;alternative to origdate<br /> &nbsp;alternative to origdate<br /> &nbsp;<br /> &nbsp;<br /> ?preferred (no wikilink)<br /> &nbsp;alternative to accessdate<br /> &nbsp;alternative to accessdate<br /> &nbsp;<br /> &nbsp;<br /> ?preferred (no wikilink)<br /> &nbsp;alternative to date<br /> &nbsp;alternative to date<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;<br /> (no wikilink)&Dagger;<br /> &nbsp;<br /> &nbsp;<br /> &nbsp;</pre></div>[/table]
[table] style="background:none;"
|- valign="top"
| style="text-align:right;" | ∗ || The field listed below is a prerequisite for the field to the left. For example [b]last[/b] is a prerequisite to [b]first[/b] meaning [b]first[/b] will NOT be displayed even if it has a value unless [b]last[/b] also has a value.
|- valign="top"
| style="text-align:right;" | ∗∗ || Wikilinks [b][i]must[/b][/i] link to an existing article, and cannot be used if [b]url[/b] is used below.
|- valign="top"
| style="text-align:right;" | ? || This is the preferred field with its alternates listed below.
|- valign="top"
| style="text-align:right;" | ‡ || If [b]chapterurl[/b] is provided then [b]chapter[/b] can not have wikilinks.
[/table]
[h="2"] Fields [/h]
===Wikilinks===
Most fields can be wikilinked (ie. [i]title[/i] = [[book article|book title]]), but should generally only be linked to an existing Wikipedia article. Any wikilinked field [b]must not[/b] contain any brackets apart from normal round brackets <code>()</code> — don't use <code><>[]{}</code>.
[h="3"]Description of fields[/h]
====<small>Syntax (for the technical-minded)</small>====
[div] style="font-size: 90%;" |
Nested fields either rely on their parent fields, or replace them:
[list][*][i]parent[/i]
[list][*][i]child[/i] — may be used [b]with[/b] [i]parent[/i] (and is ignored if [i]parent[/i] is not used)
[*]OR: [i]child2[/i] — may be used [b]instead[/b] of [i]parent[/i] (and is ignored if [i]parent[/i] is used)
[/LIST]
[/LIST]
[/div]
[h="4"]Description[/h]
[list][*] [b]last[/b]: Surname of author. Don't wikilink (use [i]authorlink[/i] instead).
[list][*] [b]first[/b]: First name(s) of author, including title(s) (eg. [i]Firstname Middlename[/i] or [i]Firstname M.[/i] or [i]Dr. Firstname M., Snr.[/i]). Don't wikilink (use [i]authorlink[/i] instead).
[list][*] The `last' and `first' fields are poorly named for the case of an author whose surname is usually written first (e.g. as in Chinese). They also have the problem of only communicating which is the surname, not communicating where the surname is usually written. Consider deprecating first,last fields, and reinstating author field, using the notation "Smith, John" or "Hu Ke Jie" as appropriate (i.e. always writing surname first, and using comma or not depending on whether the name is usually written surname last or first).
[/LIST]
[*] [b]authorlink[/b]: Title of Wikipedia article about author. Article should already exist. Must not be wikilinked itself. Do not use this on its own, but along with "author" or "first" and "last".
[*] [b]coauthors[/b]: Full name of additional author or authors, surname last, separated by ", " (eg. [i]Joe Bloggs, John F. Kennedy, H. R. Dent[/i]).
[list][*] Someone please confirm that surname is to go last even for people whose name is usually written surname first. Consider rethinking this field, e.g. using [i]Bloggs, Joe and Kennedy, John F. and Dent, H. R. and Hu Ke Jie[/i].
[/LIST]
[*] OR: [b]author[/b]: Full name of author, preferably surname first.
[/LIST]
[*] [b]editor[/b]: Name of editor/editors. No text is added beyond "[i]in[/i]," so labels such as "(ed.)" have to be supplied by the user.
[list][*]This field should only be used when the cited author and the book editor are different. If the whole book is cited, instead of a specific part, use the "author" fields (possibly with extra "(ed.)" instead)
[/LIST]
[*] [b]others[/b]: For uses such as "illustrated by Smith" or "trans. Smith".
[*] [b]title[/b]: Title of book. [b][i]This is the only required parameter.[/b][/i] Can be wikilinked [b]only[/b] to an existing Wikipedia article. Do not use italics.
[*] [b]url[/b]: URL of an online book. Cannot be used if you wikilinked [i]title[/i].
[list][*] [b]format[/b]: Format, e.g. PDF. HTML implied if not specified.
[*] [b]accessdate[/b]: Full date when url was accessed, in [wiki]ISO 8601[/wiki] YYYY-MM-DD format, eg. [i]2006-02-17[/i]. [b]Required when [i]url[/i] field is used.[/b] Must not be wikilinked.
[list][*] OR: [b]accessyear[/b]: Year when item was accessed, and [b]accessmonth[/b]: Month when item was accessed. If you also have the day, use [i]accessdate[/i] instead. Must not be wikilinked.
[/LIST]
[/LIST]
[*] [b]edition[/b]: When the book has more than one edition. [i]eg:[/i] "2nd edition".
[*] [b]series[/b]: When the book is part of a series of publications
[*] [b]origdate[/b]: Full date of publication of original edition, in [wiki]ISO 8601[/wiki] YYYY-MM-DD format, eg. [i]2004-06-27[/i]. Must not be wikilinked.
[list][*] OR: [b]origyear[/b]: Year of publication of original edition, and [b]origmonth[/b]: Month of publication of original edition. If you also have the day, use [i]date[/i] instead. Must not be wikilinked.
[/LIST]
[*] [b]date[/b]: Full date of publication edition being referenced, in [wiki]ISO 8601[/wiki] YYYY-MM-DD format, eg. [i]2006-02-17[/i]. Must not be wikilinked.
[list][*] OR: [b]year[/b]: Year of publication edition being referenced, and [b]month[/b]: Name of the month of publication. If you also have the day, use [i]date[/i] instead. Must not be wikilinked.
[/LIST]
[*] [b]publisher[/b]: Publisher should not include corporate designation such as "Ltd" or "Inc".
[list][*] [b]location[/b]: Place of publication.
[/LIST]
[*] [b]language[/b]: The language the book is written in, if it is not English.
[*] [b]isbn[/b]: [wiki]International Standard Book Number[/wiki] such as [i]1-111-22222-9[/i].
[*] [b]oclc[/b]: [wiki]Online Computer Library Center[/wiki] ID number, such as [i]3185581[/i]
[*] [b]doi[/b]: A [wiki]digital object identifier[/wiki] such as [i]10.1016/j.coi.2004.08.001[/i].
[list][*][b]doilabel[/b]: If the doi contains some characters that must be [wiki="Percent-encoding"]escaped[/wiki], use "doilabel" for the unescaped version. See [template]tl|doi[/template]: "id" is equivalent to "doi" and "label" is "doilabel"
[/LIST]
[*] [b]id[/b]: A [wiki]unique identifier[/wiki], used if none of the above are applicable. In this case, you need to specify the kind of identifier you are using, preferably with a template like [template]tl|ISSN[/template]. (Use one of the more specialized parameters if possible; they are linked automatically. In other words, don't use [i]id = ISBN 1-111-22222-9[/i] anymore. Use [i]isbn = 1-111-22222-9[/i].)
[*] [b]pages[/b]: [i]pp. 5&ndash;7[/i]: first page and optional last page. This is for listing the pages relevant to the citation, not the total number of pages in the book.
[*] [b]chapter[/b]: The chapter of the book, written in full. Punctuation other than quotes should be included in the value passed to the parameter, eg. [i]chapter = Meet Dick and Jane.[/i] produces "Meet Dick and Jane." ahead of [i]title[/i].
[list][*] [b]chapterurl[/b]: URL of an individual chapter of online book. Should be at the same site as [i]url[/i], if any.
[/LIST]
[*] [b]quote[/b]: Relevant quote from the book.
[/LIST]
[h="2"]Examples[/h]
;Just a title:
[indent]<code>* {{cite book | title=Mysterious book }}</code>[/indent]
[indent]* [template]cite book | title = Mysterious book [/template][/indent]
;Year and title:
[indent]<code>* {{cite book | title=Mysterious book | year=1901 }}</code>[/indent]
[indent]* [template]cite book | title = Mysterious book | year = 1901 [/template][/indent]
;Basic usage:
[indent]<code>* {{cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}</code>[/indent]
[indent]* [template]cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs [/template][/indent]
;Basic usage with url:
[indent]<code>* {{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 }}</code>[/indent]
[indent]* [template]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 [/template][/indent]
;Three authors, title with a piped wikilink, edition
[indent]<code>* {{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | coauthors=John Smith, Jim Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd Edition }}</code>[/indent]
[indent]* [template]cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | coauthors=John Smith, Jim Smythe | title=[wiki="A Thousand Acres"]1000 Acres[/wiki] | edition=2nd Edition [/template][/indent]
;Date without day, wikilinked title and publisher, id, pages, location
[indent]<code>* {{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 }}</code>[/indent]
[indent]* [template]cite book | last=Cordell | first=Bruce R. | coauthors=Jeff Grubb, David Noonan | year=2001 | month=September | title=[wiki]Manual of the Planes[/wiki] | publisher=[wiki]Wizards of the Coast[/wiki] | location=Timbuktu | isbn=0-7869-1850-8 | pages=pp. 134-137 [/template][/indent]
;Date of first edition, other language, illustrator
[indent]<code>* {{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 }}</code>[/indent]
[indent]* [template]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 [/template][/indent]
;Using a [wiki="Digital object identifier"]DOI[/wiki]
[indent]<code>*{{cite book[/indent] | 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]&# 93;
| doi=10.1007/b62130
| isbn=354063293X
}}</code>
[indent]*[template]cite book[/indent] | 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=[wiki]Springer-Verlag[/wiki]
| doi=10.1007/b62130
| isbn=354063293X
[/template]
[h="2"]Testing[/h]
See [template="cite book/regression tests"]cite book/regression tests[/template].
[h="2"]Note[/h]
Note the extra full-stop when the last author ends with an initial, and there is no date:
[list][*][template]cite book | last = Invisible | first = M. | title = Mysterious book [/template]
[/LIST]
We don't know of a practical solution to this — unless there is a way to test the characters of a field?
[top]Pages That Use This Template
The following pages include this template:
Created by Last edited by , 10-23-2011 at 11:56 AM 0 Comments, 1,730 Views |
, 05-10-2007 at 01:46 PM
Bookmarks