Template:Cite web: Difference between revisions

m
1 revision imported
(added info from https://en.wikipedia.org/w/index.php?title=Wikipedia:Citing_sources&oldid=787136846 see there for contributors)
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1:
<includeonly>{{#invoke:citation/CS1|citation
<includeonly>{{#if:{{{quote|}}}|''"{{{quote|}}}"'' —}} {{#if:{{{author|}}}|{{{author}}},}} [{{{url|}}} {{{title|}}}], {{{site|}}}{{#if:{{{type|}}}|&nbsp;({{{type|}}})}}{{#if:{{{published|}}}|, published {{{published}}}}}{{#if:{{{retrieved|}}}|, retrieved {{{retrieved}}}}}.</includeonly><noinclude>
|CitationClass=web
== Purpose ==
}}</includeonly><noinclude>
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.
{{documentation}}
 
</noinclude>
== Usage ==
To use, enter this code:<br>
{{NoWikiTemp|normal| url{{=}} | title{{=}} | 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><ref>{{cite web|url= https://bleistift.blog |title= Bleistift Blog Landing Page |site= Bleistift Blog }}</ref></pre>
 
:{{cite web|url= https://bleistift.blog |title= Bleistift Blog Landing Page |site= Bleistift Blog }}
 
 
<pre><ref>{{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}}</ref></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}}
 
==Repeated citations==
 
For multiple use of the same inline citation or footnote, you can use the named references feature, choosing a name to identify the inline citation, and typing
<pre><ref name="name">text of the citation</ref></pre>
Thereafter, the same named reference may be reused any number of times either before or after the defining use by typing just
<pre><ref name="name" /></pre>
The use of the slash before the > means that the tag is self-closing, and the </ref> used to close other references must not be used in addition.
 
[[Category:Formatting Templates|C]]</noinclude>