Template:Cite: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(41 intermediate revisions by the same user not shown)
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|}}}}}}|{{{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:{{{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}}}|/19}}|{{#pos:{{{archive}}}|/19}}|{{#pos:{{{archive}}}|/20}}}}+1}}|{{#expr:{{#pos:{{{archive}}}|/http}}-{{#if:{{#pos:{{{archive}}}|/19}}|{{#pos:{{{archive}}}|/19}}|{{#pos:{{{archive}}}|/20}}}}-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>
See [[MarioWiki:Citations]] for additional details on using the reference system.
 
== 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=|publisher=|language=|isbn=|page=|accessdate=|archive=|deadlink=|archivedate=|archiver=}}</pre>
<pre>{{cite|quote=|author=|date=|title=|url=|format=|timestamp=|location=|publisher=|language=|isbn=|page=|accessdate=|archive=|archivedate=|archiver=|deadlink=}}</pre>


=== Example ===
=== Example ===
Citing a book for the [[Electrified Anemone]]'s name:
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>
<pre><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></pre>


== Parameters ==
== Parameters ==
*<code>|quote=</code> - A quote being cited.
=== All citations ===
*<code>|author=</code> - Name of authors, listing last name then first name.
These parameters should always be included whenever possible.
*<code>|date=</code> - Release or publication date of referenced source.
 
*<code>|title=</code> - Title of what is being cited.
*'''Title''' (<code>title</code>): The title of the source.
*<code>|url=</code> - URL of what is being cited.
*'''Author''' (<code>author</code>): The full name in "Lastname, Firstname" format ''or'' the username of whoever wrote the content of the source.
*<code>|format=</code> - Format of URL if non-webpage (e.g. PDF).
*'''Publisher''' (<code>publisher</code>): The publisher of the book, or the website on which the web page was found.
*<code>|publisher=</code> - Publisher of the source (automatically italicized).
*'''Date''' (<code>date</code>): The date the book or page was published (e.g. "January 1, 2000").
*<code>|language=</code> - Language of the publication.
 
*<code>|isbn=</code> - The book identifier, otherwise known as the {{wp|ISBN}}.
=== Specific citation types ===
*<code>|page=</code> - The page number being cited.
These parameters should only be included for a given type of media.
*<code>|accessdate=</code> - The date when the source was cited.
 
*<code>|archive=</code> - Web archive link.
==== Physical books ====
*<code>|deadlink=</code> - Set to <tt>yes</tt> to swap priority of the <code>url</code> and <code>archive</code> links.
*'''ISBN''' (<code>isbn</code>): The {{wp|ISBN}} of the book.
*<code>|archivedate=</code> - Date the web page was archived. '''Omit parameter for Wayback Machine''' (date pulled from URL).
*'''Page''' (<code>page</code>): The page number on which the citation was found.
*<code>|archiver=</code> - The archival source. '''Omit parameter for Wayback Machine''' (default archive).
*'''Location''' (<code>location</code>): The location of the publisher (e.g. "New York, NY" or "Tokyo, Japan"). Requires a <code>publisher</code>.
 
==== Website links ====
*'''URL''' (<code>url</code>): The full URL to the page (<tt>https://</tt> may be excluded). Requires a <code>title</code>.
*'''Format''' (<code>format</code>): The file format of the URL if non-webpage (e.g. "PDF"). Requires a <code>title</code>.
*'''Timestamp''' (<code>timestamp</code>): The relevant timestamp of the URL if video (e.g. "3:11"). Requires a <code>title</code>.
*'''Access date''' (<code>accessdate</code>): 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''' (<code>deadlink</code>): Set to <tt>yes</tt> to swap priority of the <code>url</code> and <code>archive</code> links. If no archive is available, marks the reference as a {{tem|dead link}}.
 
=== Optional parameters ===
These parameters should only be included if relevant to the citation.
 
*'''Archive''' (<code>archive</code>): The full URL to a web archive of an online source (<tt>https://</tt> may be excluded).
**'''Archiver''' (<code>archiver</code>): The archival source. '''Omit for Wayback Machine and archive.today''', since the template automatically checks for these.
**'''Archive date''' (<code>archivedate</code>): 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''' (<code>quote</code>): 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''' (<code>language</code>): The [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/cldr/+/refs/heads/master/CldrNames/CldrNamesEn.php language code] of the publication (e.g. "fr-ca"). Regular text may be used instead if needed. Requires a <code>publisher</code>.


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

Latest revision as of 15:35, April 20, 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=|timestamp=|location=|publisher=|language=|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 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"). 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.
  • Language (language): The language code of the publication (e.g. "fr-ca"). Regular text may be used instead if needed. Requires a publisher.