Template:Cite book: Difference between revisions

From BOINC Projects
Jump to navigation Jump to search
Al Piskun (talk | contribs)
No edit summary
Al Piskun (talk | contribs)
Undo revision 1137 by Al Piskun (talk)
Tag: Undo
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{title|}}}|
{{#if:{{{title|}}}|
{{cite web
| last = {{{last|{{{last1|}}}}}}
| first = {{{first|{{{first1|}}}}}}
| author = {{{author|}}}
| year = {{{year|}}}
| title = {{{title}}}
| chapter = {{{chapter|}}}
| editor-last = {{{editor-last|}}}
| editor-first = {{{editor-first|}}}
| publisher = {{{publisher}}}
| location = {{{location|}}}
| series = {{{series|}}}
| volume = {{{volume|}}}
| edition = {{{edition|}}}
| pages = {{{pages|}}}
| url = {{{url|}}}
| doi = {{{doi|}}}
| isbn = {{{isbn|}}}
| access-date = {{{access-date|}}}
}}}}</includeonly><noinclude>


{{#if:{{{last|{{{last1|}}}}}|
This template formats citations for books.
{{{last|{{{last1|}}}}}}{{#if:{{{first|{{{first1|}}}}}}|, {{{first|{{{first1|}}}}}}}}.
 
== Usage ==
<pre>
{{Cite book
| last =
| first =
| title =
| publisher =
| year =
| isbn =
| pages =
| url =
| access-date =
}}
}}
</pre>


''{{{title}}}''.
== Example ==
 
<pre>
{{#if:{{{chapter|}}}|Chapter: {{{chapter}}}. }}
{{Cite book
 
| last = Smith
{{#if:{{{editor-last|}}}|
| first = John
Edited by {{{editor-first|}}} {{{editor-last}}}.
| title = Distributed Systems Design
| publisher = Academic Press
| year = 2022
| isbn = 9781234567890
}}
}}
</pre>


{{#if:{{{publisher|}}}|{{{publisher}}}. }}
</noinclude>
{{#if:{{{location|}}}|{{{location}}}. }}
 
{{#if:{{{series|}}}|Series: {{{series}}}. }}
{{#if:{{{volume|}}}|Volume {{{volume}}}. }}
{{#if:{{{edition|}}}|{{{edition}}} edition. }}
 
{{#if:{{{pages|}}}|pp. {{{pages}}}. }}
 
{{#if:{{{year|}}}|({{{year}}}). }}
 
{{#if:{{{url|}}}|[{{{url}}} link] }}
{{#if:{{{doi|}}}|DOI: {{{doi}}}. }}
{{#if:{{{isbn|}}}|ISBN {{{isbn}}}. }}
 
}}
</includeonly>

Revision as of 02:57, 20 May 2026


This template formats citations for books.

Usage

{{Cite book
| last =
| first =
| title =
| publisher =
| year =
| isbn =
| pages =
| url =
| access-date =
}}

Example

{{Cite book
| last = Smith
| first = John
| title = Distributed Systems Design
| publisher = Academic Press
| year = 2022
| isbn = 9781234567890
}}