Template:Cite: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
 
(107 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{quote|}}}|"{{{quote}}}" &ndash;&nbsp;|}}{{#if:{{{author|}}}|{{{author}}}.&nbsp;|}}{{#if:{{{date|}}}|({{{date}}}).&nbsp;|}}{{#if:{{{title|}}}|{{#if:{{{url|}}}|[{{{url}}} {{{title}}}]|{{{title}}}}}.&nbsp;|}}{{#if:{{{publisher|}}}|{{{publisher}}}.&nbsp;|}}{{#if:{{{isbn|}}}|{{wp|ISBN}} [[Special:BookSources/{{{isbn}}}|{{{isbn}}}]].&nbsp;|}}{{#if:{{{page|}}}|Page {{{page}}}.&nbsp;|}}{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.&nbsp;|}} {{#if:{{{archive|}}}|([{{{archive}}} Archived] {{{archivedate}}} via {{{archiver|{{wp|Wayback Machine}}}}}.)|}}
<includeonly>{{#if:1|{{#if:{{{quote|}}}|{{#rmatch:{{{quote}}}|^["“”„「«]||{{#switch:{{lc:{{{language}}}}}|ja|zh-hant=「|"}}}}{{lang|{{#rmatch:{{#language:{{{language}}}|en}}|^[A-Z]|{{{language}}}|en}}|{{{quote}}}}}{{#rmatch:{{{quote}}}|^["“”„「«]| <nowiki/>|{{#switch:{{lc:{{{language}}}}}|ja|zh-hant=」|" <nowiki/>}}}}{{#if:{{{translation|}}}|("<span style="font-style:italic">{{{translation}}}</span>") <nowiki/>}}&ndash;}} {{#if:{{{author|}}}{{{date|}}}|{{{author|}}}{{#if:{{{date|}}}|{{#if:{{{author|}}}|<nowiki/> ({{{date}}})|{{{date}}}}}}}.}} {{#if:{{{title|}}}|{{#if:{{#if:{{{deadlink|}}}|{{{archive|{{{url|}}}}}}|{{{url|}}}}}|[{{#if:{{{deadlink|}}}|{{#rmatch:{{{archive|{{{url}}}}}}|^http||https://}}{{{archive|{{{url}}}}}}|{{#rmatch:{{{url}}}|^http||https://}}{{{url}}}}} {{{title}}}]|{{{title}}}}}{{#if:{{{format|}}}{{{timestamp|}}}|<nowiki/> ({{#if:{{{format|}}}|{{#if:{{{timestamp|}}}|{{{format}}}, {{{timestamp}}}|{{{format}}}}}|{{{timestamp}}}}})}}.}} {{#if:{{{publisher|}}}|{{#if:{{{location|}}}|{{{location}}}:}} <span style="font-style:italic">{{{publisher}}}</span>{{#if:{{{language|}}}|<nowiki/> ({{#rmatch:{{#language:{{{language}}}|en}}|^[A-Z]|{{#language:{{{language}}}|en}}|{{{language}}}}})}}{{#if:{{{website|}}}|<nowiki/> via {{{website}}}}}.}} {{#if:{{{isbn|}}}|ISBN [[Special:BookSources/{{{isbn}}}|{{{isbn}}}]].}} {{#if:{{{page|}}}|Page {{{page}}}.}} {{#if:{{{deadlink|}}}||{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}}}} {{#if:{{{archive|}}}|{{#if:{{{deadlink|}}}|Archived|([{{#rmatch:{{{archive}}}|^http||https://}}{{{archive}}} Archived]}} {{{archivedate|{{#rmatch:{{{archive}}}|/http|{{#time:F j, Y, H:i:s e|{{#replace:{{#sub:{{{archive}}}|{{#expr:{{#if:{{#pos:{{{archive}}}|/20}}|{{#pos:{{{archive}}}|/20}}|{{#pos:{{{archive}}}|/19}}}}+1}}|{{#expr:{{#pos:{{{archive}}}|/http}}-{{#if:{{#pos:{{{archive}}}|/20}}|{{#pos:{{{archive}}}|/20}}|{{#pos:{{{archive}}}|/19}}}}-1}}}}|.|-}}}}}}}}} {{#if:{{{deadlink|}}}|from the {{#if:{{{url|}}}|[{{#rmatch:{{{url}}}|^http||https://}}{{{url}}} original]|original}}}} via {{{archiver|{{#rmatch:{{{archive}}}|web.archive.org|Wayback Machine|archive.today}}}}}.{{#if:{{{deadlink|}}}||)}}}} {{#if:{{{deadlink|}}}|{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}}}}}}{{#if:{{{deadlink|}}}|{{#if:{{{archive|}}}||{{dead link}}}}}}</includeonly><noinclude>{{/doc}}</noinclude>
</includeonly><noinclude>
==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.
 
<pre>{{cite |author = |date = |title = |url = |publisher = |isbn = |page = |accessdate = |quote = |archive = |archivedate = | archiver = }}</pre>
 
==Examples==
Citing a book for the [[Electrified Anemone]]'s name:
 
<code><nowiki><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></nowiki></code>
 
==Parameters==
*<code>|author=</code> - Name of authors, listing last name then first name.
*<code>|quote=</code> - Quote
*<code>|date=</code> - Release or publication date of referenced source
*<code>|title=</code> - Title of what is being cited.
*<code>|publisher=</code> - Publisher of the source.
*<code>|isbn=</code> - The book identifier, otherwise known as the {{wp|ISBN}}.
*<code>|page=</code> - The page number being cited.
*<code>|accessdate=</code> - The date when the source was cited.
*<code>|archive=</code> - Web archive link
*<code>|archivedate=</code> - Date the web page was archived.
*<code>|archiver=</code> - The archival source.
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 09:27, October 7, 2024

See MarioWiki:Citations for additional details on using the reference system.

Usage

Based on Wikipedia's citation template, this template can be used for a variety of citations across a number of different works, let it be publications, web pages, and so forth. Remember to include it between the <ref> and </ref> tags.

{{cite|quote=|translation=|author=|date=|title=|url=|format=|timestamp=|location=|publisher=|language=|website=|isbn=|page=|accessdate=|archive=|archivedate=|archiver=|deadlink=}}

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

All citations

These parameters should always be included whenever possible.

  • Title (title): The title of the source.
  • Author (author): The full name in "Lastname, Firstname" format or the username of whoever wrote the content of the source.
  • Publisher (publisher): The publisher of the book, or the name of the website on which the web page was found.
  • Date (date): The date the book or web page was published (e.g. "January 1, 2000").

Specific citation types

These parameters should only be included for a given type of media.

Physical books

  • ISBN (isbn): The ISBN of the book.
  • Page (page): The page number on which the citation was found.
  • Location (location): The location of the publisher (e.g. "New York, NY" or "Tokyo, Japan"). Requires a publisher.
  • Website (website): The name of the website hosting the published book (e.g. "Google Books"). Requires a publisher.

Website links

  • URL (url): The full URL to the page (https:// may be excluded). Requires a title.
  • Format (format): The file format of the URL if non-webpage (e.g. "PDF"). Requires a title.
  • Timestamp (timestamp): The relevant timestamp of the URL if video (e.g. "3:11"). Requires a title.
  • Access date (accessdate): The date at which the source was accessed (e.g. "January 1, 2000"). This is to preserve the state of the web page at that time, since unlike physical media, web pages can change at any point.
  • Dead link (deadlink): Set to yes to swap priority of the url and archive links. If no archive is available, marks the reference as a {{dead link}}.

Optional parameters

These parameters should only be included if relevant to the citation.

  • Archive (archive): The full URL to a web archive of an online source (https:// may be excluded).
    • Archiver (archiver): The archival source. Omit for Wayback Machine and archive.today, since the template automatically checks for these.
    • Archive date (archivedate): The date at which the URL was archived. Omit for Wayback Machine and archive.today long links, since the template automatically grabs the date from the URL.
  • Quote (quote): A brief excerpt from the book or web page providing more context to the citation. Using quotes is encouraged because it allows readers to see evidence behind a claim quickly and directly on the wiki itself, rather than needing to seek out the evidence in question in order to prove that it has not been fabricated.
    • Translation (translation): An English translation of the quote, if it is non-English.
  • Language (language): The language code of the publication (e.g. "fr-ca"). Regular text may be used instead if needed.