Template:Cite book: Difference between revisions
Appearance
PhantomSteve (talk | contribs) create |
PhantomSteve (talk | contribs) 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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Author | author | Name of the author | Line | suggested |
| Book title | title | Title of the book | Line | required |
| Edition | edition | Edition of the book | Line | optional |
| Publication place | location | Place where the book was published | Line | optional |
| Publisher | publisher | Name of the publisher | Line | suggested |
| Year | year | Year of publication | Number | suggested |
| ISBN | isbn | ISBN of the book | Line | optional |
| Page | page | Single page being cited | Line | optional |
| Pages | pages | Range of pages being cited | Line | optional |