Difference between revisions of "Template:Cite web"

From Valve Developer Community
Jump to: navigation, search
(Borrowing code from the Zelda wiki for web citations, if necessary.)
 
Line 1: Line 1:
 
<includeonly>{{#if:{{{quote|}}}|''"{{{quote|}}}"'' —}} {{#if:{{{author|}}}|{{{author}}},}} [{{{url|}}} {{{title|}}}], {{{site|}}}{{#if:{{{type|}}}|&nbsp;({{{type|}}})}}{{#if:{{{published|}}}|, published {{{published}}}}}{{#if:{{{retrieved|}}}|, retrieved {{{retrieved}}}}}.</includeonly><noinclude>
 
<includeonly>{{#if:{{{quote|}}}|''"{{{quote|}}}"'' —}} {{#if:{{{author|}}}|{{{author}}},}} [{{{url|}}} {{{title|}}}], {{{site|}}}{{#if:{{{type|}}}|&nbsp;({{{type|}}})}}{{#if:{{{published|}}}|, published {{{published}}}}}{{#if:{{{retrieved|}}}|, retrieved {{{retrieved}}}}}.</includeonly><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 ==
 
== Usage ==
 
To use, enter this code:<br>
 
To use, enter this code:<br>
{{NoWikiTemp|normal| url{{=}} | title{{=}} | site{{=}} }}
+
<nowiki>{{cite web|url= |title= |site= |published= |retrieved=}}</nowiki>
  
 
The full code is as follows:<br>
 
The full code is as follows:<br>
{{NoWikiTemp|normal|quote{{=}} |author{{=}} |published{{=}} |retrieved {{=}} |url{{=}} |title{{=}} |site{{=}} |type{{=}} }}
+
<nowiki>{{cite web|quote=|author=|url=|title=|site=|type=|published=|retrieved=}}</nowiki>
  
{{Parameter|Quote|(Optional) The quoted text from the site|Optional}}
+
* Quote: The quoted text from the site (optional)
{{Parameter|Author|(Optional) The name of the person who posted or published the text|Optional}}
+
* Author: The name of the person who posted or published the text (optional)
{{Parameter|Published|(Optional) The date the text was posted or published|Optional}}
+
* Published: The date the text was posted or published (optional)
{{Parameter|Retrieved|(Optional) The date the article was accessed for the reference|Optional}}
+
* Retrieved: The date the article was accessed for the reference (optional)
{{Parameter|Url|The direct URL to the page in question|Required}}
+
* URL: The direct URL to the page in question (required)
{{Parameter|Title|The name of the article or document|Required}}
+
* 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}}
+
* Site: The name of the site that the article or document is hosted on (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}}
+
* Type: 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==
 
==Examples==
<pre>{{cite web|url= http://www.zeldawiki.org |title= Main Page |site= Zelda Wiki }}</pre>
+
<pre>{{cite web|url= http://www.example.com |title= Example |site= Example website}}</pre>
  
:{{cite web|url= http://www.zeldawiki.org|title= Main Page|site= Zelda Wiki}}
+
:{{cite web|url= http://www.example.com|title= Example|site=Example website}}
  
  

Revision as of 09:04, 9 October 2015

Usage

To use, enter this code:
{{cite web|url= |title= |site= |published= |retrieved=}}

The full code is as follows:
{{cite web|quote=|author=|url=|title=|site=|type=|published=|retrieved=}}

  • Quote: The quoted text from the site (optional)
  • Author: The name of the person who posted or published the text (optional)
  • Published: The date the text was posted or published (optional)
  • Retrieved: The date the article was accessed for the reference (optional)
  • URL: The direct URL to the page in question (required)
  • Title: The name of the article or document (required)
  • Site: The name of the site that the article or document is hosted on (required)
  • Type: 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

{{cite web|url= http://www.example.com |title= Example |site= Example website}}
Example, Example website.


{{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}}
"Hello world!" — John Smith, Hello!, Testing.Org, published May 13, 2001, retrieved July 24, 2009.