Template:Cite book: Difference between revisions

Al Piskun (talk | contribs)
Undo revision 1137 by Al Piskun (talk)
Tag: Undo
Al Piskun (talk | contribs)
No edit summary
 
Line 1: Line 1:
<includeonly>{{#if:{{{title|}}}|
<includeonly>{{#if:{{{title|}}}|{{#if:{{{chapter|}}}|"{{#if:{{{url|}}}|[{{{url}}} {{{chapter}}}]|{{{chapter}}}}}". In: |}}{{Citation
{{cite web
| title     = {{{title|}}}
| last = {{{last|{{{last1|}}}}}}
| url      = {{#if:{{{chapter|}}}||{{{url|}}}}}
| first = {{{first|{{{first1|}}}}}}
| last      = {{{last|{{{last1|}}}}}}
| author = {{{author|}}}
| first    = {{{first|{{{first1|}}}}}}
| year = {{{year|}}}
| author    = {{{author|}}}
| title = {{{title}}}
| date      = {{{date|{{{year|}}}}}}
| chapter = {{{chapter|}}}
| publisher = {{{publisher|}}}
| editor-last = {{{editor-last|}}}
| pages    = {{{pages|}}}
| editor-first = {{{editor-first|}}}
| doi       = {{{doi|}}}
| publisher = {{{publisher}}}
| isbn     = {{{isbn|}}}
| location = {{{location|}}}
| series = {{{series|}}}
| volume = {{{volume|}}}
| edition = {{{edition|}}}
| pages = {{{pages|}}}
| url = {{{url|}}}
| doi = {{{doi|}}}
| isbn = {{{isbn|}}}
| access-date = {{{access-date|}}}
| access-date = {{{access-date|}}}
}}}}</includeonly><noinclude>
}}{{#if:{{{editor-last|}}}| Edited by {{{editor-last|}}}{{#if:{{{editor-first|}}}|, {{{editor-first|}}}}}.|}}{{#if:{{{series|}}}| ({{{series}}}{{#if:{{{volume|}}}|, vol. {{{volume|}}}|}}).|}}{{#if:{{{edition|}}}| {{{edition}}} ed.|}}{{#if:{{{location|}}}| {{{location}}}.|}}
 
}}</includeonly><noinclude>
This template formats citations for books.
== Template:Cite book ==
 
Cites a printed or electronic book. Calls {{tl|Citation}} for the core fields.
== Usage ==
=== Parameters ===
<pre>
{| class="wikitable"
{{Cite book
! Parameter !! Description !! Example
| last =
|-
| first =
| <code>title</code> || Book title (required) || <code>Distributed Systems Design</code>
| title =
|-
| publisher =
| <code>last</code> / <code>first</code> || Author surname / first name || <code>Smith</code> / <code>John</code>
| year =
|-
| isbn =
| <code>author</code> || Full author name (alternative to last/first) || <code>Smith, John</code>
| pages =
|-
| url =
| <code>date</code> or <code>year</code> || Publication year || <code>2022</code>
| access-date =
|-
}}
| <code>publisher</code> || Publisher || <code>Academic Press</code>
</pre>
|-
 
| <code>location</code> || City of publication || <code>New York</code>
== Example ==
|-
<pre>
| <code>edition</code> || Edition || <code>3rd</code>
{{Cite book
|-
| last = Smith
| <code>series</code> || Series name || <code>Lecture Notes in Computer Science</code>
| first = John
|-
| title = Distributed Systems Design
| <code>volume</code> || Volume number || <code>4</code>
| publisher = Academic Press
|-
| year = 2022
| <code>chapter</code> || Chapter title || <code>Scheduling in BOINC</code>
| isbn = 9781234567890
|-
}}
| <code>pages</code> || Page(s) cited || <code>45–67</code>
</pre>
|-
 
| <code>isbn</code> || ISBN || <code>978-0-12-345678-9</code>
|-
| <code>url</code> || URL (for online editions) || <code><nowiki>https://example.com/book</nowiki></code>
|-
| <code>access-date</code> || Date accessed || <code>2026-05-18</code>
|}
=== Example ===
<pre>{{Cite book |last=Anderson |first=David P. |date=2004 |title=BOINC: A System for Public-Resource Computing and Storage |publisher=IEEE |pages=4–10 |isbn=978-0-7695-2189-6}}</pre>
[[Category:Citation templates]]
</noinclude>
</noinclude>