Template:Cite book: Difference between revisions
(Add to 'Citation templates' category.) |
(Introduce 'quote' parameter for the inclusion of quotes.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
''{{{book-nolink|[[{{{book-page|{{{book}}}}}}|{{{book}}}]]}}}''{{#if:{{{type|}}}|. {{{type}}}}}, {{{at|{{#if:{{{pages|}}}|pages {{{pages}}}|page {{{page}}}}}}}}.<noinclude>{{documentation}} [[Category:Citation templates]]</noinclude> | ''{{{book-nolink|[[{{{book-page|{{{book}}}}}}|{{{book}}}]]}}}''{{#if:{{{type|}}}|. {{{type}}}}}{{#if:{{{at|}}}|, {{{at}}}|{{#if:{{{pages|}}}|, pages {{{pages}}}|{{#if:{{{page|}}}|, page {{{page}}}|}}}}}}.{{#if:{{{quote|}}}| "{{{quote}}}"}}<noinclude>{{documentation}} [[Category:Citation templates]]</noinclude> |
Latest revision as of 07:17, 3 December 2024
[[{{{book}}}|{{{book}}}]].
This template is a way to ensure that books are cited using the appropriate citation formatting.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Book title | book | The title of the book. A wikilink to the book's page is generated automatically
| String | required |
Book page name | book-page | The name of the book's page on the wiki. Use if the title doesn't match the page name exactly.
| Page name | optional |
Book title (no automatic wikilink) | book-nolink | The title of the book. May contain arbitrary wiki markup; no automatic wikilink is added.
| Content | optional |
Book format | type | The format of the book that is being referenced.
| String | suggested |
Page number | page | The page number being cited. When citing multiple pages, use the pages parameter. When not citing by page number(s), use the at parameter.
| String | suggested |
Page numbers | pages | The page numbers being cited. When citing a single page, use the page parameter. When not citing by page number(s), use the at parameter.
| String | suggested |
Location | at | The location of the text being cited. Use if no page numbers are available (e. g. for ebooks) or the location needs a more complex description than just page numbers.
| String | optional |
Quote | quote | An optional quote from the source material that is relevant to the fact or claim being cited. | String | optional |
The above documentation is transcluded from Template:Cite book/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |