Template:Cite web/doc: Difference between revisions

[unchecked revision][checked revision]
Content deleted Content added
m 1 revision imported
No edit summary
Tags: Manual revert 2017 source edit
 
(3 intermediate revisions by the same user not shown)
Line 5:
{{csdoc|lua}}
{{csdoc|cs1}}
{{csdoc|lead|web sources that are not characterized by another [[Help:Citation Style 1|CS1]] template. Do not use this template in the "[[WP:ELCITE|External links]]" section of articles}}
 
==Usage==
Line 11:
{{csdoc|usage common}}
For references with author credit
:<code><nowikisyntaxhighlight lang="wikitext" inline>{{cite web |url= |title= |last= |first= |date= |website= |publisher= |access-date= |quote=}}</nowiki></codesyntaxhighlight>
For references without author credit
:<code><nowikisyntaxhighlight lang="wikitext" inline>{{cite web |url= |title= |author=<!--Not stated--> |date= |website= |publisher= |access-date= |quote=}}</nowiki></codesyntaxhighlight>
{{end}}
{{csdoc|usage vertical common}}
<!-- Please synchronize this list with the corresponding one at the overview page [[Wikipedia:Citation templates#Examples]] -->
{{tj|cite web
<pre style="margin:0px; border:none; white-space:pre;">
| url=:
{{cite web
| title=:
|url=
| last=:
|title=
| first=:
|last=
| date=:
|first=
| website=:
|date=
| publisher=:
|website=
| access-date=:
|publisher=
| quote=}}:
|access-date=
}}
|quote=}}
</pre>
{{end}}
{{csdoc|usage full}}
:<code><nowikisyntaxhighlight lang="wikitext" inline>{{cite web |url= |url-access= |title= |last= |first= |author= |author-link= |last2= |first2= |author2= |author-link2= |date= |year= |orig-date= |editor-last= |editor-first= |editor= |editor-link= |editor-last2= |editor-first2= |editor-link2= |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= |trans-quote= |ref= |postscript=}}</nowiki></codesyntaxhighlight>
{{end}}
{{csdoc|usage vertical}}
<pre style="margin:0px; border:none; white-space:pre;">
{{cite web
| url =
| url-access =
| title =
| last =
| first =
| author-link =
| last2 =
| first2 =
| author-link2 =
| date =
| year =
| orig-date =
| editor-last =
| editor-first =
| editor-link =
| editor2-last =
| editor2-first=
| editor2-link =
| 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 = }}
</pre>
{{csdoc|usage vertical mid}}
Line 152 ⟶ 151:
&nbsp;
&nbsp;
url&nbsp;
url, archive-url
url&nbsp;
url, archive-date
archive-url
Line 231 ⟶ 230:
{{csdoc|usage vertical end}}
 
===Choosing between [[Template:cite web]] and [[Template:cite news]]<span class="anchor" id="Consistency"></span>===
 
{{anchor|Consistency}}
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.
 
