Template:Cite web/doc: Difference between revisions
imported>Coffeeandcrumbs (- empty autovalue) |
imported>A876 (consistently list "url-status" before "archive-url" and "archive-date" because they are very linked. list "access-date" before every archive-related param ("url-status" etc.). repaired some prior damage to the hard-to-edit table → revert will damage → must edit.) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{ |
{{High-use|approximately 3000000}} |
||
{{AWB standard installation}} |
{{AWB standard installation}} |
||
{{csdoc|lua}} |
{{csdoc|lua}} |
||
Line 27: | Line 27: | ||
|publisher= |
|publisher= |
||
|access-date= |
|access-date= |
||
|quote= |
|quote=}} |
||
</pre> |
</pre> |
||
{{end}} |
{{end}} |
||
{{csdoc|usage full}} |
{{csdoc|usage full}} |
||
:<code><nowiki>{{cite web |url= |url-access= |title= |last= |first= |author= |author-link= |last2= |first2= |author2= |author-link2= |date= |year= |orig-year= |editor-last= |editor-first= |editor= |editor-link= |editor2-last= |editor2-first= |editor2-link= |editors= |department= |website= |series= |publisher= |agency= |location= |page= |pages= |at= |language= |script-title= |trans-title= |type= |format= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= | |
:<code><nowiki>{{cite web |url= |url-access= |title= |last= |first= |author= |author-link= |last2= |first2= |author2= |author-link2= |date= |year= |orig-year= |editor-last= |editor-first= |editor= |editor-link= |editor2-last= |editor2-first= |editor2-link= |editors= |department= |website= |series= |publisher= |agency= |location= |page= |pages= |at= |language= |script-title= |trans-title= |type= |format= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |access-date= |url-status= |archive-url= |archive-date= |via= |quote= |ref= |postscript= |subscription= |registration=}}</nowiki></code> |
||
{{end}} |
{{end}} |
||
{{csdoc|usage vertical}} |
{{csdoc|usage vertical}} |
||
Line 38: | Line 38: | ||
|url= |
|url= |
||
|url-access= |
|url-access= |
||
⚫ | |||
|title= |
|title= |
||
|last= |
|last= |
||
Line 89: | Line 88: | ||
|zbl= |
|zbl= |
||
|id= |
|id= |
||
⚫ | |||
⚫ | |||
|archive-url= |
|archive-url= |
||
|archive-date= |
|archive-date= |
||
⚫ | |||
|via= |
|via= |
||
|quote= |
|quote= |
||
Line 97: | Line 97: | ||
|postscript= |
|postscript= |
||
|subscription= |
|subscription= |
||
|registration= |
|registration=}} |
||
</pre> |
</pre> |
||
{{csdoc|usage vertical mid}} |
{{csdoc|usage vertical mid}} |
||
Line 154: | Line 154: | ||
|
|
||
|
|
||
url |
|||
url |
|||
url, archive-date |
url, archive-date |
||
archive-url |
archive-url |
||
|
|||
url |
|||
url |
|||
|
|
||
|
|
||
Line 170: | Line 171: | ||
|
|
||
required |
required |
||
|
|||
|
|||
|
|||
|
|||
|
|
||
|
|
||
Line 228: | Line 233: | ||
{{csdoc|usage vertical end}} |
{{csdoc|usage vertical end}} |
||
===Choosing between {{tlf| |
===Choosing between {{tlf|cite web}} and {{tlf|cite news}}=== |
||
{{anchor|Consistency}} |
{{anchor|Consistency}} |
||
Before 2014, editors had to decide whether to use {{tl| |
Before 2014, editors had to decide whether to use {{tl|cite web}} or {{tl|cite news}} based on their features. In 2014, {{em|most of}} the differences between the two templates were eliminated. |
||
As of {{diff|Module:Citation/CS1|732205428|723907342|29 July 2016}}, {{tlf| |
As of {{diff|Module:Citation/CS1|732205428|723907342|29 July 2016}}, {{tlf|cite web}} and {{tlf|cite news}} have the following differences: |
||
* {{tlf| |
* {{tlf|cite news}} can be used for [[WP:OFFLINE|offline]] (paper) sources whereas {{tlf|cite web}} generates a missing URL error when no URL is provided |
||
* {{tlf| |
* {{tlf|cite news}} accepts {{para|issue}} and {{para|volume}} parameters while {{tlf|cite web}} does not (See {{section link|1=Help talk:Citation Style 1/Archive 10|2={{!}}volume=, {{!}}issue=, and {{!}}page(s)=}}; see also {{tlf|cite magazine}}.) |
||
But given the same set of valid parameters, their output is exactly the same: |
But given the same set of valid parameters, their output is exactly the same: |
||
<!-- ATTENTION! |
<!-- ATTENTION! |
||
Line 242: | Line 247: | ||
--> |
--> |
||
{| |
{| |
||
| ''' |
| '''cite web''': || {{cite web |url=http://blog.chron.com/techblog/2011/07/microsoft-envisions-a-universal-os-but-it-might-not-be-called-windows/ |title=Microsoft envisions a universal OS, but it might not be called Windows |last=Silverman |first=Dwight |date=July 15, 2011 |work=Houston Chronicle |publisher=Hearst Corporation |accessdate=May 26, 2015}} |
||
|- |
|- |
||
| ''' |
| '''cite news''': || {{cite news |url=http://blog.chron.com/techblog/2011/07/microsoft-envisions-a-universal-os-but-it-might-not-be-called-windows/ |title=Microsoft envisions a universal OS, but it might not be called Windows |last=Silverman |first=Dwight |date=July 15, 2011 |work=Houston Chronicle |publisher=Hearst Corporation |accessdate=May 26, 2015}} |
||
|} |
|} |
||
Line 405: | Line 410: | ||
}} |
}} |
||
=== |
===Multiple authors=== |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{cite web |
|m=<nowiki>{{cite web |
||
Line 435: | Line 440: | ||
}} |
}} |
||
=== |
===No author=== |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{cite web |
|m=<nowiki>{{cite web |
||
Line 453: | Line 458: | ||
}} |
}} |
||
=== |
===No author, no publisher=== |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{cite web |
|m=<nowiki>{{cite web |
||
Line 525: | Line 530: | ||
|date=March 31, 2006 |
|date=March 31, 2006 |
||
|publisher=The Desert Sun |
|publisher=The Desert Sun |
||
⚫ | |||
|archive-url=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm |
|archive-url=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm |
||
|archive-date=April 26, 2006 |
|archive-date=April 26, 2006}}</nowiki> |
||
|url-status=live}}</nowiki> |
|||
|r={{cite web |
|r={{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 |
||
Line 533: | Line 538: | ||
|date=March 31, 2006 |
|date=March 31, 2006 |
||
|publisher=The Desert Sun |
|publisher=The Desert Sun |
||
⚫ | |||
|archive-url=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm |
|archive-url=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm |
||
|archive-date=April 26, 2006 |
|archive-date=April 26, 2006}} |
||
⚫ | |||
}} |
}} |
||
</div> |
</div> |
||
<div style="width:auto; overflow:scroll">With {{para|url-status|unfit}} or {{code|usurped}}, the original is not linked at all: |
<div style="width:auto; overflow:scroll">With {{para|url-status|unfit}} or {{code|usurped}}, the original is not linked at all: |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{ |
|m=<nowiki>{{cite web |
||
|url=http://www.wunderground.com/global/stations/03772.html |
|url=http://www.wunderground.com/global/stations/03772.html |
||
|title=London, United Kingdom Forecast |
|title=London, United Kingdom Forecast: Weather Underground (weather and elevation at Heathrow Airport) |
||
|publisher=The Weather Underground |
|publisher=The Weather Underground |
||
|access-date=</nowiki>{{date}}<nowiki> |
|access-date=</nowiki>{{date}}<nowiki> |
||
| archive-url=https://www.webcitation.org/5yo0HaAk7 |archive-date=19 May 2011 |
|url-status=unfit |archive-url=https://www.webcitation.org/5yo0HaAk7 |archive-date=19 May 2011}}</nowiki> |
||
|r={{ |
|r={{cite web |
||
|url=http://www.wunderground.com/global/stations/03772.html |
|url=http://www.wunderground.com/global/stations/03772.html |
||
|title=London, United Kingdom Forecast |
|title=London, United Kingdom Forecast: Weather Underground (weather and elevation at Heathrow Airport) |
||
|publisher=The Weather Underground |
|publisher=The Weather Underground |
||
|access-date={{date}} |
|access-date={{date}} |
||
| archive-url=https://www.webcitation.org/5yo0HaAk7 |archive-date=19 May 2011 |
|url-status=unfit |archive-url=https://www.webcitation.org/5yo0HaAk7 |archive-date=19 May 2011}} |
||
}} |
}} |
||
</div> |
</div> |
||
Line 640: | Line 645: | ||
==TemplateData== |
==TemplateData== |
||
{{Warning |image=Stop hand nuvola.svg |This section contains configuration data used by editing tools and automated bots. Changes to this data can result in widespread and unintended effects. For more information see [[Help: |
{{Warning |image=Stop hand nuvola.svg |This section contains configuration data used by editing tools and automated bots. Changes to this data can result in widespread and unintended effects. For more information see [[Help:Citation Style 1#TemplateData]]}} |
||
{{TemplateData header}} |
{{TemplateData header}} |
||
<templatedata> |
<templatedata> |
||
Line 648: | Line 653: | ||
"url": { |
"url": { |
||
"label": "URL", |
"label": "URL", |
||
"description": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"http://...\" or maybe even the |
"description": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"http://...\" or maybe even the protocol relative scheme \"//...\"", |
||
"type": "string", |
"type": "string", |
||
"aliases": [ |
"aliases": [ |
Revision as of 20:37, 25 November 2019
Template:Documentation subpage Template:High-use Template:AWB standard installation Template:Lua Template:Infobox
This Citation Style 1 template is used to create citations for web sources that are not characterized by another CS1 template.
Usage
Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Delete unused parameters to avoid clutter in the edit window. Some samples may include the current date. If the date is not current, then Template:Purge the page.
For references with author credit
For references without author credit
|