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|}}}| | {{#if:{{{first|}}}|{{{first}}} }}{{#if:{{{author|}}}|{{{author}}}}}, | ||
'''{{{title}}}''' | {{#if:{{{coauthors|}}}|{{{coauthors}}}, }} | ||
'''{{{title}}}'''{{#if:{{{url|}}}|. [{{{url}}} online version]}}, | |||
{{#if:{{{ | {{#if:{{{edition|}}}|{{{edition}}} edition, }} | ||
{{#if:{{{ | {{#if:{{{location|}}}|{{{location}}}: }}{{#if:{{{publisher|}}}|{{{publisher}}}, }} | ||
{{#if:{{{ | {{#if:{{{year|}}}|{{{year}}}, }} | ||
{{#if:{{{ | {{#if:{{{series|}}}|Series: {{{series}}}, }} | ||
{{#if:{{{ | {{#if:{{{volume|}}}|Volume: {{{volume}}}, }} | ||
{{#if:{{{ | {{#if:{{{isbn|}}}|ISBN {{{isbn}}}, }} | ||
{{#if:{{{ | {{#if:{{{doi|}}}|DOI: {{{doi}}}, }} | ||
{{#if:{{{ | {{#if:{{{id|}}}|ID: {{{id}}}, }} | ||
{{#if:{{{access-date|}}}|Accessed | {{#if:{{{access-date|}}}|Accessed: {{{access-date}}}. }} | ||
}} | {{#if:{{{pages|}}}|Pages: {{{pages}}}, }} | ||
</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Documentation == | == Documentation == | ||
This template is used to cite | This template is used to cite books in MediaWiki articles. The format ensures inline display. | ||
=== Parameters === | === Parameters === | ||
* '''title''' – | * '''title''' – The title of the book (required). | ||
* '''author''' – | * '''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. | * '''year''' – Year of publication. | ||
* ''' | * '''series''' – Series name, if applicable. | ||
* ''' | * '''volume''' – Volume number, if part of a series. | ||
* ''' | * '''isbn''' – ISBN of the book. | ||
* '''doi''' – DOI | * '''doi''' – DOI of the book. | ||
* '''id''' – Additional identifier. | |||
* '''access-date''' – Date the book was accessed online. | |||
* ''' | * '''pages''' – Pages referenced. | ||
* ''' | |||
* ''' | |||
=== Example Usage === | === Example Usage === | ||
{{Cite | {{Cite book | ||
| title = Quantum | | title = Quantum Mechanics Explained | ||
| author = | | author = Jane Smith | ||
| | | edition = 2nd | ||
| | | location = New York | ||
| | | publisher = Science Press | ||
| | | year = 2020 | ||
| | | isbn = 978-1-23456-789-0 | ||
| doi = 10. | | doi = 10.5678/science.book.2020.987654 | ||
| url = https://example.com/full-text | | url = https://example.com/full-text | ||
| access-date = 2023-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,