Template:Cite journal: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{title|}}} |
{{#if:{{{title|}}} | <!-- Ensure a title is provided -->
   {{#if:{{{last|}}} | {{{last}}}{{#if:{{{first|}}}|, {{{first}}}}} | {{#if:{{{author|}}}|{{{author}}}}} }},  
   {{#if:{{{last|}}}  
  '''{{{title}}}''',  
    | {{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}  
    | {{#if:{{{author|}}}|{{{author}}}}}
  }}, '''{{{title}}}''',  
   {{#if:{{{journal|}}}|''{{{journal}}}''}},  
   {{#if:{{{journal|}}}|''{{{journal}}}''}},  
   {{#if:{{{year|}}}|{{{year}}}, }}
   {{#if:{{{year|}}}|{{{year}}}, }}
   {{#if:{{{volume|}}}|Vol. {{{volume}}}}}{{#if:{{{issue|}}}| (Issue: {{{issue}}}), }}
   {{#if:{{{volume|}}}|Vol. {{{volume}}}{{#if:{{{issue|}}}| (Issue: {{{issue}}})}}, }}
   {{#if:{{{pages|}}}|pp. {{{pages}}}, }}
   {{#if:{{{pages|}}}|pp. {{{pages}}}, }}
   {{#if:{{{doi|}}}|DOI: [https://doi.org/{{{doi}}} {{{doi}}}], }}
   {{#if:{{{doi|}}}|DOI: [https://doi.org/{{{doi}}} {{{doi}}}], }}
Line 15: Line 12:
   {{#if:{{{url|}}}|[{{{url}}} Full text], }}
   {{#if:{{{url|}}}|[{{{url}}} Full text], }}
   {{#if:{{{access-date|}}}|Accessed on: {{{access-date}}}. }}
   {{#if:{{{access-date|}}}|Accessed on: {{{access-date}}}. }}
}}
}}</includeonly><noinclude>
</includeonly><noinclude>


== Documentation ==
== Documentation ==
This template is used to cite journal articles. It dynamically formats citations based on the parameters provided.
This template is used to cite journal articles. The format ensures inline display with proper spacing and commas.


=== Parameters ===
=== Parameters ===
* '''title''' – Title of the journal article (required).
* '''title''' – Required journal article title.
* '''author''' – Primary author(s).
* '''author''' – Author(s) (or use `first` and `last`).
* '''first''' – First name(s) of the author(s).
* '''journal''' – Journal name.
* '''last''' – Last name(s) of the author(s).
* '''journal''' – Name of the journal.
* '''year''' – Year of publication.
* '''year''' – Year of publication.
* '''volume''' – Volume of the journal.
* '''volume''' – Journal volume.
* '''issue''' – Issue number of the journal.
* '''issue''' – Journal issue.
* '''pages''' – Page range of the article.
* '''pages''' – Page numbers.
* '''doi''' – DOI (Digital Object Identifier) of the article.
* '''doi''' – DOI reference.
* '''pmid''' – PubMed ID of the article.
* '''pmid''' – PubMed ID.
* '''pmc''' – PubMed Central ID of the article.
* '''pmc''' – PubMed Central ID.
* '''arxiv''' – arXiv identifier.
* '''arxiv''' – arXiv identifier.
* '''url''' – URL to the full text of the article.
* '''url''' – URL to the article.
* '''access-date''' – Date the article was accessed online.
* '''access-date''' – Date accessed.


=== Example Usage ===
=== Example Usage ===

Latest revision as of 17:00, 8 February 2025


Documentation[edit]

This template is used to cite journal articles. The format ensures inline display with proper spacing and commas.

Parameters[edit]

  • title – Required journal article title.
  • author – Author(s) (or use `first` and `last`).
  • journal – Journal name.
  • year – Year of publication.
  • volume – Journal volume.
  • issue – Journal issue.
  • pages – Page numbers.
  • doi – DOI reference.
  • pmid – PubMed ID.
  • pmc – PubMed Central ID.
  • arxiv – arXiv identifier.
  • url – URL to the article.
  • access-date – Date accessed.

Example Usage[edit]

John Doe,

 Quantum entanglement in particle physics, 
 Physics Today, 
 2021,
 Vol. 72(Issue: 4),
 pp. 15-20,
 DOI: 10.1234/phys.today.2021.123456,
 PMID: 12345678,
 
 
 Full text,
 Accessed on: 2023-01-01.