Template:Cite web/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
imported>Eubulides (→Common forms with last1, first1; last2, first2: Use same order here as in other uses.) |
imported>Debresser (Restore Cite web with capital. That is the name of the template, and what it should be. Common or not is another matter. We are giving the official documenttation here. Not how to do it wrong.) |
||
Line 12: | 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: |
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>{{ |
;YYYY-MM-DD: <code><nowiki>{{Cite web |url= |title= |author= |date= |work= |publisher= |accessdate=</nowiki>{{#time: Y-m-d }}<nowiki> }}</nowiki></code> |
||
;Day Month Year: <code><nowiki>{{ |
;Day Month Year: <code><nowiki>{{Cite web |url= |title= |author= |date= |work= |publisher= |accessdate=</nowiki>{{#time: j F Y }}<nowiki> }}</nowiki></code> |
||
;Month Day, Year: <code><nowiki>{{ |
;Month Day, Year: <code><nowiki>{{Cite web |url= |title= |author= |date= |work= |publisher= |accessdate=</nowiki>{{#time: F j, Y }}<nowiki> }}</nowiki></code> |
||
=== Common forms with last1, first1; last2, first2 === |
=== Common forms with last1, first1; last2, first2 === |
||
Line 22: | 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: |
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>{{ |
;YYYY-MM-DD: <code><nowiki>{{Cite web |last1= |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=</nowiki>{{#time: Y-m-d }}<nowiki> }}</nowiki></code> |
||
;Day Month Year: <code><nowiki>{{ |
;Day Month Year: <code><nowiki>{{Cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=</nowiki>{{#time: j F Y }}<nowiki> }}</nowiki></code> |
||
;Month Day, Year: <code><nowiki>{{ |
;Month Day, Year: <code><nowiki>{{Cite web |url= |title= |last1= |first1= |last2= |first2= |date= |work= |publisher= |accessdate=</nowiki>{{#time: F j, Y }}<nowiki> }}</nowiki></code> |
||
=== All parameters === |
=== All parameters === |
||
Line 32: | Line 32: | ||
When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed. |
When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed. |
||
;All parameters, horizontal layout: <code><nowiki>{{ |
;All parameters, horizontal layout: <code><nowiki>{{Cite 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: |
;All parameters, vertical layout: |
||
<pre> |
<pre> |
||
{{ |
{{Cite web |
||
| url = |
| url = |
||
| title = |
| title = |
||
Line 105: | Line 105: | ||
;Some standard use cases |
;Some standard use cases |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 113: | Line 113: | ||
|work=Encyclopedia of Things |
|work=Encyclopedia of Things |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 123: | Line 123: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 130: | Line 130: | ||
|work=Encyclopedia of things |
|work=Encyclopedia of things |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 139: | Line 139: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 145: | Line 145: | ||
|date=30 April 2005 |
|date=30 April 2005 |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 153: | Line 153: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
||url=http://www.example.org/ |
||url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
author=Doe, John |
author=Doe, John |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 165: | Line 165: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=My Favorite Things, Part II |
|title=My Favorite Things, Part II |
||
Line 175: | Line 175: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.nfl.com/rulebook/digestofrules |
|url=http://www.nfl.com/rulebook/digestofrules |
||
|title=Digest of Rules |
|title=Digest of Rules |
||
|publisher=National Football League |
|publisher=National Football League |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code><br>→ <span style="background:white">{{ |
}}</nowiki></code><br>→ <span style="background:white">{{Cite web |
||
|url=http://www.nfl.com/rulebook/digestofrules |
|url=http://www.nfl.com/rulebook/digestofrules |
||
|title=Digest of Rules |
|title=Digest of Rules |
||
Line 188: | Line 188: | ||
;Using format |
;Using format |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.incb.org/pdf/e/list/green.pdf |
|url=http://www.incb.org/pdf/e/list/green.pdf |
||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
Line 194: | Line 194: | ||
|format=PDF |
|format=PDF |
||
|accessdate=July 6, 2005 |
|accessdate=July 6, 2005 |
||
}}</nowiki></code><br/> → <span style="background:white">{{ |
}}</nowiki></code><br/> → <span style="background:white">{{Cite web |
||
|url=http://www.incb.org/pdf/e/list/green.pdf |
|url=http://www.incb.org/pdf/e/list/green.pdf |
||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
Line 203: | Line 203: | ||
;Foreign language and translated title |
;Foreign language and translated title |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Honni soit qui mal y pense |
|title=Honni soit qui mal y pense |
||
Line 211: | Line 211: | ||
|language=French |
|language=French |
||
|trans_title=Shame on those who think evil |
|trans_title=Shame on those who think evil |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Honni soit qui mal y pense |
|title=Honni soit qui mal y pense |
||
Line 222: | Line 222: | ||
;coauthors |
;coauthors |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Our Favorite Things |
|title=Our Favorite Things |
||
Line 232: | Line 232: | ||
|work=Encyclopedia of Things |
|work=Encyclopedia of Things |
||
|accessdate=16 May 2006 |
|accessdate=16 May 2006 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Our Favorite Things |
|title=Our Favorite Things |
||
Line 244: | Line 244: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Our Favorite Things |
|title=Our Favorite Things |
||
Line 254: | Line 254: | ||
|work=Encyclopedia of Things |
|work=Encyclopedia of Things |
||
|accessdate=16 May 2006 |
|accessdate=16 May 2006 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Our Favorite Things |
|title=Our Favorite Things |
||
Line 267: | Line 267: | ||
;No author |
;No author |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Index of Sharp Things |
|title=Index of Sharp Things |
||
Line 274: | Line 274: | ||
|work=Encyclopedia of Things |
|work=Encyclopedia of Things |
||
|accessdate=16 May 2006 |
|accessdate=16 May 2006 |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Index of Sharp Things |
|title=Index of Sharp Things |
||
Line 285: | Line 285: | ||
;No author, no publisher |
;No author, no publisher |
||
This abbreviated format should only be used when the editor cannot determine the publisher and author. |
This abbreviated format should only be used when the editor cannot determine the publisher and author. |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Index of Sharp Things |
|title=Index of Sharp Things |
||
Line 291: | Line 291: | ||
|work=Encyclopedia of Things |
|work=Encyclopedia of Things |
||
|accessdate=6 July 2005 |
|accessdate=6 July 2005 |
||
}}</nowiki></code></br>→ <span style="background:white">{{ |
}}</nowiki></code></br>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Index of Sharp Things |
|title=Index of Sharp Things |
||
Line 299: | Line 299: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Index of Sharp Things |
|title=Index of Sharp Things |
||
|date=30 April 2005 |
|date=30 April 2005 |
||
|accessdate=6 July 2005}}</nowiki></code><br/>→ <span style="background:white">{{ |
|accessdate=6 July 2005}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.example.org/ |
|url=http://www.example.org/ |
||
|title=Index of Sharp Things |
|title=Index of Sharp Things |
||
Line 309: | Line 309: | ||
|accessdate=6 July 2005}}</span> |
|accessdate=6 July 2005}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.incb.org/pdf/e/list/green.pdf |
|url=http://www.incb.org/pdf/e/list/green.pdf |
||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
Line 316: | Line 316: | ||
|accessdate=July 6, 2005 |
|accessdate=July 6, 2005 |
||
|language=Greek |
|language=Greek |
||
}}</nowiki></code><br/> → <span style="background:white">{{ |
}}</nowiki></code><br/> → <span style="background:white">{{Cite web |
||
|url=http://www.incb.org/pdf/e/list/green.pdf |
|url=http://www.incb.org/pdf/e/list/green.pdf |
||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
Line 326: | Line 326: | ||
;Using "archiveurl" and "archivedate" for webpages that have been archived |
;Using "archiveurl" and "archivedate" for webpages that have been archived |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.incb.org/pdf/e/list/green.pdf |
|url=http://www.incb.org/pdf/e/list/green.pdf |
||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
Line 334: | Line 334: | ||
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf |
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf |
||
|archivedate=2005-09-11 |
|archivedate=2005-09-11 |
||
}}</nowiki></code><br/> → <span style="background:white">{{ |
}}</nowiki></code><br/> → <span style="background:white">{{Cite web |
||
|url=http://www.incb.org/pdf/e/list/green.pdf |
|url=http://www.incb.org/pdf/e/list/green.pdf |
||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
Line 344: | Line 344: | ||
}}</span> |
}}</span> |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm |
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm |
||
|title=Interview with Maggie Downs |
|title=Interview with Maggie Downs |
||
Line 351: | Line 351: | ||
|archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm |
|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 |
|archivedate=2006-04-26 |
||
}}</nowiki></code><br/> → <span style="background:white">{{ |
}}</nowiki></code><br/> → <span style="background:white">{{Cite web |
||
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm |
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm |
||
|title=Interview with Maggie Downs |
|title=Interview with Maggie Downs |
||
Line 361: | Line 361: | ||
;Using "quote" |
;Using "quote" |
||
*<code><nowiki>{{ |
*<code><nowiki>{{Cite web |
||
|url=http://www.webexhibits.org/daylightsaving/c.html |
|url=http://www.webexhibits.org/daylightsaving/c.html |
||
|title=Daylight saving time: rationale and original idea |
|title=Daylight saving time: rationale and original idea |
||
Line 368: | Line 368: | ||
|accessdate=2009-09-27 |
|accessdate=2009-09-27 |
||
|quote=...&nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&nbsp;...' |
|quote=...&nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&nbsp;...' |
||
}}</nowiki></code><br/>→ <span style="background:white">{{ |
}}</nowiki></code><br/>→ <span style="background:white">{{Cite web |
||
|url=http://www.webexhibits.org/daylightsaving/c.html |
|url=http://www.webexhibits.org/daylightsaving/c.html |
||
|title=Daylight saving time: rationale and original idea |
|title=Daylight saving time: rationale and original idea |