Template:Cite journal: Difference between revisions

From Atomix
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
{{{authors}}}. {{{year}}}. {{{paper_or_booktitle}}}. {{{journal_or_publisher}}}. doi:{{{doi}}}
</includeonly>
<noinclude>
<noinclude>
This is the "Cite journal" template.  It can be used to format textbooks and publications. DOI have issues displaying when there are less than ( <nowiki><</nowiki>) and greater than  <nowiki>></nowiki>operators.  
== Usage ==
This template formats a journal citation for use inside <nowiki><ref></ref></nowiki> tags.


By default, the formatted references will appear at the bottom of the page. It's good practice to place a section <nowiki>==Notes==</nowiki> at the bottom of the page.
=== Basic example ===
To cite a journal article, place the following inside your text:
<pre>
<nowiki>
<ref name="EmeryThomson2001">{{Cite journal
|authors=Emery, W. J., and R. E. Thomson
|year=2001
|paper_or_booktitle=Data analysis methods in physical oceanography, 2nd edition, Section 5.6.7–5.6.8
|journal_or_publisher=Elsevier
|doi=(ISBN)9780080477008
}}</ref>
</nowiki></pre>


The template can be called in the following format if not using the form:
This will produce a numbered reference in the text and a formatted entry in the Notes section.
<pre>
 
{{Cite journal
=== Displaying the reference list ===
|authors=
At the bottom of the page, add:
|journal_or_publisher=
 
|paper_or_booktitle=
<nowiki>
|year=
== References ==
|doi=
</nowiki>
}}
 
</pre>
This will display all citations defined with <nowiki><ref></ref></nowiki> tags.


For example doing
=== Template parameters ===
<pre>
* <nowiki>|authors=</nowiki> — Full author list, formatted exactly as desired.
<ref name="Sreenivasan">{{Cite journal
* <nowiki>|year=</nowiki> — Publication year.
|authors= K. R. Sreenivasan
* <nowiki>|paper_or_booktitle=</nowiki> — Title of the paper or chapter.
|journal_or_publisher= Phys. Fluids
* <nowiki>|journal_or_publisher=</nowiki> — Journal name or publisher.
|paper_or_booktitle= On the universality of the Kolmogorov constant
* <nowiki>|doi=</nowiki> — DOI or ISBN.
|year= 1995
|doi= 10.1063/1.868656
}}</ref>
</pre>
will create  a citation <ref name="Sreenivasan">{{Cite journal
|authors= K. R. Sreenivasan
|journal_or_publisher= Phys. Fluids
|paper_or_booktitle= On the universality of the Kolmogorov constant
|year= 1995
|doi= 10.1063/1.868656
}}</ref>.
You can continue referring to it using <nowiki><ref name="Sreenivasan"></nowiki> that will reuse the correct reference <ref name="Sreenivasan"/>.


<includeonly>
This template does not require any extensions and is safe for long‑term use.
{{{authors}}}. {{{year}}}. {{{paper_or_booktitle}}}. {{{journal_or_publisher}}}. doi:{{{doi}}}
</noinclude>
</includeonly>


<noinclude>
<noinclude>
This template formats journal citations without requiring any extensions.
This template formats journal citations without requiring any extensions.
Usage example:
Usage example:<ref name="Example">{{Cite journal
 
<ref name="Example">{{Cite journal
|authors=Lastname, A., and B. Lastname
|authors=Lastname, A., and B. Lastname
|year=2020
|year=2020
Line 49: Line 50:
|doi=10.1234/example
|doi=10.1234/example
}}</ref>
}}</ref>
=References=
</noinclude>
</noinclude>
==Notes==
</noinclude><includeonly>
{{#arraymap:{{{authors|}}}|,|x|x|, <nowiki/>|and}}. {{{year}}}. ''{{{paper_or_booktitle}}}''. {{{journal_or_publisher}}}. doi:[https://doi.org/{{{doi}}} {{{doi}}}]
</includeonly>

Latest revision as of 16:38, 13 May 2026


Usage

This template formats a journal citation for use inside <ref></ref> tags.

Basic example

To cite a journal article, place the following inside your text:


<ref name="EmeryThomson2001">{{Cite journal
|authors=Emery, W. J., and R. E. Thomson
|year=2001
|paper_or_booktitle=Data analysis methods in physical oceanography, 2nd edition, Section 5.6.7–5.6.8
|journal_or_publisher=Elsevier
|doi=(ISBN)9780080477008
}}</ref>

This will produce a numbered reference in the text and a formatted entry in the Notes section.

Displaying the reference list

At the bottom of the page, add:

== References ==

This will display all citations defined with <ref></ref> tags.

Template parameters

  • |authors= — Full author list, formatted exactly as desired.
  • |year= — Publication year.
  • |paper_or_booktitle= — Title of the paper or chapter.
  • |journal_or_publisher= — Journal name or publisher.
  • |doi= — DOI or ISBN.

This template does not require any extensions and is safe for long‑term use.


This template formats journal citations without requiring any extensions. Usage example:[1]

References

  1. Lastname, A., and B. Lastname. 2020. Title of the paper. Journal Name. doi:10.1234/example