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

From Pathfinder Wiki
 
(Blanked the page)
(65 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{documentation subpage}}</noinclude><!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
{{important|1=Please ensure that you <span class=plainlinks>[http://en.wikipedia.org/w/index.php?title=Template:Cite_book/doc&action=edit update the documentation]</span> when adding functionality to or removing functionality from this template.}}
 
This is balls:
 
|doi=
 
|bibcode=
 
|id=
 
|page=
 
|pages=
 
|nopp=
 
|chapter=
 
|chapterurl=
 
|quote=
 
|ref=
 
|laysummary=
 
|laydate=
 
|separator=
 
|postscript=
 
|lastauthoramp=
 
}}</pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
 
&nbsp;
 
&nbsp;
 
last
 
last
 
last 
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
editorn-last
 
editor or editor-last
 
editorn or editorn-last
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
url
 
url
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
year or date
 
&nbsp;
 
year
 
&nbsp;
 
publisher
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
page or pages
 
&nbsp;
 
chapter
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
laysummary
 
&nbsp;
 
&nbsp;
 
coauthors or >1 lastn
 
&nbsp;</pre>
 
| style="vertical-align:top;padding:1ex;" |<pre>
 
&nbsp;
 
(no wikilink)
 
(no wikilink)
 
&nbsp;
 
alternative to first2, last2...first9, last9
 
(no wikilink). n=1 through 9
 
&nbsp;
 
n=1 through 4
 
n=1 through 4
 
n=1 through 4
 
n=1 through 4
 
n=1 through 4
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
†preferred (no wikilink)
 
&nbsp;
 
&nbsp;alternative to date
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
hides automatic 'p' or 'pp'.
 
&Dagger;(no wikilink)
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;
 
&nbsp;</pre>
 
  
|}
 
 
† This is the preferred field with its alternates listed below.
 
 
&Dagger; If '''chapterurl''' is provided then '''chapter''' can not have wikilinks.
 
 
==Fields==
 
===Wikilinks===
 
Most fields can be wikilinked (i.e. ''title'' = <nowiki>[[book article|book title]]</nowiki>), but should generally only be linked to an existing Wikipedia article. Any wikilinked field '''must not''' contain any brackets apart from normal round brackets <code>()</code> &mdash; don't use <code><nowiki><>[]{}</nowiki></code>.
 
 
===Description of fields===
 
====<small>Syntax (for the technical-minded)</small>====
 
<div style="font-size: 90%;">
 
Nested fields either rely on their parent fields, or replace them:
 
*''parent''
 
**''child'' &mdash; may be used '''with''' ''parent'' (and is ignored if ''parent'' is not used)
 
**OR:  ''child2'' &mdash; may be used '''instead''' of ''parent'' (and is ignored if ''parent'' is used)
 
</div>
 
 
====Description====
 
*'''last''': Surname of author. Don't wikilink (use ''authorlink'' instead).
 
**'''first''': First name(s) of author, including title(s) (e.g. ''Firstname Middlename'' or ''Firstname M.'' or ''Dr. Firstname M., Snr.''). Don't wikilink (use ''authorlink'' instead).
 
***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).
 
**'''authorlink''': 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".
 
**'''coauthors''': Full name of additional author or authors, separated by ", " (e.g. ''Joe Bloggs, John F. Kennedy, H. R. Dent'').
 
