Template:Cite book: Difference between revisions

Al Piskun (talk | contribs)
No edit summary
Al Piskun (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{title|}}}|{{#if:{{{chapter|}}}|"{{#if:{{{url|}}}|[{{{url}}} {{{chapter}}}]|{{{chapter}}}}}". In: |}}{{Citation
{{#if:{{{title|}}}|
| title    = {{{title|}}}
 
| url      = {{#if:{{{chapter|}}}||{{{url|}}}}}
{{#if:{{{last|{{{last1|}}}}}|
| last      = {{{last|{{{last1|}}}}}}
{{{last|{{{last1|}}}}}}{{#if:{{{first|{{{first1|}}}}}}|, {{{first|{{{first1|}}}}}}}}.  
| first    = {{{first|{{{first1|}}}}}}
}}
| author    = {{{author|}}}
 
| date      = {{{date|{{{year|}}}}}}
''{{{title}}}''.
| publisher = {{{publisher|}}}
 
| pages    = {{{pages|}}}
{{#if:{{{chapter|}}}|Chapter: {{{chapter}}}. }}
| doi      = {{{doi|}}}
 
| isbn      = {{{isbn|}}}
{{#if:{{{editor-last|}}}|
| access-date = {{{access-date|}}}
Edited by {{{editor-first|}}} {{{editor-last}}}.
}}{{#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>
 
== Template:Cite book ==
{{#if:{{{publisher|}}}|{{{publisher}}}. }}
Cites a printed or electronic book. Calls {{tl|Citation}} for the core fields.
{{#if:{{{location|}}}|{{{location}}}. }}
=== Parameters ===
 
{| class="wikitable"
{{#if:{{{series|}}}|Series: {{{series}}}. }}
! Parameter !! Description !! Example
{{#if:{{{volume|}}}|Volume {{{volume}}}. }}
|-
{{#if:{{{edition|}}}|{{{edition}}} edition. }}
| <code>title</code> || Book title (required) || <code>Distributed Systems Design</code>
 
|-
{{#if:{{{pages|}}}|pp. {{{pages}}}. }}
| <code>last</code> / <code>first</code> || Author surname / first name || <code>Smith</code> / <code>John</code>
 
|-
{{#if:{{{year|}}}|({{{year}}}). }}
| <code>author</code> || Full author name (alternative to last/first) || <code>Smith, John</code>
 
|-
{{#if:{{{url|}}}|[{{{url}}} link] }}
| <code>date</code> or <code>year</code> || Publication year || <code>2022</code>
{{#if:{{{doi|}}}|DOI: {{{doi}}}. }}
|-
{{#if:{{{isbn|}}}|ISBN {{{isbn}}}. }}
| <code>publisher</code> || Publisher || <code>Academic Press</code>
 
|-
}}
| <code>location</code> || City of publication || <code>New York</code>
</includeonly>
|-
| <code>edition</code> || Edition || <code>3rd</code>
|-
| <code>series</code> || Series name || <code>Lecture Notes in Computer Science</code>
|-
| <code>volume</code> || Volume number || <code>4</code>
|-
| <code>chapter</code> || Chapter title || <code>Scheduling in BOINC</code>
|-
| <code>pages</code> || Page(s) cited || <code>45–67</code>
|-
| <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>