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}}}" &ndash;}} {{#if:{{{author|}}}{{{date|}}}|{{{author|}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}.}} {{#if:{{{title|}}}|{{#if:{{#if:{{{deadlink|}}}|{{{archive|}}}|{{{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:{{{deadlink|}}}||{{#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}}}.{{#if:{{{deadlink|}}}||)}}}} {{#if:{{{deadlink|}}}|{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}}}}}}</includeonly><noinclude>
<includeonly>{{#if:1|{{#if:{{{quote|}}}|"{{{quote}}}" &ndash;}} {{#if:{{{author|}}}{{{date|}}}|{{{author|}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}.}} {{#if:{{{title|}}}|{{#if:{{#if:{{{deadlink|}}}|{{{archive|}}}|{{{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:{{{deadlink|}}}||{{#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|{{#if:{{#pos:{{{archive}}}|web.archive.org/web/}}|Wayback Machine|archive.today}}}}}.{{#if:{{{deadlink|}}}||)}}}} {{#if:{{{deadlink|}}}|{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}}}}}}</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.
Line 25: Line 25:
*<code>|deadlink=</code> - Set to <tt>yes</tt> to swap priority of the <code>url</code> and <code>archive</code> links.
*<code>|deadlink=</code> - Set to <tt>yes</tt> to swap priority of the <code>url</code> and <code>archive</code> links.
*<code>|archivedate=</code> - Date the web page was archived. '''Omit parameter for Wayback Machine''' (date pulled from URL).
*<code>|archivedate=</code> - Date the web page was archived. '''Omit parameter for Wayback Machine''' (date pulled from URL).
*<code>|archiver=</code> - The archival source. '''Omit parameter for Wayback Machine''' (default value).
*<code>|archiver=</code> - The archival source. '''Omit parameter for Wayback Machine or archive.today''' (automatic).


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 09:49, February 8, 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 the publication.
  • |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 yes to swap priority of the url and archive 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 or archive.today (automatic).