Template:Cite: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:1|{{#if:{{{quote|}}}|"{{{quote}}}" –}} {{#if:{{{author|}}}{{{date|}}}|{{{author|}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}.}} {{#if:{{{title|}}}|{{#if:{{{url|}}}|[{{#if:{{{deadlink|}}}|{{{archive}}}|{{{url}}}}} {{{title}}}]|{{{title}}}}}{{#if:{{{format | <includeonly>{{#if:1|{{#if:{{{quote|}}}|"{{{quote}}}" –}} {{#if:{{{author|}}}{{{date|}}}|{{{author|}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}.}} {{#if:{{{title|}}}|{{#if:{{{url|}}}|[{{#if:{{{deadlink|}}}|{{{archive}}}|{{{url}}}}} {{{title}}}]|{{{title}}}}}{{#if:{{{format|}}}|<nowiki/> ({{{format}}})}}.}} {{#if:{{{publisher|}}}|<span style="font-style:italic">{{{publisher}}}</span>{{#if:{{{language|}}}|<nowiki/> ({{{language}}})}}.}} {{#if:{{{isbn|}}}|ISBN [[Special:BookSources/{{{isbn}}}|{{{isbn}}}]].}} {{#if:{{{page|}}}|Page {{{page}}}.}} {{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}} {{#if:{{{archive|}}}|({{#if:{{{deadlink|}}}|Archived|[{{{archive}}} Archived]}} {{{archivedate|{{#if:{{#pos:{{{archive}}}|web.archive.org/web/}}|{{#time:F j, Y, H:i:s e|{{#sub:{{{archive}}}|{{#expr:{{#pos:{{{archive}}}|web/}}+4}}|14}}}}}}}}} {{#if:{{{deadlink|}}}|from the {{#if:{{{url|}}}|[{{{url}}} original]|original}}}} via {{{archiver|Wayback Machine}}}.)}}}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Based on Wikipedia's {{wp|Template:Citation|citation template}}, this template can be used for a variety of citations across a variety of different works, let it be publications, web pages, and so forth. Remember to include it between the the <code><nowiki><ref></nowiki></code> and <code><nowiki></ref></nowiki></code> tags. | Based on Wikipedia's {{wp|Template:Citation|citation template}}, this template can be used for a variety of citations across a variety of different works, let it be publications, web pages, and so forth. Remember to include it between the the <code><nowiki><ref></nowiki></code> and <code><nowiki></ref></nowiki></code> tags. | ||
<pre>{{cite|quote=|author=|date=|title=|url=|format=| | <pre>{{cite|quote=|author=|date=|title=|url=|format=|publisher=|language=|isbn=|page=|accessdate=|archive=|deadlink=|archivedate=|archiver=}}</pre> | ||
=== Example === | === Example === | ||
Line 16: | Line 16: | ||
*<code>|title=</code> - Title of what is being cited. | *<code>|title=</code> - Title of what is being cited. | ||
*<code>|url=</code> - URL of what is being cited. | *<code>|url=</code> - URL of what is being cited. | ||
*<code>|format=</code> - Format of URL if non-webpage (e.g. PDF | *<code>|format=</code> - Format of URL if non-webpage (e.g. PDF). | ||
*<code>|publisher=</code> - Publisher of the source (automatically italicized). | |||
*<code>|language=</code> - Language of what is being cited if non-English. | *<code>|language=</code> - Language of what is being cited if non-English. | ||
*<code>|isbn=</code> - The book identifier, otherwise known as the {{wp|ISBN}}. | *<code>|isbn=</code> - The book identifier, otherwise known as the {{wp|ISBN}}. | ||
*<code>|page=</code> - The page number being cited. | *<code>|page=</code> - The page number being cited. |
Revision as of 23:30, February 7, 2024
Usage
Based on Wikipedia's citation template, this template can be used for a variety of citations across a variety of different works, let it be publications, web pages, and so forth. Remember to include it between the the <ref>
and </ref>
tags.
{{cite|quote=|author=|date=|title=|url=|format=|publisher=|language=|isbn=|page=|accessdate=|archive=|deadlink=|archivedate=|archiver=}}
Example
Citing a book for the Electrified Anemone's name:
<ref>{{cite|author=von Esmarch, Nick, and Cory van Grier|publisher=[[Prima Games]]|title=''Donkey Kong Country: Tropical Freeze'' Official Game Guide|isbn=978-0804162524|page=26}}</ref>
Parameters
|quote=
- A quote being cited.|author=
- Name of authors, listing last name then first name.|date=
- Release or publication date of referenced source.|title=
- Title of what is being cited.|url=
- URL of what is being cited.|format=
- Format of URL if non-webpage (e.g. PDF).|publisher=
- Publisher of the source (automatically italicized).|language=
- Language of what is being cited if non-English.|isbn=
- The book identifier, otherwise known as the ISBN.|page=
- The page number being cited.|accessdate=
- The date when the source was cited.|archive=
- Web archive link.|deadlink=
- Set to a value such as yes to swap priority of theurl
andarchive
links.|archivedate=
- Date the web page was archived. Omit parameter for Wayback Machine (date pulled from URL).|archiver=
- The archival source. Omit parameter for Wayback Machine (default source).