Template:Citation: Difference between revisions

Al Piskun (talk | contribs)
Undo revision 1134 by Al Piskun (talk)
Tag: Undo
Al Piskun (talk | contribs)
No edit summary
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.&nbsp;{{{pages|}}}|}}{{#if:{{{doi|}}}|. DOI: {{{doi|}}}|}}{{#if:{{{isbn|}}}|. ISBN {{{isbn|}}}|}}{{#if:{{{access-date|{{{accessdate|}}}}}}|. Retrieved {{{access-date|{{{accessdate|}}}}}}}.|.}}</includeonly><noinclude>
<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.&nbsp;{{{pages|}}}|}}{{#if:{{{doi|}}}|. DOI: {{{doi|}}}|}}{{#if:{{{isbn|}}}|. ISBN {{{isbn|}}}|}}{{#if:{{{access-date|{{{accessdate|}}}}}}|. Retrieved {{{access-date|{{{accessdate|}}}}}}}.|.}}</includeonly><noinclude>
== Template:Citation ==
== Template:Citation ==
A general-purpose citation template. Used by {{tl|Cite web}}, {{tl|Cite journal}}, {{tl|Cite encyclopedia}}, and others.
A general-purpose citation template. Called by {{tl|Cite web}}, {{tl|Cite journal}}, {{tl|Cite encyclopedia}}, and others.
 
=== Parameters ===
=== Parameters ===
{| class="wikitable"
{| class="wikitable"
Line 15: Line 14:
| <code>first</code> || Author first name || <code>David P.</code>
| <code>first</code> || Author first name || <code>David P.</code>
|-
|-
| <code>date</code> or <code>year</code> || Publication date || <code>2021</code>
| <code>date</code> or <code>year</code> || Publication date || <code>2022</code>
|-
|-
| <code>publisher</code> || Publisher name || <code>University of California, Berkeley</code>
| <code>publisher</code> || Publisher name || <code>University of California, Berkeley</code>
Line 27: Line 26:
| <code>isbn</code> || ISBN number || <code>978-3-16-148410-0</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>
| <code>access-date</code> or <code>accessdate</code> || Date URL was accessed || <code>2026-05-18</code>
|}
|}
 
=== Example ===
=== Example output ===
<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>
<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.
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]]
[[Category:Citation templates]]
</noinclude>
</noinclude>