Template:Cite book: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{title|}}} |
{{#if:{{{title|}}} |
   {{#if:{{{author|}}} | {{#ifeq:{{{last|}}}|{{{author|}}}| | {{{last}}}, }} }}
   {{#if:{{{last|}}} | {{{last}}}{{#if:{{{first|}}}|, {{{first}}}}} | {{#if:{{{author|}}}|{{{author}}}}} }},
  {{#if:{{{first|}}}|{{{first}}} }}{{#if:{{{author|}}}|{{{author}}}}},
   '''{{{title}}}''',
  {{#if:{{{coauthors|}}}|{{{coauthors}}}, }}
  {{#if:{{{journal|}}}|''{{{journal}}}''}},
   '''{{{title}}}'''{{#if:{{{url|}}}|. [{{{url}}} online version]}},  
   {{#if:{{{year|}}}|{{{year}}}, }}
   {{#if:{{{edition|}}}|{{{edition}}} edition, }}  
   {{#if:{{{volume|}}}|Vol. {{{volume}}}{{#if:{{{issue|}}}|(Issue: {{{issue}}})}}, }}
   {{#if:{{{location|}}}|{{{location}}}: }}{{#if:{{{publisher|}}}|{{{publisher}}}, }}  
   {{#if:{{{pages|}}}|pp. {{{pages}}}, }}
   {{#if:{{{year|}}}|{{{year}}}, }}  
   {{#if:{{{doi|}}}|DOI: [https://doi.org/{{{doi}}} {{{doi}}}], }}
   {{#if:{{{series|}}}|Series: {{{series}}}, }}  
   {{#if:{{{pmid|}}}|PMID: [https://pubmed.ncbi.nlm.nih.gov/{{{pmid}}} {{{pmid}}}], }}
   {{#if:{{{volume|}}}|Volume: {{{volume}}}, }}  
   {{#if:{{{pmc|}}}|PMC: [https://www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{pmc}}}/ {{{pmc}}}], }}
   {{#if:{{{isbn|}}}|ISBN {{{isbn}}}, }}  
   {{#if:{{{arxiv|}}}|arXiv: [https://arxiv.org/abs/{{{arxiv}}} {{{arxiv}}}], }}
   {{#if:{{{doi|}}}|DOI: {{{doi}}}, }}  
   {{#if:{{{url|}}}|[{{{url}}} Full text], }}
   {{#if:{{{id|}}}|ID: {{{id}}}, }}  
   {{#if:{{{access-date|}}}|Accessed on: {{{access-date}}}. }}
   {{#if:{{{access-date|}}}|Accessed: {{{access-date}}}. }}  
}}
  {{#if:{{{pages|}}}|Pages: {{{pages}}}, }}  
</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 books in MediaWiki articles. The format ensures inline display.


=== Parameters ===
=== Parameters ===
* '''title''' – Title of the journal article (required).
* '''title''' – The title of the book (required).
* '''author''' – Primary author(s).
* '''author''' – The author(s) of the book.
* '''first''' – First name(s) of the author(s).
* '''coauthors''' – Coauthors, if applicable.
* '''last''' – Last name(s) of the author(s).
* '''url''' – URL to the book, if available online.
* '''journal''' – Name of the journal.
* '''edition''' – Edition of the book.
* '''location''' – Location of the publisher.
* '''publisher''' – Publisher name.
* '''year''' – Year of publication.
* '''year''' – Year of publication.
* '''volume''' – Volume of the journal.
* '''series''' – Series name, if applicable.
* '''issue''' – Issue number of the journal.
* '''volume''' – Volume number, if part of a series.
* '''pages''' – Page range of the article.
* '''isbn''' – ISBN of the book.
* '''doi''' – DOI (Digital Object Identifier) of the article.
* '''doi''' – DOI of the book.
* '''pmid''' – PubMed ID of the article.
* '''id''' – Additional identifier.
* '''pmc''' – PubMed Central ID of the article.
* '''access-date''' – Date the book was accessed online.
* '''arxiv''' – arXiv identifier.
* '''pages''' – Pages referenced.
* '''url''' – URL to the full text of the article.
* '''access-date''' – Date the article was accessed online.


=== Example Usage ===
=== Example Usage ===
{{Cite journal
{{Cite book
  | title = Quantum entanglement in particle physics
  | title = Quantum Mechanics Explained
  | author = John Doe
  | author = Jane Smith
  | journal = Physics Today
  | edition = 2nd
  | year = 2021
  | location = New York
  | volume = 72
  | publisher = Science Press
  | issue = 4
  | year = 2020
  | pages = 15-20
  | isbn = 978-1-23456-789-0
  | doi = 10.1234/phys.today.2021.123456
  | doi = 10.5678/science.book.2020.987654
| pmid = 12345678
  | url = https://example.com/full-text
  | url = https://example.com/full-text
  | access-date = 2023-01-01
  | access-date = 2023-02-01
| pages = 50-75
}}
}}
</noinclude>
</noinclude>

Latest revision as of 17:01, 8 February 2025


Documentation[edit]

This template is used to cite books in MediaWiki articles. The format ensures inline display.

Parameters[edit]

  • title – The title of the book (required).
  • author – The author(s) of the book.
  • coauthors – Coauthors, if applicable.
  • url – URL to the book, if available online.
  • edition – Edition of the book.
  • location – Location of the publisher.
  • publisher – Publisher name.
  • year – Year of publication.
  • series – Series name, if applicable.
  • volume – Volume number, if part of a series.
  • isbn – ISBN of the book.
  • doi – DOI of the book.
  • id – Additional identifier.
  • access-date – Date the book was accessed online.
  • pages – Pages referenced.

Example Usage[edit]

{{{last}}},

 Jane Smith, 
  
 Quantum Mechanics Explained. online version, 
 2nd edition, 
 New York:Science Press, 
 2020, 
  
  
 ISBN 978-1-23456-789-0, 
 DOI: 10.5678/science.book.2020.987654, 
  
 Accessed: 2023-02-01. 
 Pages: 50-75,