Template:Cite web: Difference between revisions
(Created page with "<includeonly>{{#invoke:citation/CS1|citation |CitationClass=web }}</includeonly><noinclude> {{documentation}} </noinclude>") |
m (1 revision imported) |
Latest revision as of 00:36, 20 June 2023
This template is used on approximately 4,530,000 pages, or roughly 318790% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
File:AWB logo draft.svg | This template is used by the standard installation of AutoWikiBrowser (AWB). If you are planning to make any major changes to this template, how it should be used, or nominate it for deletion, please notify AWB's user base and maintainers beforehand at Wikipedia talk:AWB as a courtesy. |
Template:Csdoc Template:Csdoc Template:Csdoc
Usage
Template:Csdoc Template:Csdoc For references with author credit
For references without author credit
| url =
| title =
| last =
| first =
| date =
| website =
| publisher =
| access-date =
| quote =
}}
{{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 = }}
last last last2 editor-last editor-last editor2-last url url url, archive-date archive-url
required required
Choosing between Template:cite web and Template:cite news
Before 2014, editors had to decide whether to use {{cite web}} or {{cite news}} based on their features. In 2014, most of the differences between the two templates were eliminated.
As of 29 July 2016, {{cite web}} and {{cite news}} have the following differences:
- {{cite news}} can be used for offline (paper) sources whereas {{cite web}} generates a missing URL error when no URL is provided
- {{cite news}} accepts
|issue=
and|volume=
parameters while {{cite web}} does not (See Help:Citation Style 1 § Pages; see also {{cite magazine}}).
But given the same set of valid parameters, their output is exactly the same:
cite web: | Silverman, Dwight (July 15, 2011). "Microsoft envisions a universal OS, but it might not be called Windows". Houston Chronicle. Hearst Corporation. Retrieved May 26, 2015. |
cite news: | Silverman, Dwight (July 15, 2011). "Microsoft envisions a universal OS, but it might not be called Windows". Houston Chronicle. Hearst Corporation. Retrieved May 26, 2015. |
Examples
Template:Markup2 Template:Markup2 Template:Markup2 Template:Markup2 Template:Markup2 Template:Markup2
Using "format="
When this template detects a link whose URL includes an 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 |format=PDF
had been specified, which displays " (PDF)" after the icon. (In this case, an explicit |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. (ref))
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 |format=PDF
, which displays " (PDF)" after the link (but no PDF icon).
For links to files in other formats, no icon is displayed. For example, for an .odt file, you may add the parameter |format=ODT
, which displays " (ODT)" after the link.
Foreign language and translated title
Using author-link
Multiple authors
No author
No author, no publisher
Template:Markup2 Template:Markup2 Template:Markup2
Using "archive-url" and "archive-date" (and optionally "url-status") for webpages that have been archived
|url-status=dead
is assumed and the resulting main link is to the archived version:
|url-status=live
is specified, the resulting main link is to the original page:
|url-status=unfit
or
This template is used on 4,530,000+ pages, or roughly 318790% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Usage
Wraps a short span of text in <syntaxhighlight>
tags (see mw:Extension:SyntaxHighlight). This template should be used for short samples; longer content should use <pre>...</pre>
or <syntaxhighlight>...</syntaxhighlight>
. See Help:Wiki markup for an explanation of what the various tags do.
If the content includes an equals sign (=), you must specify the parameter explicitly: {{code|1=date=30 Feb 2010}}
.
The template uses the <syntaxhighlight>
tag with the attribute inline=1
. This works like the combination of the <code>
and <nowiki>
tags, applied to the expanded wikitext. For example, {{code|some '''wiki''' text}}
will not render the word "wiki" in bold, and will render the tripled-single-quotes:
- Template loop detected: Template:Code
However, {{code|a {{template}} call}}
will still invoke the template:
- Template loop detected: Template:Code
Use <nowiki>...</nowiki>
around the template name to avoid this problem:
- Template loop detected: Template:Code
When used inline with regular text, {{code}}
generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:
- Template loop detected: Template:Code
is well spaced:
- foo Template loop detected: Template:Code quux.
versus:
- Template loop detected: Template:Code
which is going to be visually confusing for many:
- foo Template loop detected: Template:Code quux.
because "foo" and "Template loop detected: Template:Code" will seem more closely associated than "Template loop detected: Template:Code" and "Template loop detected: Template:Code"; the width of the space character in a monospaced font is almost always larger than in a proportional font.
Use parameter {{{2}}} (unnamed, as |2=
, or more explicitly as |lang=
) to specify a language for mw:Extension:SyntaxHighlight. This option defaults to plain-text, i.e. no highlighting. There is no highlighting option for wikitext as a markup language, though Template loop detected: Template:Code and Template loop detected: Template:Code are valid values, as are Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code, Template loop detected: Template:Code and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.
This template does not need to be substituted.
Examples
Markup | Renders asScript error: No such module "For loop". |
---|---|
Included templates
Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, which can contain templates such as {{var}} and {{samp}}, use <code>...</code>
as a wrapper instead of this template.
Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:
Markup | Renders asScript error: No such module "For loop". |
---|---|
The above example shows the HTML rendered by the citation template, including the hidden metadata.
TemplateData
TemplateData for Cite web
See also
- {{codett}}, wrapper for this template that removes background and border styling
- {{mono}}, monospaced font only
- {{param value}}, monospaced; friendly handling for blank space
- {{Syntaxhighlight}}
- {{kbd}}, for keyboard input
- Help:Wiki markup
Using quote
Parameters
Syntax
COinS
What's new
Deprecated
Description
Authors
Title
Template:Csdoc Template:Csdoc Template:Csdoc
Date
Website
Publisher
Series
In-source locations
URL
Access-date
See § url.
Anchor
Identifiers
Quote
Editors
Lay summary
Display options
Subscription or registration required
TemplateData
Warning | 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 for Cite web
Script error: No such module "cs1 documentation support".
Formats a citation to a website using the provided information such as URL and title. Used only for sources that are not correctly described by the specific citation templates for books, journals, news sources, etc.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Last name | last last1 author author1 author1-last author-last surname1 author-last1 subject1 surname author-last subject | The surname of the author; don't wikilink, use 'author-link'; can suffix with a numeral to add additional authors | Line | suggested |
First name | first given author-first first1 given1 author-first1 author1-first | Given or first name, middle names, or initials of the author; don't wikilink, use 'author-link'; can suffix with a numeral to add additional authors | Line | suggested |
Author link | author-link author-link1 author1-link subject-link subject-link1 subject1-link authorlink | Title of existing Wikipedia article about the author; can suffix with a numeral to add additional authors | Page name | optional |
Last name 2 | last2 author2 | The surname of the second author; don't wikilink, use 'author-link2'. | Line | optional |
First name 2 | first2 | Given or first name, middle names, or initials of the second author; don't wikilink. | Line | optional |
Author link 2 | author-link2 author2-link | Title of existing Wikipedia article about the second author. | Page name | optional |
Last name 3 | last3 author3 | The surname of the third author; don't wikilink, use 'author-link3'. | Line | optional |
First name 3 | first3 | Given or first name, middle names, or initials of the third author; don't wikilink. | Line | optional |
Author link 3 | author-link3 author3-link | Title of existing Wikipedia article about the third author. | Page name | optional |
Last name 4 | last4 author4 | The surname of the fourth author; don't wikilink, use 'author-link4'. | Line | optional |
First name 4 | first4 | Given or first name, middle names, or initials of the fourth author; don't wikilink. | Line | optional |
Author link 4 | author-link4 author4-link | Title of existing Wikipedia article about the fourth author. | Page name | optional |
Last name 5 | last5 author5 | The surname of the fifth author; don't wikilink, use 'author-link5'. | Line | optional |
First name 5 | first5 | Given or first name, middle names, or initials of the fifth author; don't wikilink. | Line | optional |
Author link 5 | author-link5 author5-link | Title of existing Wikipedia article about the fifth author. | Page name | optional |
Last name 6 | last6 author6 | The surname of the sixth author; don't wikilink, use 'author-link6'. | Line | optional |
First name 6 | first6 | Given or first name, middle names, or initials of the sixth author; don't wikilink. | Line | optional |
Author link 6 | author-link6 author6-link | Title of existing Wikipedia article about the sixth author. | Page name | optional |
Last name 7 | last7 author7 | The surname of the seventh author; don't wikilink, use 'author-link7'. | Line | optional |
First name 7 | first7 | Given or first name, middle names, or initials of the seventh author; don't wikilink. | Line | optional |
Author link 7 | author-link7 author7-link | Title of existing Wikipedia article about the seventh author. | Page name | optional |
Last name 8 | last8 author8 | The surname of the eighth author; don't wikilink, use 'author-link8'. | Line | optional |
First name 8 | first8 | Given or first name, middle names, or initials of the eighth author; don't wikilink. | Line | optional |
Author link 8 | author-link8 author8-link | Title of existing Wikipedia article about the eighth author. | Page name | optional |
Last name 9 | last9 author9 | The surname of the ninth author; don't wikilink, use 'author-link9'. | Line | optional |
First name 9 | first9 | Given or first name, middle names, or initials of the ninth author; don't wikilink. | Line | optional |
Author link 9 | author-link9 author9-link | Title of existing Wikipedia article about the ninth author. | Page name | optional |
Authors list | authors people host | List of authors as a free form list. Use of this parameter is discouraged, "lastn" to "firstn" are preferable. Warning: do not use if last or any of its aliases are used. | String | optional |
Author mask | author-mask | Replaces the name of the first author with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing author separator; for example, 'with' instead | String | optional |
Display authors | display-authors | Number of authors to display before 'et al.' is used. By default, all authors are displayed. Examples: |display-authors=2 will display only the first two authors in a citation followed by et al. |display-authors=etal displays all authors in the list followed by et al. | String | optional |
Name list style | name-list-style | Set to 'amp' or 'and' to change the separator between the last two names of the name list to ' & ' or ' and ', respectively. Set to 'vanc' to display name lists in Vancouver style.
| String | optional |
Source date | date | Full date when the source was published; if unknown, use access-date instead; do not wikilink | Date | suggested |
Year of publication | year | Year of the source being referenced; deprecated in favor of 'date', except for the special case of ISO dates with disambiguating letter | String | optional |
Original date | orig-date | Original date of publication; provide specifics | String | optional |
Editor last name | editor-last editor1-last editor | The surname of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors. | Line | optional |
Editor first name | editor-first editor1-first | Given or first name, middle names, or initials of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors; alias of 'editor1-first' | Line | optional |
Editor link | editor-link editor1-link | Title of existing Wikipedia article about the editor; can suffix with a numeral to add additional editors | Page name | optional |
Editor last name 2 | editor2-last editor2 | The surname of the second editor; don't wikilink, use 'editor2-link'. | Line | optional |
Editor first name 2 | editor2-first | Given or first name, middle names, or initials of the second editor; don't wikilink. | Line | optional |
Editor link 2 | editor2-link | Title of existing Wikipedia article about the second editor. | Page name | optional |
Editor last name 3 | editor3-last editor3 | The surname of the third editor; don't wikilink, use 'editor3-link'. | Line | optional |
Editor first name 3 | editor3-first | Given or first name, middle names, or initials of the third editor; don't wikilink. | Line | optional |
Editor link 3 | editor3-link | Title of existing Wikipedia article about the third editor. | Page name | optional |
Editor last name 4 | editor4-last editor4 | The surname of the fourth editor; don't wikilink, use 'editor4-link'. | Line | optional |
Editor first name 4 | editor4-first | Given or first name, middle names, or initials of the fourth editor; don't wikilink. | Line | optional |
Editor link 4 | editor4-link | Title of existing Wikipedia article about the fourth editor. | Page name | optional |
Editor last name 5 | editor5-last editor5 | The surname of the fifth editor; don't wikilink, use 'editor5-link'. | Line | optional |
Editor first name 5 | editor5-first | Given or first name, middle names, or initials of the fifth editor; don't wikilink. | Line | optional |
Editor link 5 | editor5-link | Title of existing Wikipedia article about the fifth editor. | Page name | optional |
Editor last name 6 | editor6-last editor6 | The surname of the sixth editor; don't wikilink, use 'editor6-link'. | Line | optional |
Editor first name 6 | editor6-first | Given or first name, middle names, or initials of the sixth editor; don't wikilink. | Line | optional |
Editor link 6 | editor6-link | Title of existing Wikipedia article about the sixth editor. | Page name | optional |
Editor last name 7 | editor7-last editor7 | The surname of the seventh editor; don't wikilink, use 'editor7-link'. | Line | optional |
Editor first name 7 | editor7-first | Given or first name, middle names, or initials of the seventh editor; don't wikilink. | Line | optional |
Editor link 7 | editor7-link | Title of existing Wikipedia article about the seventh editor. | Page name | optional |
Editor last name 8 | editor8-last editor8 | The surname of the eighth editor; don't wikilink, use 'editor8-link'. | Line | optional |
Editor first name 8 | editor8-first | Given or first name, middle names, or initials of the eighth editor; don't wikilink. | Line | optional |
Editor link 8 | editor8-link | Title of existing Wikipedia article about the eighth editor. | Page name | optional |
Editor last name 9 | editor9-last editor9 | The surname of the ninth editor; don't wikilink, use 'editor9-link'. | Line | optional |
Editor first name 9 | editor9-first | Given or first name, middle names, or initials of the ninth editor; don't wikilink. | Line | optional |
Editor link 9 | editor9-link | Title of existing Wikipedia article about the ninth editor. | Page name | optional |
Others | others | Used to record other (non-author) contributions to the work, such as 'Illustrated by John Smith' or 'Translated by John Smith'. Only one ''others'' parameter is allowed: e.g., 'Illustrated by Jane Doe; Translated by John Smith' | String | optional |
Title | title | The title of the source page on the website; will display with quotation marks added. Usually found at the top of your web browser. Not the name of the website. | String | required |
Script title | script-title | For titles in languages that do not use a Latin-based alphabet (Arabic, Chinese, Cyrillic, Greek, Hebrew, Japanese, Korean, etc.). Prefix with two-character ISO639-1 language code followed by a colon. For Japanese use: |script-title=ja:... | String | optional |
Translated title | trans-title | An English language title, if the source cited is in a foreign language; 'language' is recommended | String | optional |
URL | url URL | The URL of the online location where the text of the publication can be found. Requires schemes of the type "https://..." or maybe even the protocol relative scheme "//..."
| URL | required |
URL access level | url-access | Classification of the access restrictions on the URL ('registration', 'subscription' or 'limited')
| String | optional |
URL status | url-status | If set to 'live', the title display is adjusted; useful for when the URL is archived preemptively but still live. Set to "dead" or 'usurped' for broken links. Entering 'unfit' or 'usurped' makes the original link not appear at all.
| String | suggested |
Archive URL | archive-url archiveurl | The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'
| URL | suggested |
Archive date | archive-date archivedate | Date when the original URL was archived; do not wikilink | Date | suggested |
Archive format | archive-format | Format of the archived copy; examples: PDF, DOC, XLS; do not specify HTML | String | optional |
URL access date | access-date accessdate | The full date when the original URL was accessed; do not wikilink | Date | suggested |
Name of the website | website work | Title (name) of the website (or its short URL if no plain-language title is discernible); may be wikilinked; will display in italics. Having both 'publisher' and 'website' is redundant in many cases.
| String | suggested |
Series identifier | series | Series identifier when the source is part of a series, such as a book series or a journal | String | optional |
Publisher | publisher | Name of the publisher; may be wikilinked. Having both 'publisher' and 'website' (a.k.a. 'work') is redundant in many cases.
| String | optional |
Place | place | 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' | String | optional |
Page | page | Page in the source that supports the content; displays after 'p.' | String | optional |
Pages | pages | Pages in the source that support the content (not an indication of the number of pages in the source); displays after 'pp.' | String | optional |
At | at | May be used instead of 'page' or 'pages' where a page number is inappropriate or insufficient | String | optional |
Language | language lang | The language in which the source is written, if not English; use a two-letter language code or the full language name. Do not use icons or templates. Separate multiple languages with commas
| String | optional |
Type | type | Additional information about the media type of the source; format in sentence case | String | optional |
Format | format | Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML | String | optional |
Place of publication | publication-place | Publication place shows after title; if 'place' or 'location' are also given, they are displayed before the title prefixed with 'written at' | String | optional |
Publication date | publication-date | Date of publication when different from the date the work was written; do not wikilink | Date | optional |
Published via | via | Name of the entity hosting the original copy of the work, if different from the publisher. This entity is committed not to alter the work.
| String | optional |
No pp | no-pp | Set to 'y' to suppress the 'p.' or 'pp.' display with 'page' or 'pages' when inappropriate (such as 'Front cover')
| Boolean | optional |
arXiv identifier | arxiv | An identifier for arXive electronic preprints of scientific papers | String | optional |
ASIN | asin | Amazon Standard Identification Number; 10 characters | String | optional |
ASIN TLD | asin-tld | ASIN top-level domain for Amazon sites other than the US | String | optional |
Bibcode | bibcode | Bibliographic Reference Code (REFCODE); 19 characters | String | optional |
biorXiv | biorxiv | biorXiv identifier; 6 digits | Line | optional |
CiteSeerX | citeseerx | CiteSeerX identifier; found after the 'doi=' query parameter | Line | optional |
DOI | doi | Digital Object Identifier; begins with '10.' | String | optional |
DOI broken date | doi-broken-date | The date that the DOI was determined to be broken
| Date | optional |
ISBN | isbn | International Standard Book Number; use the 13-digit ISBN where possible | String | optional |
ISSN | issn | International Standard Serial Number; 8 characters; may be split into two groups of four using a hyphen | String | optional |
jfm code | jfm | Jahrbuch über die Fortschritte der Mathematik classification code | String | optional |
JSTOR | jstor | JSTOR identifier | String | optional |
LCCN | lccn | Library of Congress Control Number | String | optional |
MR | mr | Mathematical Reviews identifier | String | optional |
OCLC | oclc | Online Computer Library Center number | String | optional |
OL | ol | Open Library identifier | String | optional |
OSTI | osti | Office of Scientific and Technical Information identifier | String | optional |
PMC | pmc | PubMed Center article number | String | optional |
PMID | pmid | PubMed Unique Identifier | String | optional |
RFC | rfc | Request for Comments number | String | optional |
SSRN | ssrn | Social Science Research Network | String | optional |
Zbl | zbl | Zentralblatt MATH journal identifier | String | optional |
id | id | A unique identifier used where none of the specialized ones are applicable | String | optional |
Quote | quote | Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation | String | optional |
Ref | ref | An anchor identifier; can be made the target of wikilinks to full references | String | optional |
Postscript | postscript | The closing punctuation for the citation; ignored if 'quote' is defined
| String | optional |
Edition | edition | Specify the edition or revision of the source, when applicable. For example: '2nd' or '5.1'. What you supply here is suffixed by ' ed.'
| Line | optional |
Bibcode access level | bibcode-access | If the full text is available from ADS via this Bibcode, type 'free'.
| String | optional |
DOI access level | doi-access | If the full text is free to read via the DOI, type 'free'.
| String | optional |
HDL access level | hdl-access | If the full text is free to read via the HDL, type 'free'.
| String | optional |
Jstor access level | jstor-access | If the full text is free to read on Jstor, type 'free'.
| String | optional |
OpenLibrary access level | ol-access | If the full text is free to read on OpenLibrary, type 'free'.
| String | optional |
OSTI access level | osti-access | If the full text is free to read on OSTI, type 'free'.
| String | optional |
Agency | agency | The news agency (wire service) that provided the content; examples: Associated Press, Reuters, Agence France-Presse | String | optional |
Notes
- Pages with template loops
- Pages with script errors
- Pages with TemplateStyles errors
- Pages with broken file links
- Templates used by AutoWikiBrowser
- CS1 errors: empty citation
- Templates using TemplateData
- Programming typing-aid templates
- Semantic markup templates
- Wikipedia XHTML tag-replacing templates
- Citation Style 1 templates