Template:Citation: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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|}}}|. pp. {{{pages|}}}|}}{{#if:{{{doi|}}}|. DOI: {{{doi|}}}|}}{{#if:{{{isbn|}}}|. ISBN {{{isbn|}}}|}}{{#if:{{{access-date|{{{accessdate|}}}}}}|. Retrieved {{{access-date|{{{accessdate|}}}}}}.|.}}</includeonly><noinclude> | ||
{{#if:{{{author|{{{last|}}}}}}| | == Template:Citation == | ||
{{{ | A general-purpose citation template. Called by {{tl|Cite web}}, {{tl|Cite journal}}, {{tl|Cite encyclopedia}}, and others. | ||
}} | === Parameters === | ||
{| class="wikitable" | |||
{{#if:{{{date|{{{year|}}}}}}| | ! Parameter !! Description !! Example | ||
({{{date|{{{year}}}}}}). | |- | ||
}} | | <code>title</code> || Title of the work (required) || <code>About BOINC Central</code> | ||
|- | |||
{{#if:{{{url|}}}| | | <code>url</code> || URL if online || <code><nowiki>https://boinc.berkeley.edu/central/about.php</nowiki></code> | ||
[{{{url}}} {{{title| | |- | ||
| | | <code>author</code> or <code>last</code> || Author surname || <code>Anderson</code> | ||
{{{title| | |- | ||
}} | | <code>first</code> || Author first name || <code>David P.</code> | ||
|- | |||
{{#if:{{{encyclopedia|{{{work|{{{journal|}}}}}}}}| | | <code>date</code> or <code>year</code> || Publication date || <code>2022</code> | ||
. ''{{{encyclopedia|{{{work|{{{journal}}}}}}}}}'' | |- | ||
}} | | <code>publisher</code> || Publisher name || <code>University of California, Berkeley</code> | ||
|- | |||
{{#if:{{{publisher|}}}|. {{{publisher}}}}} | | <code>encyclopedia</code> / <code>work</code> / <code>journal</code> || Name of the larger work || <code>Wikipedia</code> | ||
{{#if:{{{pages|}}}|. | |- | ||
{{#if:{{{doi|}}}|. DOI: {{{doi}}}}} | | <code>pages</code> || Page number(s) || <code>12–15</code> | ||
{{#if:{{{isbn|}}}|. ISBN {{{isbn}}}}} | |- | ||
| <code>doi</code> || Digital Object Identifier || <code>10.1000/xyz123</code> | |||
{{#if:{{{access-date|{{{accessdate|}}}}}}| | |- | ||
. Retrieved {{{access-date|{{{accessdate}}}}}} | | <code>isbn</code> || ISBN number || <code>978-3-16-148410-0</code> | ||
}} | |- | ||
| <code>access-date</code> or <code>accessdate</code> || Date URL was accessed || <code>2026-05-18</code> | |||
. | |} | ||
</ | === Example === | ||
<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. | |||
[[Category:Citation templates]] | |||
</noinclude> | |||