Jump to content

Template:Cite book: Difference between revisions

From PhantomWiki
create
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
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>
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>
{
    "description": "",
    "params": {
        "author": {
            "label": "Author",
            "description": "Name of the author",
            "type": "line",
            "suggested": true
        },
        "title": {
            "label": "Book title",
            "description": "Title of the book",
            "type": "line",
            "required": true
        },
        "edition": {
            "label": "Edition",
            "description": "Edition of the book",
            "type": "line"
        },
        "location": {
            "label": "Publication place",
            "description": "Place where the book was published",
            "type": "line"
        },
        "publisher": {
            "label": "Publisher",
            "description": "Name of the publisher",
            "type": "line",
            "suggested": true
        },
        "year": {
            "label": "Year",
            "description": "Year of publication",
            "type": "number",
            "suggested": true
        },
        "isbn": {
            "label": "ISBN",
            "description": "ISBN of the book",
            "type": "line"
        },
        "page": {
            "label": "Page",
            "description": "Single page being cited",
            "type": "line"
        },
        "pages": {
            "label": "Pages",
            "description": "Range of pages being cited",
            "type": "line"
        }
    }
}
</templatedata>
== See also ==
* {{Tl|Cite Catalogue}} — official stamp catalogues where the publication itself has been consulted.
* {{Tl|Cite magazine}} — articles in magazines, journals and other periodicals.
* {{Tl|Cite news}} — newspaper articles and reports from news organisations, including online news.
* {{Tl|Cite web}} — webpages and other online sources.
* {{Tl|Cite}} — other sources, including information cards, leaflets, certificates and correspondence.
Use {{Tl|Cite book}} for books, including digitised copies. For official stamp catalogues, use {{Tl|Cite Catalogue}} to record catalogue numbers and the relevant country or section.
[[Category:Citation templates]]
</noinclude>

Latest revision as of 16:47, 20 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

See also

  • {{Cite Catalogue}} — official stamp catalogues where the publication itself has been consulted.
  • {{Cite magazine}} — articles in magazines, journals and other periodicals.
  • {{Cite news}} — newspaper articles and reports from news organisations, including online news.
  • {{Cite web}} — webpages and other online sources.
  • {{Cite}} — other sources, including information cards, leaflets, certificates and correspondence.

Use {{Cite book}} for books, including digitised copies. For official stamp catalogues, use {{Cite Catalogue}} to record catalogue numbers and the relevant country or section.