Line 245 ⟶ 244:
-->
{|
| '''cite web''': || {{cite web |url=httphttps://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=httphttps://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 253 ⟶ 252:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 262 ⟶ 261:
|access-date=</nowiki>{{date|{{date}}|mdy}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 273 ⟶ 272:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 281 ⟶ 280:
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 291 ⟶ 290:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 298 ⟶ 297:
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 307 ⟶ 306:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 313 ⟶ 312:
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 321 ⟶ 320:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|access-date={{date|{{date}}|iso}}}}
Line 349 ⟶ 348:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.indiapost.gov.in/Pdf/Customs/List_of_Psychotropic_Substances.pdf
|title=List of psychotropic substances under international control
|publisher=International Narcotics Control Board
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.indiapost.gov.in/Pdf/Customs/List_of_Psychotropic_Substances.pdf
|title=List of psychotropic substances under international control
|publisher=International Narcotics Control Board
Line 361 ⟶ 360:
</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 (but no PDF icon).
<div style="width:auto; overflow:scroll">
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.sample.com/somePDFdocument.000
|title=Some PDF Document
|publisher=Sample Int'l
Line 371 ⟶ 370:
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.sample.com/somePDFdocument.000
|title=Some PDF Document
|publisher=Sample Int'l
Line 379 ⟶ 378:
</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=httphttps://www.sample.com/someODTdocument.odt
|title=Some ODT Document
|publisher=Sample Int'l
Line 389 ⟶ 388:
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.sample.com/someODTdocument.odt
|title=Some ODT Document
|publisher=Sample Int'l
Line 400 ⟶ 399:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=Honi soit qui mal y pense
|last=Joliet
Line 409 ⟶ 408:
|trans-title=Shame on those who think evil of it}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=Honi soit qui mal y pense
|last=Joliet
Line 422 ⟶ 421:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 432 ⟶ 431:
|access-date=</nowiki>{{date|{{date}}|mdy}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=My Favorite Things, Part II
|last=Doe
Line 446 ⟶ 445:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=Our Favourite Things
|last1=Doe
Line 459 ⟶ 458:
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=Our Favourite Things
|last1=Doe
Line 476 ⟶ 475:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=Index of Sharp Things
|publisher=Open Publishing
Line 483 ⟶ 482:
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=Index of Sharp Things
|publisher=Open Publishing
Line 494 ⟶ 493:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=Index of Sharp Things
|date=30 April 2005
Line 500 ⟶ 499:
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=Index of Sharp Things
|date=30 April 2005
Line 508 ⟶ 507:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.example.org/
|title=Index of Sharp Things
|date=April 30, 2005
|access-date=</nowiki>{{date|{{date}}|mdy}}<nowiki>}}</nowiki>
|r={{cite web
|url=httphttps://www.example.org/
|title=Index of Sharp Things
|date=April 30, 2005
Line 520 ⟶ 519:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
|date=2005-04-30
Line 526 ⟶ 525:
|language=el}}</nowiki>
|r={{cite web
|url=httphttps://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
|date=2005-04-30
Line 533 ⟶ 532:
}}
 
