Template:Cite web/doc: Difference between revisions
imported>GreenC (→TemplateData: warning banner) |
Krisrs1128 (talk | contribs) m (Protected "Template:Cite web/doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite))) |
||
(25 intermediate revisions by 16 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{high-risk| approximately 3000000 }} |
|||
{{AWB standard installation}} |
{{AWB standard installation}} |
||
{{csdoc|lua}} |
{{csdoc|lua}} |
||
Line 27: | Line 26: | ||
|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= }}</nowiki></code> |
||
{{end}} |
{{end}} |
||
{{csdoc|usage vertical}} |
{{csdoc|usage vertical}} |
||
Line 38: | Line 37: | ||
|url= |
|url= |
||
|url-access= |
|url-access= |
||
⚫ | |||
|title= |
|title= |
||
|last= |
|last= |
||
Line 89: | Line 87: | ||
|zbl= |
|zbl= |
||
|id= |
|id= |
||
⚫ | |||
⚫ | |||
|archive-url= |
|archive-url= |
||
|archive-date= |
|archive-date= |
||
⚫ | |||
|via= |
|via= |
||
|quote= |
|quote= |
||
|ref= |
|ref= |
||
|postscript= |
|postscript=}} |
||
|subscription= |
|||
|registration= }} |
|||
</pre> |
</pre> |
||
{{csdoc|usage vertical mid}} |
{{csdoc|usage vertical mid}} |
||
Line 154: | Line 151: | ||
|
|
||
|
|
||
url |
|||
url |
|||
url, archive-date |
url, archive-date |
||
archive-url |
archive-url |
||
|
|||
url |
|||
url |
|||
|
|
||
|
|
||
Line 170: | Line 168: | ||
|
|
||
required |
required |
||
|
|||
|
|||
|
|||
|
|||
|
|
||
|
|
||
Line 228: | Line 230: | ||
{{csdoc|usage vertical end}} |
{{csdoc|usage vertical end}} |
||
===Choosing between |
===Choosing between [[Template:cite web]] and [[Template: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 {{slink|Help:Citation Style 1#Pages}}; see also {{tl|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 244: | ||
--> |
--> |
||
{| |
{| |
||
| ''' |
| '''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 |access-date=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 |access-date=May 26, 2015}} |
||
|} |
|} |
||
Line 341: | Line 343: | ||
}} |
}} |
||
===Using format=== |
===Using "format="=== |
||
When this template detects a link whose URL includes an [[filename extension|extension]] of ".pdf" or ".PDF", typical of [[PDF]] files, it automatically displays a PDF icon after the link (regardless of whether the link goes to a PDF file or to an HTML landing page, typical of paysites). It also internally acts as if {{para|format|PDF}} had been specified, which displays " (PDF)" after the icon. (In this case, an explicit {{para|format|PDF}} parameter would be redundant, so it ''is not'' recommended to add it. Users may remove it. Citation bot, when invoked, will remove it. ([[User talk:Citation bot/Archive 13#Remove format=pdf and variants when URLs end in .pdf|ref]])) |
|||
<div style="width:auto; overflow:scroll"> |
<div style="width:auto; overflow:scroll"> |
||
{{markup2| |
{{markup2| |
||
Line 348: | Line 351: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|publisher=International Narcotics Control Board |
|publisher=International Narcotics Control Board |
||
⚫ | |||
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
||
|r={{cite web |
|r={{cite web |
||
Line 354: | Line 356: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|publisher=International Narcotics Control Board |
|publisher=International Narcotics Control Board |
||
|access-date={{date}}}} |
|||
}} |
|||
</div> |
|||
If the link is to a PDF file that ''is not'' automatically recognizable by its extension, this template does not display the PDF icon. You may add the parameter {{para|format|PDF}}, which displays " (PDF)" after the link. |
|||
<div style="width:auto; overflow:scroll"> |
|||
{{markup2| |
|||
|m=<nowiki>{{cite web |
|||
|url=http://www.sample.com/somePDFdocument.000 |
|||
|title=Some PDF Document |
|||
|publisher=Sample Int'l |
|||
|format=PDF |
|format=PDF |
||
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
|||
|r={{cite web |
|||
|url=http://www.sample.com/somePDFdocument.000 |
|||
|title=Some PDF Document |
|||
|publisher=Sample Int'l |
|||
⚫ | |||
|access-date={{date}}}} |
|||
}} |
|||
</div> |
|||
For links to files in other formats, no icon is displayed. For example, for an [[.odt]] file, you may add the parameter {{para|format|ODT}}, which displays " (ODT)" after the link. |
|||
<div style="width:auto; overflow:scroll"> |
|||
{{markup2| |
|||
|m=<nowiki>{{cite web |
|||
|url=http://www.sample.com/someODTdocument.odt |
|||
|title=Some ODT Document |
|||
|publisher=Sample Int'l |
|||
⚫ | |||
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
|||
|r={{cite web |
|||
|url=http://www.sample.com/someODTdocument.odt |
|||
|title=Some ODT Document |
|||
|publisher=Sample Int'l |
|||
⚫ | |||
|access-date={{date}}}} |
|access-date={{date}}}} |
||
}} |
}} |
||
Line 405: | Line 442: | ||
}} |
}} |
||
=== |
===Multiple authors=== |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{cite web |
|m=<nowiki>{{cite web |
||
Line 435: | Line 472: | ||
}} |
}} |
||
=== |
===No author=== |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{cite web |
|m=<nowiki>{{cite web |
||
Line 453: | Line 490: | ||
}} |
}} |
||
=== |
===No author, no publisher=== |
||
{{markup2| |
{{markup2| |
||
|m=<nowiki>{{cite web |
|m=<nowiki>{{cite web |
||
Line 485: | Line 522: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
⚫ | |||
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
||
|language=Greek}}</nowiki> |
|language=Greek}}</nowiki> |
||
Line 492: | Line 528: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
⚫ | |||
|access-date={{date|{{date}}|iso}} |
|access-date={{date|{{date}}|iso}} |
||
|language=Greek}} |
|language=Greek}} |
||
Line 504: | Line 539: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
|format=PDF |
|||
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
||
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
||
Line 512: | Line 546: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
|format=PDF |
|||
|access-date={{date|{{date}}|iso}} |
|access-date={{date|{{date}}|iso}} |
||
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
||
Line 525: | Line 558: | ||
|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 566: | ||
|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 582: | Line 615: | ||
===COinS=== |
===COinS=== |
||
{{csdoc|coins}} |
{{csdoc|coins}} |
||
===What's new=== |
|||
{{csdoc|whats new}} |
|||
===Deprecated=== |
===Deprecated=== |
||
Line 611: | Line 647: | ||
{{csdoc|pages}} |
{{csdoc|pages}} |
||
====URL==== |
===={{Anchor|url}}URL==== |
||
{{csdoc|url}} |
{{csdoc|url}} |
||
Line 637: | Line 673: | ||
==TemplateData== |
==TemplateData== |
||
{{Warning |This |
{{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 645: | Line 681: | ||
"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": [ |
||
Line 707: | Line 743: | ||
], |
], |
||
"type": "line", |
"type": "line", |
||
"suggested": true |
"suggested": true |
||
"autovalue": "" |
|||
}, |
}, |
||
"first": { |
"first": { |
||
Line 849: | Line 884: | ||
"language": { |
"language": { |
||
"label": "Language", |
"label": "Language", |
||
"description": "The language in which the source is written, if not English; use the full language name; do not use icons or templates", |
"description": "The language in which the source is written, if not English; use the full language name or one of the standard MediaWiki language codes; do not use icons or templates; separate multiple languages with commas (with no 'and' before the last one)", |
||
"type": "string", |
"type": "string", |
||
"aliases": [ |
"aliases": [ |
||
"lang" |
"lang" |
||
] |
], |
||
"example": "de, fr, es" |
|||
}, |
}, |
||
"script-title": { |
"script-title": { |
||
Line 863: | Line 899: | ||
"label": "Translated title", |
"label": "Translated title", |
||
"description": "An English language title, if the source cited is in a foreign language; 'language' is recommended", |
"description": "An English language title, if the source cited is in a foreign language; 'language' is recommended", |
||
"type": "string" |
"type": "string" |
||
⚫ | |||
"trans_title" |
|||
⚫ | |||
}, |
}, |
||
"type": { |
"type": { |
||
Line 1,008: | Line 1,041: | ||
], |
], |
||
"description": "Date when the original URL was archived; do not wikilink", |
"description": "Date when the original URL was archived; do not wikilink", |
||
"type": " |
"type": "date", |
||
"suggested": true |
"suggested": true |
||
⚫ | |||
"archive-format": { |
|||
"label": "Archive format", |
|||
"description": "Format of the archived copy; examples: PDF, DOC, XLS; do not specify HTML", |
|||
⚫ | |||
}, |
}, |
||
"quote": { |
"quote": { |
||
Line 1,220: | Line 1,258: | ||
] |
] |
||
}, |
}, |
||
" |
"last-author-amp": { |
||
"label": "Last author ampersand", |
"label": "Last author ampersand", |
||
"description": "When set to any value, changes the separator between the last two names of the author list to 'space ampersand space'", |
"description": "When set to any value, changes the separator between the last two names of the author list to 'space ampersand space'", |
||
"type": "string" |
"type": "string", |
||
⚫ | |||
"lastauthoramp" |
|||
⚫ | |||
}, |
}, |
||
"editor2-last": { |
"editor2-last": { |
||
Line 1,403: | Line 1,444: | ||
"subscription": { |
"subscription": { |
||
"label": "Subscription required", |
"label": "Subscription required", |
||
"description": "Use 'url-access' instead", |
|||
"description": "When set to yes, displays “(subscription required)” to indicate an online source that requires subscription", |
|||
"type": "string" |
"type": "string", |
||
"deprecated": true |
|||
}, |
}, |
||
"registration": { |
"registration": { |
||
"label": "Registration required", |
"label": "Registration required", |
||
"description": "Use 'url-access' instead", |
|||
"description": "When set to yes, displays “(registration required)” to indicate an online source that requires registration", |
|||
"type": "string" |
"type": "string", |
||
"deprecated": true |
|||
}, |
}, |
||
"edition": { |
"edition": { |
||
Line 1,472: | Line 1,515: | ||
"example": "'dead' or 'live'", |
"example": "'dead' or 'live'", |
||
"type": "string", |
"type": "string", |
||
"default": "dead", |
"default": "'dead' if an Archive URL is entered", |
||
"autovalue": "live", |
"autovalue": "live", |
||
"suggested": true |
"suggested": true |
||
Line 1,478: | Line 1,521: | ||
}, |
}, |
||
"maps": { |
"maps": { |
||
"proveit": { |
|||
⚫ | |||
"textarea": [ |
|||
"quote" |
|||
] |
|||
⚫ | |||
"citoid": { |
"citoid": { |
||
"title": "title", |
"title": "title", |
||
Line 1,645: | Line 1,682: | ||
"archive-url", |
"archive-url", |
||
"archive-date", |
"archive-date", |
||
"archive-format", |
|||
"access-date", |
"access-date", |
||
"quote", |
"quote", |
||
Line 1,680: | Line 1,718: | ||
"author-separator", |
"author-separator", |
||
"display-authors", |
"display-authors", |
||
" |
"last-author-amp", |
||
"editor3-last", |
"editor3-last", |
||
"editor3-first", |
"editor3-first", |
Latest revision as of 19:33, 5 November 2020
Template:Documentation subpage 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
|