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|}}} | <!-- Ensure a title is provided -->
{{#if:{{{title|}}} | <!-- Ensure a title is provided -->
   {{#if:{{{last|}}} <!-- If 'last' is provided -->
   {{#if:{{{last|}}}  
     | {{{last}}}{{#if:{{{first|}}}|, {{{first}}}}} <!-- Combine 'last' and 'first' -->
     | {{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}  
     | {{#if:{{{author|}}}|{{{author}}}}} <!-- Fallback to 'author' if 'last' is not provided -->
     | {{#if:{{{author|}}}|{{{author}}}}}
   }}, <!-- Add a comma if author is present -->
   }}, '''{{{title}}}''',  
  '''{{{title}}}''', <!-- Add the article title -->
   {{#if:{{{journal|}}}|''{{{journal}}}''}},  
   {{#if:{{{journal|}}}|''{{{journal}}}''}}, <!-- Add the journal title -->
   {{#if:{{{year|}}}|{{{year}}}, }}
   {{#if:{{{year|}}}|{{{year}}}, }} <!-- Add the publication year -->
   {{#if:{{{volume|}}}|Vol. {{{volume}}}}}{{#if:{{{issue|}}}| (Issue: {{{issue}}}), }}
   {{#if:{{{volume|}}}|Vol. {{{volume}}} }}{{#if:{{{issue|}}}|(Issue: {{{issue}}}), }} <!-- Add volume/issue -->
   {{#if:{{{pages|}}}|pp. {{{pages}}}, }}
   {{#if:{{{pages|}}}|pp. {{{pages}}}, }} <!-- Add page numbers -->
   {{#if:{{{doi|}}}|DOI: [https://doi.org/{{{doi}}} {{{doi}}}], }}
   {{#if:{{{doi|}}}|DOI: [https://doi.org/{{{doi}}} {{{doi}}}], }} <!-- Add DOI -->
   {{#if:{{{pmid|}}}|PMID: [https://pubmed.ncbi.nlm.nih.gov/{{{pmid}}} {{{pmid}}}], }}
   {{#if:{{{pmid|}}}|PMID: [https://pubmed.ncbi.nlm.nih.gov/{{{pmid}}} {{{pmid}}}], }} <!-- Add PubMed ID -->
   {{#if:{{{pmc|}}}|PMC: [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{pmc}}}/ {{{pmc}}}], }}
   {{#if:{{{pmc|}}}|PMC: [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{pmc}}}/ {{{pmc}}}], }} <!-- Add PMC ID -->
   {{#if:{{{arxiv|}}}|arXiv: [https://arxiv.org/abs/{{{arxiv}}} {{{arxiv}}}], }}
   {{#if:{{{arxiv|}}}|arXiv: [https://arxiv.org/abs/{{{arxiv}}} {{{arxiv}}}], }} <!-- Add arXiv -->
   {{#if:{{{url|}}}|[{{{url}}} Full text], }}
   {{#if:{{{url|}}}|[{{{url}}} Full text], }} <!-- Add URL -->
   {{#if:{{{access-date|}}}|Accessed on: {{{access-date}}}. }}
   {{#if:{{{access-date|}}}|Accessed on: {{{access-date}}}. }} <!-- Add 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. It dynamically formats citations based on the parameters provided.

Revision as of 16:54, 8 February 2025


Documentation

This template is used to cite journal articles. It dynamically formats citations based on the parameters provided.

Parameters

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

Example Usage

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.