Template:Cite book

This template is used to cite sources in Wikibooks. It is specifically for books. When citing an article in a compilation or anthology, {{cite journal}} or {{cite encyclopedia}} work better.

Usage

All field names must be in lowercase.

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 ISBN, OCLC number, or DOI as an identifier. Instead of using the id field in these instances, simply use the appropriate field. For instance, type isbn= followed by the number instead of id=ISBN. Templates are available for other identification number types to be used in the ID field ({{ISSN}}, {{LCCN}}, {{LCC}}, etc.) if these aren't available. See also the complete description of fields.

Full version (copy and paste text below and delete parameters you don't need)

last
last
last
lastn
editor or editor-last
editorn-last
url
url
year or date
year
publisher
page or pages
chapter
laysummary
coauthors or >1 lastn

(no wikilink)
(no wikilink)
alternative to first2, last2...first9, last9
(no wikilink). n=1 through 9
n=1 through 9
n=1 through 4
n=1 through 4
n=1 through 4
insert url of online version of the book or an extract, if available
†preferred (no wikilink)
alternative to date
always include ISBN if one has been assigned
hides automatic 'p' or 'pp'.
‡(no wikilink). Synonymous with "contribution".

† This is the preferred field with its alternates listed below.

‡ If |chapterurl= is provided then |chapter= can not have wikilinks.

Fields

Wikilinks

Except where specifically prohibited in the field descriptions below, most fields can be wikilinked (e.g. title = [[book article|book title]]), but should generally only be linked to an existing Wikipedia article. Wikilinked fields must escape the characters <>[]{} rather than including them directly.

Description of fields

Syntax (for the technical-minded)

Nested fields rely on their parent fields:

parent

OR: parent2 — may be used instead of parent

child — may be used with parent (and is ignored if parent is not used)

OR: child2 — may be used instead of child (and is ignored if parent2 is not used)

The 'last' and 'first' fields are not ideally suited to authors whose surname is usually written first (e.g. as in Chinese). Use the same format as the source uses to handle these cases.

authormask – This parameter is primarily intended for use in bibliographies where multiple works by a single author are listed. It replaces the name of the first author (which must still be provided to garner metadata) with a strike-thru dash (—) authormaskem in length. So if |authormask=1 then the dash will be one em in length, if |authormask=2 it will be two em long and so on. Set authormask to a text value to display a word instead – for example, 'with'. You must still include |last= and |first= for metadata purposes. See Examples for typical usage.

authorlink: Title of Wikipedia article about author (not the author's personal website). Article should already exist. Must not be wikilinked itself. Do not use this on its own, but along with author or first and last.

OR: for multiple authors, use the fields first1, last1, ...,firstn, lastn to 'correctly' record all the information about the book (the first nine authors are printed, then et al. is appended if even more authors were specified). Don't wikilink as there are corresponding authorlink1, ..., authorlink9 fields as well. This usage is preferred to the use of coauthors.

editor: Name of editor/editors. Do not Wikilink any values in the editor field but use editor-link instead. The template automatically adds "ed." after the editor's name unless the chapter parameter is used in which case the template adds "in" before the editor's name which appears after the chapter and before the title. This implies that the author is responsible only for part of the book (including the cited chapter) and the editor responsible for the whole book. If, however, the author(s) and editor(s) are responsible for the whole book, then the editor field or its alternates described below should not be used if the chapter field is being used. Instead, the editor(s) should be included in an author field with possibly "(ed.)" after the surname(s). Alternatively, the editor field may be used if the chapter detail is included in the title field instead of using the chapter field.

OR: alternatively editor-first and editor-last can be used in the same way as first and last.

OR: for multiple editors up to four in number, use the fields editor1-first, editor1-last, ...,editorn-first, editorn-last to 'correctly' record all the information about the book in the same way as firstn and lastn.

editor-link or editor1-link...editorn-link is used in the same way as authorlink or authorlinkn.

others: To record other contributors to the work, such as "illustrated by Smith" or "trans. Smith".

title: Title of book. This is the only required parameter. Do not use italics.

trans_title: If the book cited is in a foreign language, an English translation of the title can be given here. The template will display this in square brackets after the title field and it will point to the url link, if used. Use of language parameter is recommended if this parameter is used.

url: URL of an online location where text of the book can be found. Cannot be used if you wikilinked title. If applicable, should point to the specific page(s) referenced. Do not use this field to link to any commercial booksellers (such as Amazon.com). The ISBN link is a much better alternative which allows readers access to the books in their own countries or through their own choice of source, including Amazon, Google Books, thousands of libraries, and more.

format: Format, e.g. PDF. HTML implied if not specified.

accessdate: Full date when url was accessed. Should be used when url field is used. Should be in the same format as other dates in citations in the same article. Must not be wikilinked.

type: If the publication is a thesis or dissertation, the type can be specified here. For example, type=PhD thesis produces "(PhD thesis)" immediately after the title.

edition: When the book has more than one edition. e.g.: "2nd.", "Revised" etc.. Note that the template automatically displays " ed." after this field, so edition=2nd produces "2nd ed.".

series: When the book is part of a series of publications

volume: For one book published in several volumes. However, this template displays the text in this field in bold type after the title and series parameters. An alternative is to include the volume information in the title field after the main title (see example below). (NB: there is a separate {{Cite encyclopedia}} template).

date: Full date of publication edition being referenced, in the same format as other dates in citations in the same article. Must not be wikilinked.

OR: year: Year of publication edition being referenced

month: Name of the month of publication. If you also have the day, use date instead. Must not be wikilinked.

origyear: Original publication year, for display alongside the date or year. For clarity, please supply specifics, for instance origyear=First published 1859 or origyear=Composed 1904. This parameter only displays if a there is a value for year or date.

publisher: Publisher should not include corporate designation such as "Ltd" or "Inc".

location: Geographical place of publication.

language: The language the book is written in, if it is not English. The template automatically puts parentheses around the text and adds "in" before the language name.

isbn: International Standard Book Number such as 1-111-22222-9. Note that |isbn=, like all field names, must be in lowercase. The field must not be wikilinked as the template automatically creates a link. The template is insensitive to formatting so an ISBN number without dashes ("-") may be used (e.g. |isbn=1111222229). Please use the 13-digit ISBN where possible; this can normally be found beneath the barcode as a number beginning 978 or 979. For books with the older SBN system (9 digits), use this field but prefix the number with a zero; thus SBN 902888 45 5 should be entered as |isbn=0 902888 45 5.

doi: A digital object identifier such as 10.1016/j.coi.2004.08.001. The field must not be wikilinked as the template automatically creates a link.

bibcode: A nineteen character Bibcode identifier. The field must not be wikilinked as the template automatically creates a link.

id: A unique identifier, 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 {{ASIN}} or {{ISSN}}. (Use one of the more specialized parameters if possible; they are linked automatically. In other words, don't use |id=ISBN 1-111-22222-9 anymore; use |isbn=1-111-22222-9. If the book has a SBN but not an ISBN, see |isbn=.)

pages or page: These parameters are for listing the pages relevant to the citation, not the total number of pages in the book. "|pages= 5–7" produces "pp. 5–7", while "|page= 5" produces "p. 5". The "pp." notation indicating multiple pages, and "p." notation indicating a single page, are placed automatically when you choose between the plural (pages) or singular (page) form of the parameter.

nopp: using "page" or "pages", automatically places the p. or pp. notations. If this is inappropriate—for instance, if page=Front cover, placing any value after nopp (e.g. nopp=y will hide the p. or pp. notation.

chapter (= contribution): The chapter of the book, written in full. Punctuation other than quotes should be included in the value passed to the parameter, e.g. |chapter=Chapter 12: Meet Dick and Jane. produces "Chapter 12: Meet Dick and Jane." ahead of title.

trans_chapter: Acts in the same way as trans_title. The field will be displayed in square brackets within the quotation marks which embrace the chapter field. Use of language parameter is recommended if this parameter is used.

chapterurl: URL of an individual chapter of online book. Should be at the same site as url, if any.

quote: Relevant quote from the book.

ref: ID for anchor. By default, no anchor is generated. The ordinary nonempty value |ref=ID generates an anchor with the given ID; such a linkable reference can be made the target of wikilinks to full references, especially useful in short citations like shortened notes and parenthetical referencing. The special value |ref=harv generates an anchor suitable for the {{harv}} template; see anchors for Harvard referencing templates. See "Wikilinks to full references" in Examples below for using the ref field in citation templates in conjunction with short <ref>...</ref> citations.

laysummary: Link to a non-technical summary (or review) of the book

laydate: Date of summary

separator: The separator to use in lists of authors, editors, etc. Defaults to ".", but "," may be useful also.

postscript: The closing punctuation for the citation. Defaults to ".", but "" may be useful also.

lastauthoramp: The separator to use between the last two names in lists of authors. Defaults to "", but "&" may be useful as well.

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=2001-01-01 |pages=100-110 |chapter=Chapter 2: The History Of The Bloggs Family |isbn=1234567890}}

Bloggs, Fred (2001-01-01). "Chapter 2: The History Of The Bloggs Family". in Doe, John. Big Book With Many Chapters and distinct chapter authors. Book Publishers. pp. 100-110. ISBN1234567890.

As mentioned, the bibliographical data of the cited source can be “tagged” by an identifier: this enables the system to “find” the target of the wikilinks. This “tagging” with an identifier can be done by enclosing between <cite id=…>…</cite> tags, but this tool can be superfluous if the bibliographical data are provided with a citation template: the ref field of the chosen citation template must be set to the same name.

Attention must be paid: not all other citation templates support this. In such cases, the service can be achieved also by enclosing the concerned bibliographical item inside <cite id=…>…</cite> tags: also this way, it can feature as a target of Wikilinks to full references. The id attribute of the tag must be set to the same name what we would give to the (lacking) ref field of the citation template.

Note

Note the extra full-stop when the last author ends with an initial, and there is no date:

Invisible, M.. Mysterious book.

We don't know of a practical solution to this — unless there is a way to test the characters of a field?