Jump to content

Template:Cite book: Difference between revisions

From PhantomWiki
add templatedate
update
Line 1: Line 1:
<includeonly>{{#if:{{{author|}}}|{{{author}}}. |}}''{{{title|Untitled book}}}''{{#if:{{{edition|}}}|, {{{edition}}} edition|}}{{#if:{{{location|}}}|. {{{location}}}:|.}} {{{publisher|Publisher not specified}}}, {{{year|n.d.}}}{{#if:{{{isbn|}}}|. ISBN {{{isbn}}}|}}{{#if:{{{page|}}}|, p. {{{page}}}|}}{{#if:{{{pages|}}}|, pp. {{{pages}}}|}}.</includeonly>
<includeonly>{{#if:{{{author|}}}|{{{author}}}. |}}''{{{title|Untitled book}}}''{{#if:{{{edition|}}}|, {{{edition}}} edition|}}{{#if:{{{location|}}}|. {{{location}}}:|.}} {{{publisher|Publisher not specified}}}, {{{year|n.d.}}}{{#if:{{{isbn|}}}|. ISBN {{{isbn}}}|}}{{#if:{{{page|}}}|, p. {{{page}}}|}}{{#if:{{{pages|}}}|, pp. {{{pages}}}|}}.</includeonly>
<noinclude>
<noinclude>
This template formats a citation for a book or a specific page or range of pages within a book.
== Usage ==
<pre>
{{Cite book
|author=John Smith
|title=The Complete Guide to Isle of Man Stamps
|edition=2nd
|location=London
|publisher=Example Publishing
|year=2024
|isbn=978-1-23456-789-0
|page=125
|pages=
}}
</pre>
Use <code>page</code> when citing a single page, or <code>pages</code> when citing a range of pages; leave the unused parameter blank.
<templatedata>
<templatedata>
{
{
     "description": "Formats a citation for a book",
     "description": "",
     "params": {
     "params": {
         "author": {
         "author": {

Revision as of 21:42, 16 September 2026


This template formats a citation for a book or a specific page or range of pages within a book.

Usage

{{Cite book
|author=John Smith
|title=The Complete Guide to Isle of Man Stamps
|edition=2nd
|location=London
|publisher=Example Publishing
|year=2024
|isbn=978-1-23456-789-0
|page=125
|pages=
}}

Use page when citing a single page, or pages when citing a range of pages; leave the unused parameter blank.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Authorauthor

Name of the author

Linesuggested
Book titletitle

Title of the book

Linerequired
Editionedition

Edition of the book

Lineoptional
Publication placelocation

Place where the book was published

Lineoptional
Publisherpublisher

Name of the publisher

Linesuggested
Yearyear

Year of publication

Numbersuggested
ISBNisbn

ISBN of the book

Lineoptional
Pagepage

Single page being cited

Lineoptional
Pagespages

Range of pages being cited

Lineoptional