Difference between revisions of "Template:Cite web"

From Nookipedia, the Animal Crossing wiki
(brain fart :P)
m (Italicizing site name)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{quote|}}}|<i>"{{{quote|}}}"</i> —}} {{#if:{{{author|}}}|{{{author}}},}} [{{{url|}}} {{{title|}}}], {{{site|}}} {{#if:{{{published|}}}|<i>, Published: {{{published}}}</i>}}</includeonly><noinclude>
+
<includeonly>{{#if:{{{author|}}}|{{{author}}}}}{{#if:{{{date|}}}|&nbsp;({{{date}}})}}{{#if:{{{author|}}}|.}} [{{{url|}}} {{#if:{{{title|}}}|"{{{title}}}"].|].}} {{#if:{{{site|}}}|''{{{site}}}''.}} {{#if:{{{archive-date|}}}| Archived from the original on {{{archive-date}}}.}} {{#if:{{{retrieved|}}}| Retrieved {{{retrieved}}}.}} {{#if:{{{language|}}}|({{{language}}})}}</includeonly><noinclude>{{Documentation}}[[Category:Formatting Templates]]</noinclude>
== Purpose ==
 
This is a variant of the {{[[Template:Cite|cite]]}} template that is to be used when you're pulling a quote or information from a web page or document (such as a PDF file). This is to be used to cite sources, and should be used within <nowiki><ref></ref></nowiki> tags.
 
 
 
== Usage ==
 
To use, enter this code:<br>
 
<nowiki>{{Cite web|url=|title=|site=}}</nowiki>
 
 
 
The full code is as follows:<br>
 
<nowiki>{{Cite web|quote=|author=|published=|url=|title=|site=}}</nowiki>
 
 
 
* '''Quote''' (optional)- The quoted text from the site
 
* '''Author''' (optional)- The name of the person who posted or published the text
 
* '''Published'''- (optional)- The date the text was posted or published
 
* '''Url'''- The direct URL to the page in question
 
* '''Title'''- The name of the article or document
 
* '''Site'''- The name of the site that the article or document is hosted on (eg. IGN, Nintendo.com, etc.)|Required}}
 
 
 
==Origin==
 
This template was originally from ZeldaWiki.
 

Revision as of 15:44, September 26, 2020

Template documentation (view)


Usage

{{Cite web|author=|date=|url=|title=|site=|archive-date=|retrieved=|language=}}

This template is to be used for citing webpages. It automatically formats and sorts the data and all parameters are optional except for url. <ref> tags must be added to make it appear as a reference.

Parameters

  • author (optional) – The person who wrote the text or, if no author is listed, the publisher; if the source is a social media post, the poster's username should be used if no real name is specific.
  • date (optional) – The date the text was originally published or posted. Should be fully written out in the Month Day, Year format.
  • url (required) – The direct URL to the page in question. An archived URL from the Internet Archive may be used if the original page is inaccessible.
  • title (optional) – The title of the article, or, if no title is specified, the name of the webpage (visible on its tab at the top of the browser). Quotations are automatically added.
  • site (optional) – The name of the website, usually seen on the site's homepage or about page. If it is not listed, use the hostname as seen in the URL (e.g. example.com).
  • archive-date – The date the page was archived on the Internet Archive. Only use if using an archived link.
  • retrieved – The date the page was used on Nookipedia as a source (should be the current date unless retroactively adding the parameter).
  • language – The language of the page in question. Only to be used for non-English sources.

Example

Example text.{{Cite web|author=Samuel Claiborn|date=March 16, 2020|url=https://www.ign.com/articles/animal-crossing-new-horizons-review-for-switch|title=Animal Crossing: New Horizons Review|site=IGN|retrieved=September 10, 2020}}

Example text.[1]

  1. Samuel Claiborn (March 16, 2020). "Animal Crossing: New Horizons Review". IGN. Retrieved September 10, 2020.