Template:Cite web/doc: Difference between revisions

Consensus was to leave capitalization alone where it is traditionally lower case. See Template talk:Cite web #Upper case form of template name.
imported>NullSpace
m (redundent)
imported>Eubulides
(Consensus was to leave capitalization alone where it is traditionally lower case. See Template talk:Cite web #Upper case form of template name.)
Line 12:
Citations within a page should use consistent formats. However, there is no consensus about which format is best. The following examples are for citations where one or more authors are listed in a single {{para|author|<var>authors</var>}} parameter, using any format. Also shown below are three separate date formats that are commonly used in Wikipedia:
 
;YYYY-MM-DD: <code><nowiki>{{Citecite web |url= |title= |author= |date= |work= |publisher= |accessdate=</nowiki>{{#time: Y-m-d }}<nowiki> }}</nowiki></code>
 
;Day Month Year: <code><nowiki>{{Citecite web |url= |title= |author= |date= |work= |publisher= |accessdate=</nowiki>{{#time: j F Y }}<nowiki> }}</nowiki></code>
 
;Month Day, Year: <code><nowiki>{{Citecite web |url= |title= |author= |date= |work= |publisher= |accessdate=</nowiki>{{#time: F j, Y }}<nowiki> }}</nowiki></code>
 
=== Common forms with last1, first1; last2, first2 ===
Line 22:
The examples below will suffice for up to two authors each with first and last names; for more, just create more parameters in a similar style:
 
;YYYY-MM-DD: <code><nowiki>{{Citecite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=</nowiki>{{#time: Y-m-d }}<nowiki> }}</nowiki></code>
 
;Day Month Year: <code><nowiki>{{Citecite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=</nowiki>{{#time: j F Y }}<nowiki> }}</nowiki></code>
 
;Month Day, Year: <code><nowiki>{{Citecite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=</nowiki>{{#time: F j, Y }}<nowiki> }}</nowiki></code>
 
=== All parameters ===
Line 32:
When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed.
 
;All parameters, horizontal layout: <code><nowiki>{{Citecite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |work= |publisher= |location= |page= |pages= |language= |trans_title= |format= |doi= |date= |month= |year= |archiveurl= |archivedate= |accessdate= |quote= |ref= |separator= |postscript= }}</nowiki></code>
 
;All parameters, vertical layout:
<pre>
{{Citecite web
| url =
| title =
Line 102:
==== Duplicate periods ====
 
By default, {{tl|Citecite web}} separates fields with periods, so don't encode a field ending with a period or a duplicate period will be added. Example: "publisher=Camelot, Inc" will correctly show as <code>Camelot, Inc.</code> but "publisher=Camelot, Inc." will incorrectly show as <code>Camelot, Inc..</code>
 
== Examples ==
 
;Some standard use cases
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 115:
|work=Encyclopedia of Things
|accessdate=6 July 2005
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 125:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 132:
|work=Encyclopedia of things
|accessdate=6 July 2005
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 141:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 147:
|date=30 April 2005
|accessdate=6 July 2005
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 155:
}}</span>
 
*<code><nowiki>{{Citecite web
||url=http://www.example.org/
|title=My Favorite Things, Part II
author=Doe, John
|accessdate=6 July 2005
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 167:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
|accessdate=6 July 2005
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
Line 177:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.nfl.com/rulebook/digestofrules
|title=Digest of Rules
|publisher=National Football League
|accessdate=6 July 2005
}}</nowiki></code><br>→ <span style="background:white">{{Citecite web
|url=http://www.nfl.com/rulebook/digestofrules
|title=Digest of Rules
Line 190:
 
;Using format
*<code><nowiki>{{Citecite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
Line 196:
|format=PDF
|accessdate=July 6, 2005
}}</nowiki></code><br/> → <span style="background:white">{{Citecite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
Line 205:
 
;Foreign language and translated title
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=Honni soit qui mal y pense
Line 213:
|language=French
|trans_title=Shame on those who think evil
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=Honni soit qui mal y pense
Line 224:
 
;coauthors
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=Our Favorite Things
Line 234:
|work=Encyclopedia of Things
|accessdate=16 May 2006
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=Our Favorite Things
Line 246:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=Our Favorite Things
Line 256:
|work=Encyclopedia of Things
|accessdate=16 May 2006
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=Our Favorite Things
Line 269:
 
;No author
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=Index of Sharp Things
Line 276:
|work=Encyclopedia of Things
|accessdate=16 May 2006
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=Index of Sharp Things
Line 287:
;No author, no publisher
This abbreviated format should only be used when the editor cannot determine the publisher and author.
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=Index of Sharp Things
Line 293:
|work=Encyclopedia of Things
|accessdate=6 July 2005
}}</nowiki></code></br>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=Index of Sharp Things
Line 301:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.example.org/
|title=Index of Sharp Things
|date=30 April 2005
|accessdate=6 July 2005}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.example.org/
|title=Index of Sharp Things
Line 311:
|accessdate=6 July 2005}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
Line 318:
|accessdate=July 6, 2005
|language=Greek
}}</nowiki></code><br/> → <span style="background:white">{{Citecite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
Line 328:
 
;Using "archiveurl" and "archivedate" for webpages that have been archived
*<code><nowiki>{{Citecite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
Line 336:
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf
|archivedate=2005-09-11
}}</nowiki></code><br/> → <span style="background:white">{{Citecite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
Line 346:
}}</span>
 
*<code><nowiki>{{Citecite web
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm
|title=Interview with Maggie Downs
Line 353:
|archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm
|archivedate=2006-04-26
}}</nowiki></code><br/> → <span style="background:white">{{Citecite web
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm
|title=Interview with Maggie Downs
Line 363:
 
;Using "quote"
*<code><nowiki>{{Citecite web
|url=http://www.webexhibits.org/daylightsaving/c.html
|title=Daylight saving time: rationale and original idea
Line 370:
|accessdate=2009-09-27
|quote=...&amp;nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&amp;nbsp;...'
}}</nowiki></code><br/>→ <span style="background:white">{{Citecite web
|url=http://www.webexhibits.org/daylightsaving/c.html
|title=Daylight saving time: rationale and original idea
Anonymous user