Template:Cite web/doc

From All Skies Encyclopaedia
< Template:Cite web
Revision as of 02:32, 18 November 2022 by imported>BucketOfSquirrels (→‎Usage: Adding two common vertical examples, adding access-date substitution, and assuming that editors who copy these examples are dealing with live urls. And some other minor additions and corrections. The order is inspired by Cite news & press release, as well as CS doc)

Usage

Copy a blank version to use. Almost all parameter names are supported only in lower case (some initialisms, such as |isbn= have upper-case aliases like |ISBN=, which are acceptable for use). Use the "|" (pipe) character between each parameter. Unused parameters may be deleted to avoid clutter in the edit window. Some samples on this documentation page may include the current date. If the date is not current, then purge the page.

Most commonly used parameters in horizontal format

For references with author credit

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

For references without author credit

{{cite web |url= |title= |author=<!--Not stated--> |date= |website= |publisher= |access-date= |quote=}}
Most commonly used parameters in vertical format

Template:Columns-start Lua error: expandTemplate: template "Citation Style documentation/usage custom" does not exist.

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

|} Template:Column Lua error: expandTemplate: template "Citation Style documentation/usage custom" does not exist.

{{cite web
| author       = <!-- Not stated -->
| title        = 
| website      = 
| publisher    = 
| date         = 
| access-date  = {{subst:date}}
| url          = 
| quote        = }}

|} Template:Column Lua error: expandTemplate: template "Citation Style documentation/usage custom" does not exist.

{{cite web
| last         = 
| first        = 
| title        = 
| website      = 
| publisher    = 
| date         = 
| access-date  = {{subst:date}}
| archive-date = 
| archive-url  = 
| url-status   = live
| url          = 
| quote        = }}

|} Template:Columns-end

Full parameter set in horizontal format
{{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= |ref= |postscript=}}

Lua error: expandTemplate: template "Citation Style documentation/usage vertical" does not exist.

{{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  = {{subst:date}}
| url-status   = 
| archive-url  = 
| archive-date = 
| via          = 
| quote        = 
| ref          = 
| postscript   = }}

Lua error: expandTemplate: template "Citation Style documentation/usage vertical mid" does not exist.

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

Lua error: expandTemplate: template "Citation Style documentation/usage vertical mid" does not exist.

 
required
 
required
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
substitutes edit date
live/dead
 
 
 
should be short
 
 

Lua error: expandTemplate: template "Citation Style documentation/usage vertical end" does not exist.

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 Template:Slink; see also {{cite magazine}}).

But given the same set of valid parameters, their output is exactly the same:

cite web: Lua error: bad argument #1 to "get" (not a valid title).
cite news: Lua error: bad argument #1 to "get" (not a valid title).