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|}}}}}}|{{{url|}}}}}|[{{#if:{{{deadlink|}}}|{{#ifeq:{{#sub:{{{archive|{{{url}}}}}}|0|4}}|http||https://}}{{{archive|{{{url}}}}}}|{{#ifeq:{{#sub:{{{url}}}|0|4}}|http||https://}}{{{url}}}}} {{{title}}}]|{{{title}}}}}{{#if:{{{format|}}}|<nowiki/> ({{{format}}})}}.}} {{#if:{{{publisher|}}}|{{#if:{{{location|}}}|{{{location}}}:}} <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|([{{#ifeq:{{#sub:{{{archive}}}|0|4}}|http||https://}}{{{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:{{#pos:{{{archive}}}|/20}}|{{#time:F j, Y, H:i:s e|{{#replace:{{#sub:{{{archive}}}|{{#expr:{{#pos:{{{archive}}}|/20}}+1}}|17}}|.|-}}}}}}}}}}} {{#if:{{{deadlink|}}}|from the {{#if:{{{url|}}}|[{{#ifeq:{{#sub:{{{url}}}|0|4}}|http||https://}}{{{url}}} original]|original}}}} via {{{archiver|{{#if:{{#pos:{{{archive}}}|web.archive.org/web/}}|Wayback Machine|archive.today}}}}}.{{#if:{{{deadlink|}}}||)}}}} {{#if:{{{deadlink|}}}|{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}}}}}}{{#if:{{{deadlink|}}}|{{#if:{{{archive|}}}||{{dead link}}}}}}</includeonly><noinclude>
<includeonly>{{#if:1|{{#if:{{{quote|}}}|"{{{quote}}}" &ndash;}} {{#if:{{{author|}}}{{{date|}}}|{{{author|}}}{{#if:{{{date|}}}|<nowiki/> ({{{date}}})}}.}} {{#if:{{{title|}}}|{{#if:{{#if:{{{deadlink|}}}|{{{archive|{{{url|}}}}}}|{{{url|}}}}}|[{{#if:{{{deadlink|}}}|{{#ifeq:{{#sub:{{{archive|{{{url}}}}}}|0|4}}|http||https://}}{{{archive|{{{url}}}}}}|{{#ifeq:{{#sub:{{{url}}}|0|4}}|http||https://}}{{{url}}}}} {{{title}}}]|{{{title}}}}}{{#if:{{{format|}}}|<nowiki/> ({{{format}}})}}.}} {{#if:{{{publisher|}}}|{{#if:{{{location|}}}|{{{location}}}:}} <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|([{{#ifeq:{{#sub:{{{archive}}}|0|4}}|http||https://}}{{{archive}}} Archived]}} {{{archivedate|{{#if:{{#pos:{{{archive}}}|/http}}|{{#time:F j, Y, H:i:s e|{{#replace:{{#sub:{{{archive}}}|{{#expr:{{#pos:{{{archive}}}|/20}}+1}}|{{#expr:{{#pos:{{{archive}}}|/http}}-{{#pos:{{{archive}}}|/20}}-1}}}}|.|-}}}}}}}}} {{#if:{{{deadlink|}}}|from the {{#if:{{{url|}}}|[{{#ifeq:{{#sub:{{{url}}}|0|4}}|http||https://}}{{{url}}} original]|original}}}} via {{{archiver|{{#if:{{#pos:{{{archive}}}|web.archive.org/web/}}|Wayback Machine|archive.today}}}}}.{{#if:{{{deadlink|}}}||)}}}} {{#if:{{{deadlink|}}}|{{#if:{{{accessdate|}}}|Retrieved {{{accessdate}}}.}}}}}}{{#if:{{{deadlink|}}}|{{#if:{{{archive|}}}||{{dead link}}}}}}</includeonly><noinclude>
See [[MarioWiki:Citations]] for additional details on using the reference system.
See [[MarioWiki:Citations]] for additional details on using the reference system.



Revision as of 12:38, February 11, 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 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

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 website on which the web page was found.
  • Date (date): The date the book or 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").

Website links

  • URL (url): The full URL to the page (https:// may be excluded).
  • Format (format): The format of the URL if non-webpage (e.g. "PDF").
  • 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.
  • Language (language): The language of the publication if non-English.