===Using "archive-url" and "archive-date" (and optionally "url-status") for webpages that have been archived<span {{class="anchor|" id="archive-url}}"></span>===
<div style="width:auto; overflow:scroll">By default, if "archive-url" is used, the parameter {{para|url-status|dead}} is assumed and the resulting main link is to the archivearchived version:
{{markup2|
|m=<nowiki>{{cite web
Line 554 ⟶ 553:
}}
</div>
<div style="width:auto; overflow:scroll">WithWhen {{para|url-status|live}} is specified, the resulting main link is to the original page:
{{markup2|
|m=<nowiki>{{cite web
Line 597 ⟶ 596:
{{markup2|
|m=<nowiki>{{cite web
|url=httphttps://www.webexhibits.org/daylightsaving/c.html
|title=Daylight saving time: rationale and original idea
|website=WebExhibits
Line 604 ⟶ 603:
|quote=...&amp;nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&amp;nbsp;...'}}</nowiki>
|r={{cite web
|url=httphttps://www.webexhibits.org/daylightsaving/c.html
|title=Daylight saving time: rationale and original idea
|website=WebExhibits
Line 652 ⟶ 651:
{{csdoc|pages}}
 
====URL<span class="anchor" id="url"></span>====
===={{Anchor|url}}URL====
{{csdoc|url}}
 
====Access-date<span class="anchor" id="access-date"></span>====
See {{slink||url}}.
<!-- does not exist: {{csdoc|Access-date}} -->
 
====Anchor====
{{distinguish|#Identifiers}}
{{csdoc|ref}}
 
====Identifiers====
{{distinguish|#Anchor}}
{{csdoc|id1}}
{{csdoc|id2}}
Line 667 ⟶ 672:
====Editors====
{{csdoc|editor}}
 
{{Anchor|Laysummary}}
====Lay summary====
{{csdoc|lay}}
 
====Display options====
Line 688 ⟶ 689:
"url": {
"label": "URL",
"description": "The URL of the online location where the text of the publication can be found. Requires schemes of the type \"httphttps://...\" or maybe even the protocol relative scheme \"//...\"",
"type": "url",
"aliases": [
Line 712 ⟶ 713:
"description": "The full date when the original URL was accessed; do not wikilink",
"type": "date",
"suggested": true,
"aliases": [
"accessdate"
]
},
"website": {
Line 728 ⟶ 732:
"description": "Name of the publisher; may be wikilinked. Having both 'publisher' and 'website' (a.k.a. 'work') is redundant in many cases.",
"type": "string",
"example": "[[CBSFandom, InteractiveInc.]] (which owns \"Metacritic.com\")"
},
"last": {
Line 772 ⟶ 776:
"subject-link",
"subject-link1",
"subject1-link",
"authorlink"
]
},
Line 839 ⟶ 844:
"label": "Series identifier",
"description": "Series identifier when the source is part of a series, such as a book series or a journal",
"type": "string"
},
"location": {
"label": "Location of publication",
"description": "Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of 'place'",
"type": "string"
},
Line 879:
"language": {
"label": "Language",
"description": "The language in which the source is written, if not English; use thea fulltwo-letter language namecode or one of the standard MediaWikifull language codes;name. doDo not use icons or templates;. separateSeparate multiple languages with commas (with no 'and' before the last one)",
"type": "string",
"aliases": [
Line 888:
"script-title": {
"label": "Script title",
"description": "For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, Vietnamese, etc.). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:...",
"type": "string"
},
Line 1,027:
"type": "url",
"suggested": true,
"autovalue": "",
"aliases": [
"archiveurl"
]
},
"archive-date": {
Line 1,033 ⟶ 1,036:
"description": "Date when the original URL was archived; do not wikilink",
"type": "date",
"suggested": true,
"aliases": [
"archivedate"
]
},
"archive-format": {
Line 1,043 ⟶ 1,049:
"label": "Quote",
"description": "Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation",
"type": "string"
},
"trans-quote": {
"label": "Translated quote",
"description": "English translation of the quotation if the source quoted is in a foreign language. Displays in square brackets.",
"type": "string"
},
Line 1,189 ⟶ 1,201:
"last9": {
"label": "Last name 9",
"description": "The surname of the ninth author; don't wikilink, use 'author-link9'. If nine authors are defined, then only eight will show and 'et al.' will show in place of the last author.",
"type": "line",
"aliases": [
Line 1,369 ⟶ 1,381:
"edition": {
"label": "Edition",
"type": "stringline",
"description": "Specify the edition or revision of the source, when applicable. For example: '2nd' or '5.1'. What you supply here is suffixed by ' ed.'",
"example": "2nd"
},
"url-access": {
Line 1,420 ⟶ 1,433:
"authors": {
"label": "Authors list",
"description": "List of authors as a free form list. Use of thisThis parameter is discourageddeprecated, use \"lastn\" toor \"firstn\" are(preferred) preferableor \"authorn\" or \"vauthors\". Warning: do not use if last or any of its aliases are used.",
"type": "string",
"aliasesdeprecated": [true
"people",
"host"
]
},
"via": {
Line 1,444 ⟶ 1,454:
"live",
"usurped",
"unfit",
"hostdeviated"
]
},
"locationagency": {
"label": "Agency",
"description": "The news agency (wire service) that provided the content; examples: Associated Press, Reuters, Agence France-Presse",
"type": "string"
},
"place": {
"label": "Place",
"description": "For news stories with a dateline, the location where the story was written; will be treated as the publication place if publication place is absent; alias of 'location'",
"type": "string"
}
},
Line 1,623 ⟶ 1,644:
"series",
"publisher",
"locationplace",
"page",
"pages",
Line 1,658 ⟶ 1,679:
"id",
"quote",
"trans-quote",
"ref",
"postscript",
Line 1,666 ⟶ 1,688:
"jstor-access",
"ol-access",
"osti-access",
"agency"
],
"format": "{{_ |_=_}}"
Line 1,673 ⟶ 1,696:
 
==Notes==
{{Reflist}}
<references/>
{{Citation Style 1}}
{{Wikipedia referencing}}