Template:Cite book: Difference between revisions

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><cite type="book"
<includeonly>
|last        = {{{last|}}}
''{{{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}}})}}
|first      = {{{first|}}}
</includeonly>
|author      = {{{author|}}}
|title      = {{{title|}}}
|publisher   = {{{publisher|}}}
|date       = {{{date|}}}
|isbn       = {{{isbn|}}}
|page       = {{{page|}}}
|url        = {{{url|}}}
|access-date = {{{access-date|}}}
/></cite></includeonly>
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
Wraps a <nowiki><cite type="book">…</cite></nowiki> element for <nowiki>`<ref>`</nowiki> use.
A minimal citation template for books. 
Produces a formatted citation string; wrap it yourself in `<ref>…</ref>`.


Usage:
=== Parameters ===
<nowiki>{{Cite book
* '''title''' (required) – title of the book or chapter 
|last=
* '''author''' – author name(s) 
|first=
* '''publisher''' – publishing organisation 
|title=…
* '''date''' – publication date (YYYY or YYYY-MM-DD) 
|publisher=…
* '''isbn''' – ISBN number 
|date=…
* '''page''' – page number or range 
|isbn=…
* '''url''' – link to online version 
|page=…
* '''access-date''' – date you accessed it (YYYY-MM-DD)
}}</nowiki>


Place inside:
=== Usage === 
<nowiki><ref>{{Cite book|}}</ref></nowiki>
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>