Jump to content

Template:Cite book: Difference between revisions

From PhantomWiki
create
 
add templatedate
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>
<templatedata>
{
    "description": "Formats a citation for a book",
    "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>
</noinclude>

Revision as of 13:57, 9 September 2026


Formats a citation for a book

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