Template:Cite book: Difference between revisions

From BOINC Projects
Jump to navigation Jump to search
Al Piskun (talk | contribs)
Created page with "<includeonly>{{#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|}}..."
 
Al Piskun (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{title|}}}|
<includeonly>
{{cite web
{{#if:{{{title|}}}|
| 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>


This template formats citations for books.
{{#if:{{{last|{{{last1|}}}}}|
{{{last|{{{last1|}}}}}}{{#if:{{{first|{{{first1|}}}}}}|, {{{first|{{{first1|}}}}}}}}.  
}}


== Usage ==
''{{{title}}}''.
<pre>
 
{{Cite book
{{#if:{{{chapter|}}}|Chapter: {{{chapter}}}. }}
| last =
 
| first =
{{#if:{{{editor-last|}}}|
| title =
Edited by {{{editor-first|}}} {{{editor-last}}}.
| publisher =
| year =
| isbn =
| pages =
| url =
| access-date =
}}
}}
</pre>


== Example ==
{{#if:{{{publisher|}}}|{{{publisher}}}. }}
<pre>
{{#if:{{{location|}}}|{{{location}}}. }}
{{Cite book
 
| last = Smith
{{#if:{{{series|}}}|Series: {{{series}}}. }}
| first = John
{{#if:{{{volume|}}}|Volume {{{volume}}}. }}
| title = Distributed Systems Design
{{#if:{{{edition|}}}|{{{edition}}} edition. }}
| publisher = Academic Press
 
| year = 2022
{{#if:{{{pages|}}}|pp. {{{pages}}}. }}
| isbn = 9781234567890
 
{{#if:{{{year|}}}|({{{year}}}). }}
 
{{#if:{{{url|}}}|[{{{url}}} link] }}
{{#if:{{{doi|}}}|DOI: {{{doi}}}. }}
{{#if:{{{isbn|}}}|ISBN {{{isbn}}}. }}
 
}}
}}
</pre>
</includeonly>
 
</noinclude>

Revision as of 22:54, 19 May 2026