Template:Cite web/doc

From Black Cat Studios
< Template:Cite web
Revision as of 16:18, 19 June 2023 by Blackcat (talk | contribs) (Created page with "<noinclude>{{pp-template}}</noinclude> {{Documentation subpage}} {{High-use|all-pages=yes}} {{AWB standard installation}} {{csdoc|lua}} {{csdoc|cs1}} {{csdoc|lead|web sources that are not characterized by another CS1 template. Do not use this template in the "External links" section of articles}} ==Usage== {{csdoc|usage}} {{csdoc|usage common}} For references with author credit :<syntaxhighlight lang="wikitext" inline>{{cite web |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Lua error in Module:Effective_protection_level at line 63: attempt to index field 'TitleBlacklist' (a nil value).

Template:Csdoc Template:Csdoc Template:Csdoc

Usage

Template:Csdoc Template:Csdoc For references with author credit

<syntaxhighlight lang="wikitext" inline> {{cite web}}: Empty citation (help)</syntaxhighlight>

For references without author credit

<syntaxhighlight lang="wikitext" inline> {{cite web}}: Empty citation (help)</syntaxhighlight>

Template:End Template:Csdoc

{{cite web
| url =
| title =
| last =
| first =
| date =
| website =
| publisher =
| access-date =
| quote =
}}

Template:End Template:Csdoc

<syntaxhighlight lang="wikitext" inline> {{cite web}}: Empty citation (help)</syntaxhighlight>

Template:End Template:Csdoc

{{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   = }}

Template:Csdoc

 
 
 
 
 
last
 
last
last2
 
 
 
 
 
editor-last
 
editor-last
editor2-last
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
url 
url 
url, archive-date
archive-url
 
 
 
 
 
 

Template:Csdoc

 
required
 
required
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Template:Csdoc

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

Template:Markup2

Using author-link

Template:Markup2

Multiple authors

Template:Markup2

No author

Template:Markup2

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

By default, if "archive-url" is used, the parameter |url-status=dead is assumed and the resulting main link is to the archived version:

Template:Markup2

When |url-status=live is specified, the resulting main link is to the original page:

Template:Markup2

With |url-status=unfit or


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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Cite web

Script error: No such module "Format TemplateData".

See also

, the original is not linked at all: Template:Markup2

Using quote

Parameters

Syntax

Template:Csdoc Template:Csdoc

COinS

Template:Csdoc

What's new

Template:Csdoc

Deprecated

Template:Csdoc

Description

Authors

Template:Csdoc

Title

Template:Csdoc Template:Csdoc Template:Csdoc

Date

Template:Csdoc

Website

Template:Csdoc

Publisher

Template:Csdoc Template:Csdoc

Series

Template:Csdoc

In-source locations

Template:Csdoc

URL

Template:Csdoc

Access-date

See § url.

Anchor

Template:Csdoc

Identifiers

Template:Csdoc Template:Csdoc

Quote

Template:Csdoc

Editors

Template:Csdoc

Lay summary

Template:Csdoc

Display options

Template:Csdoc

Subscription or registration required

Template:Csdoc

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this 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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Last namelast 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

Linesuggested
First namefirst 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

Linesuggested
Author linkauthor-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 nameoptional
Last name 2last2 author2

The surname of the second author; don't wikilink, use 'author-link2'.

Lineoptional
First name 2first2

Given or first name, middle names, or initials of the second author; don't wikilink.

Lineoptional
Author link 2author-link2 author2-link

Title of existing Wikipedia article about the second author.

Page nameoptional
Last name 3last3 author3

The surname of the third author; don't wikilink, use 'author-link3'.

Lineoptional
First name 3first3

Given or first name, middle names, or initials of the third author; don't wikilink.

Lineoptional
Author link 3author-link3 author3-link

Title of existing Wikipedia article about the third author.

Page nameoptional
Last name 4last4 author4

The surname of the fourth author; don't wikilink, use 'author-link4'.

Lineoptional
First name 4first4

Given or first name, middle names, or initials of the fourth author; don't wikilink.

Lineoptional
Author link 4author-link4 author4-link

Title of existing Wikipedia article about the fourth author.

Page nameoptional
Last name 5last5 author5

The surname of the fifth author; don't wikilink, use 'author-link5'.

Lineoptional
First name 5first5

Given or first name, middle names, or initials of the fifth author; don't wikilink.

Lineoptional
Author link 5author-link5 author5-link

Title of existing Wikipedia article about the fifth author.

Page nameoptional
Last name 6last6 author6

The surname of the sixth author; don't wikilink, use 'author-link6'.

Lineoptional
First name 6first6

Given or first name, middle names, or initials of the sixth author; don't wikilink.

Lineoptional
Author link 6author-link6 author6-link

Title of existing Wikipedia article about the sixth author.

Page nameoptional
Last name 7last7 author7

The surname of the seventh author; don't wikilink, use 'author-link7'.

Lineoptional
First name 7first7

Given or first name, middle names, or initials of the seventh author; don't wikilink.

Lineoptional
Author link 7author-link7 author7-link

Title of existing Wikipedia article about the seventh author.

Page nameoptional
Last name 8last8 author8

The surname of the eighth author; don't wikilink, use 'author-link8'.

Lineoptional
First name 8first8

Given or first name, middle names, or initials of the eighth author; don't wikilink.

Lineoptional
Author link 8author-link8 author8-link

Title of existing Wikipedia article about the eighth author.

Page nameoptional
Last name 9last9 author9

The surname of the ninth author; don't wikilink, use 'author-link9'.

Lineoptional
First name 9first9

Given or first name, middle names, or initials of the ninth author; don't wikilink.

Lineoptional
Author link 9author-link9 author9-link

Title of existing Wikipedia article about the ninth author.

Page nameoptional
Authors listauthors 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.

Stringoptional
Author maskauthor-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

Stringoptional
Display authorsdisplay-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.

Stringoptional
Name list stylename-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.

Suggested values
amp and vanc
Stringoptional
Source datedate

Full date when the source was published; if unknown, use access-date instead; do not wikilink

Datesuggested
Year of publicationyear

Year of the source being referenced; deprecated in favor of 'date', except for the special case of ISO dates with disambiguating letter

Stringoptional
Original dateorig-date

Original date of publication; provide specifics

Stringoptional
Editor last nameeditor-last editor1-last editor

The surname of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors.

Lineoptional
Editor first nameeditor-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'

Lineoptional
Editor linkeditor-link editor1-link

Title of existing Wikipedia article about the editor; can suffix with a numeral to add additional editors

Page nameoptional
Editor last name 2editor2-last editor2

The surname of the second editor; don't wikilink, use 'editor2-link'.

Lineoptional
Editor first name 2editor2-first

Given or first name, middle names, or initials of the second editor; don't wikilink.

Lineoptional
Editor link 2editor2-link

Title of existing Wikipedia article about the second editor.

Page nameoptional
Editor last name 3editor3-last editor3

The surname of the third editor; don't wikilink, use 'editor3-link'.

Lineoptional
Editor first name 3editor3-first

Given or first name, middle names, or initials of the third editor; don't wikilink.

Lineoptional
Editor link 3editor3-link

Title of existing Wikipedia article about the third editor.

Page nameoptional
Editor last name 4editor4-last editor4

The surname of the fourth editor; don't wikilink, use 'editor4-link'.

Lineoptional
Editor first name 4editor4-first

Given or first name, middle names, or initials of the fourth editor; don't wikilink.

Lineoptional
Editor link 4editor4-link

Title of existing Wikipedia article about the fourth editor.

Page nameoptional
Editor last name 5editor5-last editor5

The surname of the fifth editor; don't wikilink, use 'editor5-link'.

Lineoptional
Editor first name 5editor5-first

Given or first name, middle names, or initials of the fifth editor; don't wikilink.

Lineoptional
Editor link 5editor5-link

Title of existing Wikipedia article about the fifth editor.

Page nameoptional
Editor last name 6editor6-last editor6

The surname of the sixth editor; don't wikilink, use 'editor6-link'.

Lineoptional
Editor first name 6editor6-first

Given or first name, middle names, or initials of the sixth editor; don't wikilink.

Lineoptional
Editor link 6editor6-link

Title of existing Wikipedia article about the sixth editor.

Page nameoptional
Editor last name 7editor7-last editor7

The surname of the seventh editor; don't wikilink, use 'editor7-link'.

Lineoptional
Editor first name 7editor7-first

Given or first name, middle names, or initials of the seventh editor; don't wikilink.

Lineoptional
Editor link 7editor7-link

Title of existing Wikipedia article about the seventh editor.

Page nameoptional
Editor last name 8editor8-last editor8

The surname of the eighth editor; don't wikilink, use 'editor8-link'.

Lineoptional
Editor first name 8editor8-first

Given or first name, middle names, or initials of the eighth editor; don't wikilink.

Lineoptional
Editor link 8editor8-link

Title of existing Wikipedia article about the eighth editor.

Page nameoptional
Editor last name 9editor9-last editor9

The surname of the ninth editor; don't wikilink, use 'editor9-link'.

Lineoptional
Editor first name 9editor9-first

Given or first name, middle names, or initials of the ninth editor; don't wikilink.

Lineoptional
Editor link 9editor9-link

Title of existing Wikipedia article about the ninth editor.

Page nameoptional
Othersothers

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'

Stringoptional
Titletitle

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.

Stringrequired
Script titlescript-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:...

Stringoptional
Translated titletrans-title

An English language title, if the source cited is in a foreign language; 'language' is recommended

Stringoptional
URLurl 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 "//..."

Example
https://www.metacritic.com//...
URLrequired
URL access levelurl-access

Classification of the access restrictions on the URL ('registration', 'subscription' or 'limited')

Suggested values
registration subscription limited
Stringoptional
URL statusurl-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.

Suggested values
dead live usurped unfit deviated
Default
'dead' if an Archive URL is entered
Example
'dead' or 'live'
Stringsuggested
Archive URLarchive-url archiveurl

The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date'

Auto value
URLsuggested
Archive datearchive-date archivedate

Date when the original URL was archived; do not wikilink

Datesuggested
Archive formatarchive-format

Format of the archived copy; examples: PDF, DOC, XLS; do not specify HTML

Stringoptional
URL access dateaccess-date accessdate

The full date when the original URL was accessed; do not wikilink

Datesuggested
Name of the websitewebsite 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.

Example
[[Rotten Tomatoes]]
Stringsuggested
Series identifierseries

Series identifier when the source is part of a series, such as a book series or a journal

Stringoptional
Publisherpublisher

Name of the publisher; may be wikilinked. Having both 'publisher' and 'website' (a.k.a. 'work') is redundant in many cases.

Example
[[Fandom, Inc.]] (which owns "Metacritic.com")
Stringoptional
Placeplace

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'

Stringoptional
Pagepage

Page in the source that supports the content; displays after 'p.'

Stringoptional
Pagespages

Pages in the source that support the content (not an indication of the number of pages in the source); displays after 'pp.'

Stringoptional
Atat

May be used instead of 'page' or 'pages' where a page number is inappropriate or insufficient

Stringoptional
Languagelanguage 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

Example
de, fr, es
Stringoptional
Typetype

Additional information about the media type of the source; format in sentence case

Stringoptional
Formatformat

Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML

Stringoptional
Place of publicationpublication-place

Publication place shows after title; if 'place' or 'location' are also given, they are displayed before the title prefixed with 'written at'

Stringoptional
Publication datepublication-date

Date of publication when different from the date the work was written; do not wikilink

Dateoptional
Published viavia

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.

Example
[[GitHub]], [[SourceForge]], [[CodePlex]], [[YouTube]], [[Vimeo]], [[Dailymotion]], [[Netflix]], [[Archive.org]], [[Wikimedia Commons]], [[grc.com]]
Stringoptional
No ppno-pp

Set to 'y' to suppress the 'p.' or 'pp.' display with 'page' or 'pages' when inappropriate (such as 'Front cover')

Auto value
y
Booleanoptional
arXiv identifierarxiv

An identifier for arXive electronic preprints of scientific papers

Stringoptional
ASINasin

Amazon Standard Identification Number; 10 characters

Stringoptional
ASIN TLDasin-tld

ASIN top-level domain for Amazon sites other than the US

Stringoptional
Bibcodebibcode

Bibliographic Reference Code (REFCODE); 19 characters

Stringoptional
biorXivbiorxiv

biorXiv identifier; 6 digits

Lineoptional
CiteSeerXciteseerx

CiteSeerX identifier; found after the 'doi=' query parameter

Lineoptional
DOIdoi

Digital Object Identifier; begins with '10.'

Stringoptional
DOI broken datedoi-broken-date

The date that the DOI was determined to be broken

Auto value
Dateoptional
ISBNisbn

International Standard Book Number; use the 13-digit ISBN where possible

Stringoptional
ISSNissn

International Standard Serial Number; 8 characters; may be split into two groups of four using a hyphen

Stringoptional
jfm codejfm

Jahrbuch über die Fortschritte der Mathematik classification code

Stringoptional
JSTORjstor

JSTOR identifier

Stringoptional
LCCNlccn

Library of Congress Control Number

Stringoptional
MRmr

Mathematical Reviews identifier

Stringoptional
OCLCoclc

Online Computer Library Center number

Stringoptional
OLol

Open Library identifier

Stringoptional
OSTIosti

Office of Scientific and Technical Information identifier

Stringoptional
PMCpmc

PubMed Center article number

Stringoptional
PMIDpmid

PubMed Unique Identifier

Stringoptional
RFCrfc

Request for Comments number

Stringoptional
SSRNssrn

Social Science Research Network

Stringoptional
Zblzbl

Zentralblatt MATH journal identifier

Stringoptional
idid

A unique identifier used where none of the specialized ones are applicable

Stringoptional
Quotequote

Relevant text quoted from the source; displays last, enclosed in quotes; must include terminating punctuation

Stringoptional
Refref

An anchor identifier; can be made the target of wikilinks to full references

Stringoptional
Postscriptpostscript

The closing punctuation for the citation; ignored if 'quote' is defined

Default
.
Stringoptional
Editionedition

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
Lineoptional
Bibcode access levelbibcode-access

If the full text is available from ADS via this Bibcode, type 'free'.

Auto value
free
Stringoptional
DOI access leveldoi-access

If the full text is free to read via the DOI, type 'free'.

Auto value
free
Stringoptional
HDL access levelhdl-access

If the full text is free to read via the HDL, type 'free'.

Auto value
free
Stringoptional
Jstor access leveljstor-access

If the full text is free to read on Jstor, type 'free'.

Auto value
free
Stringoptional
OpenLibrary access levelol-access

If the full text is free to read on OpenLibrary, type 'free'.

Auto value
free
Stringoptional
OSTI access levelosti-access

If the full text is free to read on OSTI, type 'free'.

Auto value
free
Stringoptional
Agencyagency

The news agency (wire service) that provided the content; examples: Associated Press, Reuters, Agence France-Presse

Stringoptional

Notes

Template:Wikipedia referencing Template:UF-COinS