***Whether the surname of the co-authors goes first or last is dependent on the citation style (see the [[#Citation_styles|citation style]] section below) preferred.
 
*OR: '''author''': Full name of author, preferably surname first. (deprecated)
 
*OR: for multiple authors, use the fields '''first1''', '''last1''', ...,<b>first''n'', last''n''</b> 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). 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.
 
*OR: alternatively '''editor-first''' and '''editor-last''' can be used.
 
*OR: for multiple editors up to four in number, use the fields '''editor1-first''', '''editor1-last''', ...,<b>editor''n''-first, editor''n''-last</b> to 'correctly' record all the information about the book.
 
**'''editor-link''' or '''editor1-link'''...<b>editor''n''-link</b> is used in the same way as "authorlink".
 
**The "editor" field and its alternates should only be used when the cited author(s) and the book editor(s) are different. If the whole book is cited, instead of a specific part, use the "author" fields (possibly with extra "(ed.)" instead)
 
*'''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.''''' Can be wikilinked '''only''' to an existing Wikipedia article. Do not use italics.
 
*'''url''': URL of an online location where the book can be found. Cannot be used if you wikilinked ''title''. If applicable, can point to the specific page(s) referenced.
 
**'''format''': Format, e.g. PDF. HTML implied if not specified.
 
**'''accessdate''': Full date when url was accessed. '''Required when ''url'' field is used.''' Must not be wikilinked.
 
*'''edition''': When the book has more than one edition. ''e.g.:'' "2nd." (note that " ed." is placed after this field, so <code>edition=2nd</code> 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 {{tl|Cite encyclopedia}} template).
 
*'''date''': Full date of publication edition being referenced, in the same format as the main text of the article. Must not be wikilinked.
 
*OR:  '''year''': Year of publication edition being referenced, and '''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 specify as much information as possible, for instance "First published 1859" or "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.
 
*'''oclc''': [[Online Computer Library Center]] ID number, such as ''3185581''
 
*'''doi''': A [[digital object identifier]] such as ''<nowiki>10.1016/j.coi.2004.08.001</nowiki>''.
 
*'''bibcode''': A nineteen character [[Bibcode]] identifier.
 
*'''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 {{tl|ASIN}} or {{tl|ISSN}}.  (Use one of the more specialized parameters if possible; they are linked automatically.  In other words, don't use ''<nowiki>id = ISBN 1-111-22222-9</nowiki>'' anymore.  Use ''isbn = 1-111-22222-9''.)
 
*'''pages''' or '''page''': "<code>|pages= 5–7</code>" produces pp. 5–7, while "<code>|page= 5</code>" 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. These parameters are for listing the pages relevant to the citation, ''not'' the total number of pages in the book.
 
**'''nopp''': using "page" or "pages", automatically places the p. or pp. notations. If this is inappropriate—for instance, if <code>page=Front cover</code>, placing any value after <code>nopp</code> will hide the p. or pp. notation.
 
*'''chapter''': 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 = Meet Dick and Jane.'' produces "Meet Dick and Jane." ahead of ''title''.
 
**'''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''': use this parameter to make the reference linkable. The variable is placed after the # in a hyperlink (the [[fragment identifier]]). Such a linkable reference can be made the target of [[Wikipedia:Citing sources/Further considerations#Wikilinks to full_references|wikilinks to full references]], especially useful in short citations like [[Wikipedia:Citing sources#Shortened footnotes|shortened notes]] and [[Wikipedia:Author-date referencing|author-date referencing]]. See an [[#Examples|example]] for using ref field in citation templates below.
 
*'''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 "&amp;" may be useful also.
 
 
==Examples==
 
;Just a title:
 
:<code><nowiki>* {{cite book | title=Mysterious book }}</nowiki></code>
 
 
:*{{cite book | title = Mysterious book }}
 
 
;Year and title:
 
:<code><nowiki>* {{cite book | title=Mysterious book | year=1901 }}</nowiki></code>
 
 
:*{{cite book | title = Mysterious book | year = 1901 }}
 
 
;Basic usage:
 
:<code><nowiki>* {{cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}</nowiki></code>
 
 
:*{{cite book | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
 
 
;Basic usage with url:
 
:<code><nowiki>* {{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs | edition=1st | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}</nowiki></code>
 
 
:*{{cite book | last=Bloggs | first=Joe | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs | edition=1st | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}
 
 
;Three authors, title with a piped wikilink, edition
 
:<code><nowiki>* {{cite book | last1=Bloggs | first1=Joe | authorlink=Joe Bloggs | first2=John | last2=Smith | first3=Jim | last3=Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd }}</nowiki></code>
 
 
:*{{cite book | last1=Bloggs | first1=Joe | authorlink1=Joe Bloggs | first2=John | last2=Smith | first3=Jim | last3=Smythe | title=[[A Thousand Acres|1000 Acres]] | edition=2nd}}
 
 
;Complex usage showing effect of using volume parameter
 
:Without volume parameter:
 
:<code><nowiki>*{{cite book|first1=Major-General I.S.O.| last1=Playfair| authorlink1=Ian Stanley Ord Playfair| first2=Commander G.M.S| last2=Stitt| first3=Brigadier C.J.C.| last3=Molony| first4=Air Vice-Marshall S.E.| last4=Toomer| editor-first=J.R.M| editor-last=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|year=2007| origyear=1st. pub. [[HMSO]]:1954| isbn=1-845740-65-3|lastauthoramp=y}}</nowiki></code>
 
:*{{cite book|first1=Major-General I.S.O.| last1=Playfair| authorlink1=Ian Stanley Ord Playfair| first2=Commander G.M.S| last2=Stitt| first3=Brigadier C.J.C.| last3=Molony| first4=Air Vice-Marshall S.E.| last4=Toomer| editor-first=J.R.M| editor-last=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|year=2007| origyear=1st. pub. [[HMSO]]:1954| isbn=1-845740-65-3|lastauthoramp=y}}
 
 
:With volume parameter:
 
:<code><nowiki>*{{cite book|first1=Major-General I.S.O.| last1=Playfair| authorlink1=Ian Stanley Ord Playfair| first2=Commander G.M.S| last2=Stitt| first3=Brigadier C.J.C.| last3=Molony| first4=Air Vice-Marshall S.E.| last4=Toomer| editor-first=J.R.M| editor-last=Butler| 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|year=2007| origyear=1st. pub. [[HMSO]]:1954| isbn=1-845740-65-3|lastauthoramp=y}}</nowiki></code>
 
*{{cite book|first1=Major-General I.S.O.| last1=Playfair| authorlink1=Ian Stanley Ord Playfair| first2=Commander G.M.S| last2=Stitt| first3=Brigadier C.J.C.| last3=Molony| first4=Air Vice-Marshall S.E.| last4=Toomer| editor-first=J.R.M| editor-last=Butler| 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|year=2007| origyear=1st. pub. [[HMSO]]:1954| isbn=1-845740-65-3|lastauthoramp=y}}
 
 
;Date without day, wikilinked title and publisher, id, pages, location
 
:<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= 134-137 }}</nowiki></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= 134-137}}
 
 
;Other language
 
:<code><nowiki>* {{cite book | last=Bloggs | first=Joe | year=1974 | title=Book of Bloggs | edition=1st | language=German | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}</nowiki></code>
 
 
:*{{cite book | last=Bloggs | first=Joe | year=1974 | title=Book of Bloggs | edition=1st | language=German | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}
 
 
;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
 
|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
 
|publisher=[[Springer-Verlag]]
 
|doi=10.1007/b62130
 
|isbn=354063293X
 
}}
 
 
;[[Wikipedia:Citing sources/Further_considerations#Wikilinks_to_full_references|Wikilinks to full references]]:
 
: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 <nowiki><cite id=…>…</cite></nowiki> tags, but this tool can be superfluous if the bibliographical data are provided with a citation template: the <tt>ref</tt> field of the chosen citation template must be set to the same name.
 
 
:Wikilink example edit:
 
<blockquote style="border:1px solid DarkSeaGreen; padding:1em; color:#999; background:white">
 
<tt>
 
Shamans may fulfill multiple functions, including healing, curing infertile women, and securing the success of hunts.<span style="color:black;">&lt;ref>'''<nowiki>[</nowiki>[#Mer85|'''Merkur 1985''']]''': 4&lt;/ref></span>
 
<br>
 
<br>
 
<span style="color:#666;">&#61;= Notes ==</span>
 
<br>
 
<br>
 
<span style="color:black;"><nowiki>{{reflist|2}}</nowiki></span>
 
<br>
 
<br>
 
<span style="color:#666;">&#61;= References ==</span>
 
<br>
 
<br>
 
<nowiki>* {{cite book |last=Merkur |first=Daniel |year=1985 |title=Becoming Half Hidden: Shamanism and Initiation among the Inuit |publisher=Almqvist & Wiksell |location=Stockholm |isbn=91-22-00752-0</nowiki> '''<font color=red>|ref=Mer85</font>'''<nowiki>}}</nowiki>
 
</tt>
 
</blockquote>
 
 
:Example rendered result:
 
<blockquote style="border:1px solid #999; padding:1em; background:white">
 
Shamans may fulfill multiple functions, including healing, curing infertile women, and securing the success of hunts.<sup id="shaman_function" class="reference">[[#Mer85_4|[1]]]</sup>
 
<br>
 
<br>
 
<font size=3>
 
<b>
 
Notes
 
</b>
 
</font>
 
----
 
<div class="references-small" style="-moz-column-count:2; -webkit-column-count:2; column-count:2;">
 
<ol class="references">
 
<li id="Mer85_4">
 
<b>
 
[[#shaman_function|^]]
 
</b>
 
[[#Mer85|Merkur 1985]]: 4
 
</li>
 
</ol>
 
</div>
 
<br>
 
<font size=3><b>References</b></font>
 
----
 
* {{cite book |last=Merkur |first=Daniel |year=1985 |title=Becoming Half Hidden: Shamanism and Initiation among the Inuit |publisher=Almqvist & Wiksell |location=Stockholm |isbn=91-22-00752-0 |ref=Mer85}}
 
</blockquote>
 
 
: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 <tt><nowiki><cite id=…>…</cite></nowiki></tt> tags: also this way, it can feature as a target of [[Wikipedia:Citing sources/Further considerations#Wikilinks to full_references|Wikilinks to full references]]. The <tt>id</tt> attribute of the tag must be set to the same name what we would give to the (lacking) <tt>ref</tt> field of the citation template.
 
 
==Testing==
 
See [[Template:cite book/regression tests]].
 
 
==Note==
 
Note the extra full-stop when the last author ends with an initial, and there is no date:
 
*{{cite book | last = Invisible | first = M. | title = Mysterious book }}
 
We don't know of a practical solution to this &mdash; unless there is a way to test the characters of a field?
 
 
==Citation styles==
 
Established citation styles for coauthors:
 
 
*[http://www.english.uiuc.edu/cws/wworkshop/writer_resources/citation_styles/mla/mla.htm MLA style]: Last, First and First Last. "If there are more than three authors, you may list only the first author followed by the phrase ''et al''."
 
*[http://www.english.uiuc.edu/cws/wworkshop/writer_resources/citation_styles/apa/apa.htm APA style]: Last, F. & Last, F.
 
*[http://www.liunet.edu/cwis/cwp/library/workshop/citchi.htm Chicago Manual of Style]: Last, First, and First Last.
 
*[http://www.liunet.edu/cwis/cwp/library/workshop/cittur.htm Turabian]: same as Chicago Reference List, above.
 
*[http://www.library.uq.edu.au/training/citation/harvard.html Harvard]: Last, F., Last, F. & Last, F.
 
 
==COinS==
 
{{UF-COinS}}
 
 
==Tools==
 
See [[Wikipedia:Citing sources#Tools]] for a list of tools which can help create a reference in the 'cite book' format.
 
 
==See also==
 
*[[Wikipedia:Citing sources]]: Style guide
 
*[[Wikipedia:Citation templates]]: Related templates
 
*[[Wikipedia:WikiProject Wikicite]]
 
*[[:Category:Citation templates]]
 
 
<includeonly>
 
[[Category:Citation templates|{{PAGENAME}}]]
 
[[Category:Book templates|{{PAGENAME}}]]
 
 
[[bg:Шаблон:Cite book]]
 
[[id:Templat:Cite book]]
 
[[ca:Plantilla:Ref-llibre]]
 
[[cs:Šablona:Citace knihy]]
 
[[de:Vorlage:Literatur]]
 
[[el:Πρότυπο:Cite book]]
 
[[es:Plantilla:Cita libro]]
 
[[eo:Ŝablono:Citu libron]]
 
[[eu:Txantiloi:Liburu erreferentzia]]
 
[[fr:Modèle:Ouvrage]]
 
[[ko:틀:서적 인용]]
 
[[ia:Patrono:Cite book]]
 
[[it:Template:Cita libro]]
 
[[hu:Sablon:Cite book]]
 
[[mk:Шаблон:Книга]]
 
[[ja:Template:Cite book]]
 
[[ka:თარგი:Cite book]]
 
[[nl:Template: citeer boek]]
 
[[no:mal:Kilde bok]]
 
[[pms:Template:Cité un lìber]]
 
[[pl:Szablon:Cytuj książkę]]
 
[[pl:Szablon:Cite book]]
 
[[pt:Predefinição:Ref-livro]]
 
[[ro:Format:Cite book]]
 
[[ru:Шаблон:Книга]]
 
[[sk:Šablóna:Cite book]]
 
[[sl:Predloga:Cite book]]
 
[[fi:Malline:Kirjaviite]]
 
[[sv:Mall:Bokref]]
 
[[vi:Tiêu bản:Chú thích sách]]
 
[[zh-yue:Template:引書]]
 
[[zh:Template:Cite book]]
 
</includeonly>
 

Revision as of 11:30, 28 January 2010