Difference between revisions of "Template:Cite web"

From Nookipedia, the Animal Crossing wiki
(Created page with "<includeonly>{{#if:{{{quote|}}}|<i>"{{{quote|}}}"</i> —}} {{#if:{{{author|}}}|{{{author}}},}} [{{{url|}}} {{{title|}}}], {{{site|}}} {{#if:{{{type|}}}|({{{type|}}})}}{{#if:{{{p...")
 
(Undo revision 872865 by HylianAngel (talk) Didn't work.)
Tag: Undo
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{quote|}}}|<i>"{{{quote|}}}"</i> —}} {{#if:{{{author|}}}|{{{author}}},}} [{{{url|}}} {{{title|}}}], {{{site|}}} {{#if:{{{type|}}}|({{{type|}}})}}{{#if:{{{published|}}}|<i>, Published: {{{published}}}</i>}}{{#if:{{{retrieved|}}}|<i>, Retrieved: {{{retrieved}}}</i>}}</includeonly><noinclude>
+
<includeonly>{{#if:{{{author|}}}|{{{author}}}}}{{#if:{{{date|}}}|&nbsp;({{{date}}})}}{{#if:{{{author|}}}|.}} [{{{url|}}} {{#if:{{{title|}}}|"{{{title}}}"].|].}} {{#if:{{{site|}}}|''{{{site}}}''.}} {{#if:{{{archive-date|}}}| {{#if:{{{archive-url|}}}|[{{{archive-url|}}} Archived]|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>
 
{{NoWikiTemp|normal| url{{=}} | titele{{=}} | site{{=}} }}
 
 
 
The full code is as follows:<br>
 
{{NoWikiTemp|normal|quote{{=}} |author{{=}} |published{{=}} |retrieved {{=}} |url{{=}} |title{{=}} |site{{=}} |type{{=}} }}
 
 
 
{{Parameter|Quote|(Optional) The quoted text from the site|Optional}}
 
{{Parameter|Author|(Optional) The name of the person who posted or published the text|Optional}}
 
{{Parameter|Published|(Optional) The date the text was posted or published|Optional}}
 
{{Parameter|Retrieved|(Optional) The date the article was accessed for the reference|Optional}}
 
{{Parameter|Url|The direct URL to the page in question|Required}}
 
{{Parameter|Title|The name of the article or document|Required}}
 
{{Parameter|Site|The name of the site that the article or document is hosted on (eg. IGN, Nintendo.com, etc.)|Required}}
 
{{Parameter|Type|(Optional) The type of page you're linking to, if it is not a regular HTML page. You should then say in this field what type of document it is (eg. "PDF File", "Word Document", "PNG Image", etc.)|Optional}}
 
 
 
==Examples==
 
<pre>{{cite web|url= http://www.zeldawiki.org |title= Main Page |site= Zelda Wiki }}</pre>
 
 
 
:{{cite web|url= http://www.zeldawiki.org|title= Main Page|site= Zelda Wiki}}</code>
 
 
 
 
 
<pre>{{Cite web|quote= Hello world!|author= John Smith |published= May 13, 2001 |retrieved= July 24, 2009 |url= http://testing.org/ |title= Hello! |site= Testing.Org}}</pre>
 
 
 
:{{Cite web|quote= Hello world!|author= John Smith |published= May 13, 2001 |retrieved= July 24, 2009 |url= http://testing.org/hello.png |title= Hello! |site= Testing.Org}}
 
[[Category:Formatting Templates|C]]</noinclude>
 
 
 
==Origin==
 
This template was originally from ZeldaWiki.
 

Revision as of 08:46, June 27, 2022

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.