|
|
| Line 1: |
Line 1: |
| <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. {{{pages|}}}|}}{{#if:{{{doi|}}}|. DOI: {{{doi|}}}|}}{{#if:{{{isbn|}}}|. ISBN {{{isbn|}}}|}}{{#if:{{{access-date|{{{accessdate|}}}}}}|. Retrieved {{{access-date|{{{accessdate|}}}}}}}.|.}}</includeonly><noinclude> | | <includeonly> |
| == Template:Citation ==
| | {{#if:{{{author|{{{last|}}}}}}| |
| A general-purpose citation template. Used by {{tl|Cite web}}, {{tl|Cite journal}}, {{tl|Cite encyclopedia}}, and others.
| | {{{author|{{{last|}}}}}}{{#if:{{{first|}}}|, {{{first}}}}}. |
| | }} |
|
| |
|
| === Parameters ===
| | {{#if:{{{date|{{{year|}}}}}}| |
| {| class="wikitable" | | ({{{date|{{{year}}}}}}). |
| ! 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>
| |
| |}
| |
|
| |
|
| === Example output ===
| | {{#if:{{{url|}}}| |
| <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>
| | [{{{url}}} {{{title|No title}}}] |
| 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}}} |
| | }} |
|
| |
|
| [[Category:Citation templates]]
| | {{#if:{{{encyclopedia|{{{work|{{{journal|}}}}}}}}| |
| </noinclude> | | . ''{{{encyclopedia|{{{work|{{{journal}}}}}}}}}'' |
| | }} |
| | |
| | {{#if:{{{publisher|}}}|. {{{publisher}}}}} |
| | {{#if:{{{pages|}}}|. p. {{{pages}}}}} |
| | {{#if:{{{doi|}}}|. DOI: {{{doi}}}}} |
| | {{#if:{{{isbn|}}}|. ISBN {{{isbn}}}}} |
| | |
| | {{#if:{{{access-date|{{{accessdate|}}}}}}| |
| | . Retrieved {{{access-date|{{{accessdate}}}}}} |
| | }} |
| | |
| | . |
| | </includeonly> |