Template:Citation: 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 1134 by Al Piskun (talk)
Tag: Undo
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{author|{{{last|}}}}}}|{{{last|{{{author|}}}}}}{{#if:{{{first|}}}|, {{{first|}}}|}}. |}}{{#if:{{{date|{{{year|}}}}}}|({{{date|{{{year|}}}}}}}). |}}{{#if:{{{url|}}}|[{{{url}}} {{{title|}}}]|{{{title|}}}}}{{#if:{{{encyclopedia|{{{work|{{{journal|}}}}}}}}}|. ''{{{encyclopedia|{{{work|{{{journal|}}}}}}}}}''|}}{{#if:{{{publisher|}}}|. {{{publisher|}}}|}}{{#if:{{{pages|}}}|. p.&nbsp;{{{pages|}}}|}}{{#if:{{{doi|}}}|. DOI: {{{doi|}}}|}}{{#if:{{{isbn|}}}|. ISBN {{{isbn|}}}|}}{{#if:{{{access-date|{{{accessdate|}}}}}}|. Retrieved {{{access-date|{{{accessdate|}}}}}}}.|.}}</includeonly><noinclude>
{{#if:{{{author|{{{last|}}}}}}|
== Template:Citation ==
{{{author|{{{last|}}}}}}{{#if:{{{first|}}}|, {{{first}}}}}.  
A general-purpose citation template. Used by {{tl|Cite web}}, {{tl|Cite journal}}, {{tl|Cite encyclopedia}}, and others.
}}


{{#if:{{{date|{{{year|}}}}}}|
=== Parameters ===
({{{date|{{{year}}}}}}).
{| class="wikitable"
}}
! Parameter !! Description !! Example
|-
| <code>title</code> || Title of the work (required) || <code>About BOINC Central</code>
|-
| <code>url</code> || URL if online || <code><nowiki>https://boinc.berkeley.edu/central/about.php</nowiki></code>
|-
| <code>author</code> or <code>last</code> || Author surname || <code>Anderson</code>
|-
| <code>first</code> || Author first name || <code>David P.</code>
|-
| <code>date</code> or <code>year</code> || Publication date || <code>2021</code>
|-
| <code>publisher</code> || Publisher name || <code>University of California, Berkeley</code>
|-
| <code>encyclopedia</code> / <code>work</code> / <code>journal</code> || Name of the larger work || <code>Wikipedia</code>
|-
| <code>pages</code> || Page number(s) || <code>12–15</code>
|-
| <code>doi</code> || Digital Object Identifier || <code>10.1000/xyz123</code>
|-
| <code>isbn</code> || ISBN number || <code>978-3-16-148410-0</code>
|-
| <code>access-date</code> || Date URL was accessed || <code>2026-05-18</code>
|}


{{#if:{{{url|}}}|
=== Example output ===
[{{{url}}} {{{title|No title}}}]
<pre>{{Citation |last=Anderson |first=David P. |date=2022 |title=A brief history of BOINC |url=https://continuum-hypothesis.com/boinc_history.php |access-date=2026-05-18}}</pre>
|
Renders as: Anderson, David P.. (2022). [https://continuum-hypothesis.com/boinc_history.php A brief history of BOINC]. Retrieved 2026-05-18.
{{{title|No title}}}
}}


{{#if:{{{encyclopedia|{{{work|{{{journal|}}}}}}}}|
[[Category:Citation templates]]
. ''{{{encyclopedia|{{{work|{{{journal}}}}}}}}}''
</noinclude>
}}
 
{{#if:{{{publisher|}}}|. {{{publisher}}}}}
{{#if:{{{pages|}}}|. p.&nbsp;{{{pages}}}}}
{{#if:{{{doi|}}}|. DOI: {{{doi}}}}}
{{#if:{{{isbn|}}}|. ISBN {{{isbn}}}}}
 
{{#if:{{{access-date|{{{accessdate|}}}}}}|
. Retrieved {{{access-date|{{{accessdate}}}}}}
}}
 
.
</includeonly>

Revision as of 02:52, 20 May 2026

Template:Citation

A general-purpose citation template. Used by {{Cite web}}, {{Cite journal}}, {{Cite encyclopedia}}, and others.

Parameters

Parameter Description Example
title Title of the work (required) About BOINC Central
url URL if online https://boinc.berkeley.edu/central/about.php
author or last Author surname Anderson
first Author first name David P.
date or year Publication date 2021
publisher Publisher name University of California, Berkeley
encyclopedia / work / journal Name of the larger work Wikipedia
pages Page number(s) 12–15
doi Digital Object Identifier 10.1000/xyz123
isbn ISBN number 978-3-16-148410-0
access-date Date URL was accessed 2026-05-18

Example output

{{Citation |last=Anderson |first=David P. |date=2022 |title=A brief history of BOINC |url=https://continuum-hypothesis.com/boinc_history.php |access-date=2026-05-18}}

Renders as: Anderson, David P.. (2022). A brief history of BOINC. Retrieved 2026-05-18.