Template:Cite book/doc: Difference between revisions

From All Skies Encyclopaedia
No edit summary
No edit summary
Line 1: Line 1:
{{}}
{{Documentation subpage}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
{{high-risk| 1000000+ }}
{{csdoc|lua}}
{{csdoc|cs1}}
{{csdoc|lead|books}} When citing an article in a periodical, use {{tl|cite journal}}. For conference papers, use {{tl|cite conference}}. For edited collections, use {{tl|cite encyclopedia}}. For theses, use {{tl|cite thesis}}.


==Usage==
==Usage==

Revision as of 04:20, 17 April 2019

{{}}

Usage

Copy a blank version to use. Almost all parameter names are supported only in lower case (some initialisms, such as |isbn= have upper-case aliases like |ISBN=, which are acceptable for use). Use the "|" (pipe) character between each parameter. Unused parameters may be deleted to avoid clutter in the edit window. Some samples on this documentation page may include the current date. If the date is not current, then purge the page.


Most commonly used parameters in horizontal format

To cite a book with a credited author {{cite book |last= |first= |date= |title= |url= |location= |publisher= |page= |isbn= |author-link= }}

To cite a book with no credited author {{cite book |author=<!--Staff writer(s); no by-line.--> |title= |url= |location= |publisher= |page= |date= |isbn=}}

To cite an online book that has been archived {{cite book |last= |first= |date= |title= |url= |dead-url= |location= |publisher= |isbn= |archive-url= |archive-date=}}

To cite a book written in a foreign language {{cite book |last= |first= |date= |title= |trans-title= |url= |language= |location= |publisher= |isbn=}}

To cite and quote an archived, two-author, foreign language book re-published as a PDF on an information aggregation service requiring a subscription {{cite book |last1= |first1= |last2= |first2= |date= |title= |trans-title= |url= |dead-url= |format= |language= |location= |publisher= |isbn= |archive-url= |archive-date= |via= |subscription= |quote= }}


Most commonly used parameters in vertical format
{{cite book
 |last=
 |first=
 |date=
 |title=
 |url=
 |location=
 |publisher=
 |page= <!-- or pages= -->
 |isbn=
 |author-link= }}


Full parameter set in horizontal format

{{cite book |last1= |first1= |author-link1= |last2= |first2= |author-link2= |last3= |first3= |author-link3= |last4= |first4= |author-link4= |last5= |first5= |author-link5= |display-authors= |author-mask= |last-author-amp= |translator-last1= |translator-first1= |translator-link1= |translator-mask1= |date= |year= |orig-year= |chapter= |script-chapter= |trans-chapter= |chapter-url= |chapter-format= |editor1-last= |editor1-first= |editor1-link= |editor2-last= |editor2-first= |editor2-link= |editor3-last= |editor3-first= |editor3-link= |editor4-last= |editor4-first= |editor4-link= |editor5-last= |editor5-first= |editor5-link= |display-editors= |title= |script-title= |trans-title= |url= |dead-url= |format= |type= |series= |language= |volume= |issue= |others= |edition= |location= |publisher= |publication-date= |page= |pages= |at= |nopp= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |archive-url= |archive-date= |access-date= |via= |registration= |subscription= |lay-summary= |lay-source= |lay-date= |quote= |name-list-format= |mode= |postscript= |ref= }}

Full parameter set in vertical format
Parameters Prerequisites Brief instructions / notes Vertical list
last1 may also use "last"; for additional authors, "last2", "last3", etc.
{{cite book
|last1=
|first1=
|author-link1=
|author-mask1=
|last2=
|first2=
|display-authors=
|last-author-amp=
|translator-last1=
|translator-first1=
|translator-link1=
|translator-mask1=
|date=
|year=
|orig-year=
|chapter=
|script-chapter=
|trans-chapter=
|chapter-url=
|chapter-format=
|editor1-last=
|editor1-first=
|editor1-link=
|editor1-mask=
|display-editors=
|title=
|script-title=
|trans-title=
|url=
|dead-url=
|format=
|type=
|series=
|language=
|volume=
|issue=
|others=
|edition=
|location=
|publisher=
|publication-date=
|page=
|pages=
|at=
|nopp=
|arxiv=
|asin=
|bibcode=
|doi=
|doi-broken-date=
|isbn=
|issn=
|jfm=
|jstor=
|lccn=
|mr=
|oclc=
|ol=
|osti=
|pmc=
|pmid=
|rfc=
|ssrn=
|zbl=
|id=
|archive-url=
|archive-date=
|access-date=
|via=
|registration=
|subscription=
|lay-summary=
|lay-source=
|lay-date=
|quote=
|name-list-format=
|mode=
|postscript=
|ref=
}}
first1 last or last1 may also use "first"; for additional authors, "first2", "first3", etc.
author-link1 last or last1 may also use "author-link"
author-mask1 last or last1 may also use "author-mask"
last2 last1
first2 last2
display-authors last or last1
last-author-amp last or last1
translator-last1 may also use "translator-last"; for additional translators, "translator-last2, etc.
translator-first1 translator-last or translator-last1
translator-link1 translator-last or translator-last1
translator-mask1 translator-last or translator-last1
date
year
orig-year year or date
chapter This should be the title of the chapter cited. Do not wikilink "chapter" if "chapterurl" is provided
script-chapter
trans-chapter chapter or script-chapter
chapter-url chapter or script-chapter
chapter-format chapter-url
editor1-last may also use "editor-last"
editor1-first editor1-last may also use 'editor-first"
editor1-link editor1-last may also use "editor-link"
editor1-mask editor1-last
display-editors
title
script-title
trans-title title or script-title
url title or script-title
dead-url
format url
type
series
language
volume
issue
others
edition
location publisher
publisher
publication-date
page choose one: "page", "pages", or "at"
pages choose one: "page", "pages", or "at". Use when content on multiple pages supports the article text.
at choose one: "page", "pages", or "at"
nopp page or pages set nopp to "yes" to suppress the "p." or "pp." before page numbers
arxiv
asin
bibcode
doi
doi-broken-date doi
isbn always include ISBN, if one has been assigned
issn
jfm
jstor
lccn
mr
oclc
ol
osti
pmc
pmid
rfc
ssrn
zbl
id
archive-url archive-date, url
archive-date archive-url
access-date url
via
registration
subscription
lay-summary
lay-source lay-summary
lay-date lay-summary
quote
name-list-format vanc to emulate Vancouver style
mode cs1 or cs2
postscript
ref
If a field name is listed in the Prerequisites column it is a prerequisite for the field to the left.

Examples

Title

  • {{cite book |title=Mysterious Book}}
    Lua error: bad argument #1 to "get" (not a valid title).

Title and year

  • {{cite book |title=Mysterious Book |date=1901}}
    Lua error: bad argument #1 to "get" (not a valid title).

Basic usage (single author)

  • {{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs}}
    Lua error: bad argument #1 to "get" (not a valid title).

Basic usage (two authors)

  • {{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Bloggs |first2=Fred |authorlink2=Fred Bloggs |date=1974 |title=Book of Bloggs}}
    Lua error: bad argument #1 to "get" (not a valid title).

Basic usage with url (and access-date) and edition

  • {{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |access-date=February 17, 2006}}
    Lua error: bad argument #1 to "get" (not a valid title).

Citing a chapter in a book with different authors for different chapters and an editor

  • {{cite book |last=Bloggs |first=Fred |editor-last=Doe |editor-first=John |title=Big Compilation Book with Many Chapters and Distinct Chapter Authors |publisher=Book Publishers |date=January 1, 2001 |pages=100–110 |chapter=Chapter 2: The History of the Bloggs Family |isbn=978-1-234-56789-7}}
    Lua error: bad argument #1 to "get" (not a valid title).

Citing a chapter in a book with two joint authors and an editor

  • {{cite book |last1=Bloggs |first1=Joe |last2=Egg |first2=Fred |editor-last=Doe |editor-first=John |title=Big Book with Many Chapters and Two Co-authors |publisher=Book Publishers |date=January 1, 2001 |orig-year=1st pub. 1986 |pages=100–110 |chapter=Chapter 6: Getting There |chapterurl=http://en.wikipedia.org/ |isbn=978-1-234-56789-7 |lastauthoramp=y}}
    Lua error: bad argument #1 to "get" (not a valid title).

Three authors, title with a piped wikilink, edition

  • {{cite book |last1=Bloggs |first1=Joe |authorlink1=Joe Bloggs |last2=Smith |first2=John |last3=Smythe |first3=Jim |title=[[A Thousand Acres|1000 Acres]] |edition=2nd}}
    Lua error: bad argument #1 to "get" (not a valid title).

Complex usage showing effect of using volume parameter and lastauthoramp parameter (without volume and lastauthoramp)

  • {{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East. Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval & Military Press |location=Uckfield, UK |date=2007 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3}}
    Lua error: bad argument #1 to "get" (not a valid title).

Complex usage showing effect of using volume parameter and lastauthoramp parameter (with volume and lastauthoramp)

  • {{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East |volume=Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval & Military Press |location=Uckfield, UK |date=2007 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |lastauthoramp=y}}
    Lua error: bad argument #1 to "get" (not a valid title).

Date without day, wikilinked title and publisher, pages, edition, location

  • {{cite book |last1=Cordell |first1=Bruce R. |last2=Grubb |first2=Jeff |last3=Noonan |first3=David |date=September 2001 |title=[[Manual of the Planes]] |edition=3rd |publisher=Wizards of the Coast |location=Renton, Washington |isbn=0-7869-1850-0 |pages=134–137}}
    Lua error: bad argument #1 to "get" (not a valid title).

Other language

  • {{cite book |last=Bloggs |first=Jean |date=1974 |title=Livre de Bloggs |edition=1st |language=French |trans-title=Book of Bloggs |url=http://en.wikipedia.org/ |access-date=February 17, 2006}}
    Lua error: bad argument #1 to "get" (not a valid title).

Using a DOI

  • {{cite book |last=Mumford |first=David |authorlink=David Mumford |date=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}}
    Lua error: bad argument #1 to "get" (not a valid title).

Using author-mask parameter

  • {{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval & Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |lastauthoramp=y}}
    Lua error: bad argument #1 to "get" (not a valid title).
  • {{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Flynn |first2=Captain F.C. (R.N.) |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=The Mediterranean and Middle East, Volume II: The Germans Come to the Help of Their Ally (1941) |publisher=Naval & Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-66-1 |lastauthoramp=y |author-mask=2}}
    Lua error: bad argument #1 to "get" (not a valid title).
  • {{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Flynn |first2=Captain F.C. (R.N.) |last3=Molony |first3=Brigadier C.J.C. |last4=Gleave |first4=Group Captain T.P. |editor-last=Butler |editor-first=Sir James |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=The Mediterranean and Middle East, Volume III: British Fortunes Reach Their Lowest Ebb (September 1941 to September 1942) |publisher=Naval & Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-67-X |lastauthoramp=y |author-mask=2}}
    Lua error: bad argument #1 to "get" (not a valid title).

Using display-authors parameter

  • {{cite book |last1=Playfair |first1=Major-General I.S.O. |authorlink1=Ian Stanley Ord Playfair |last2=Stitt |first2=Commander G.M.S. |last3=Molony |first3=Brigadier C.J.C. |last4=Toomer |first4=Air Vice-Marshal S.E. |editor-last=Butler |editor-first=J.R.M. |editor-link=James Ramsay Montagu Butler |series=History of the Second World War, United Kingdom Military Series |title=Mediterranean and Middle East Volume I: The Early Successes Against Italy (to May 1941) |publisher=Naval & Military Press |location=Uckfield, UK |date=2004 |orig-year=1st pub. [[HMSO]]:1954 |isbn=1-845740-65-3 |display-authors=1}}
    Lua error: bad argument #1 to "get" (not a valid title).

{{}}

TemplateData

See Template:Cite book/TemplateData.

See also

This template produces COinS metadata; see COinS in Wikipedia for background information.