Template:Cite book: Difference between revisions
Appearance
Created page with "<includeonly><cite type="book" |last = {{{last|}}} |first = {{{first|}}} |author = {{{author|}}} |title = {{{title|}}} |publisher = {{{publisher|}}} |date = {{{date|}}} |isbn = {{{isbn|}}} |page = {{{page|}}} |url = {{{url|}}} |access-date = {{{access-date|}}} /></cite></includeonly> <noinclude> == Documentation == Wraps a <nowiki><cite type="book">…</cite></nowiki> element for <nowiki>`<ref>`</nowiki> use. Usage:..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
''{{{title|}}}''{{#if:{{{author|}}}| – {{{author}}}}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{date|}}}|, {{{date}}}}}{{#if:{{{isbn|}}}|; ISBN {{{isbn}}}}}{{#if:{{{page|}}}|, p. {{{page}}}}}{{#if:{{{url|}}}| – [{{{url}}} link]}}}{{#if:{{{access-date|}}}| (accessed {{{access-date}}})}} | |||
</includeonly> | |||
| | |||
|publisher | |||
|date | |||
|isbn | |||
|page | |||
| | |||
<noinclude> | <noinclude> | ||
== Documentation == | == Documentation == | ||
A minimal citation template for books. | |||
Produces a formatted citation string; wrap it yourself in `<ref>…</ref>`. | |||
=== Parameters === | |||
* '''title''' (required) – title of the book or chapter | |||
* '''author''' – author name(s) | |||
* '''publisher''' – publishing organisation | |||
* '''date''' – publication date (YYYY or YYYY-MM-DD) | |||
* '''isbn''' – ISBN number | |||
* '''page''' – page number or range | |||
* '''url''' – link to online version | |||
* '''access-date''' – date you accessed it (YYYY-MM-DD) | |||
Place | === Usage === | ||
<nowiki><ref>{{Cite book| | Place in your article text at the citation point, wrapping in `<ref>`: | ||
<pre><nowiki> | |||
…some claim here<ref>{{Cite book | |||
|title=Steve Jobs | |||
|author=Walter Isaacson | |||
|publisher=Simon & Schuster | |||
|date=2011 | |||
|isbn=978-1-4516-4853-9 | |||
|page=61 | |||
}}</ref> | |||
</nowiki></pre> | |||
Then, once per page (typically at the bottom), include: | |||
<nowiki><references/></nowiki> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 23:56, 15 May 2025
Documentation
[edit source]A minimal citation template for books. Produces a formatted citation string; wrap it yourself in `[1]`.
Parameters
[edit source]- title (required) – title of the book or chapter
- author – author name(s)
- publisher – publishing organisation
- date – publication date (YYYY or YYYY-MM-DD)
- isbn – ISBN number
- page – page number or range
- url – link to online version
- access-date – date you accessed it (YYYY-MM-DD)
Usage
[edit source]Place in your article text at the citation point, wrapping in `Cite error: Closing </ref> missing for <ref> tag
</nowiki>
Then, once per page (typically at the bottom), include:
<references/>
- ↑ …