Template:Cite web: Difference between revisions
Jump to navigation
Jump to search
m (Since work fills the same purpose as url, I removed them from the smaller copyable examples) |
(+ vertical formats to copy and paste; + CSS hack to allow uniform code style, both wrapping *and* possible to format) |
||
Line 77: | Line 77: | ||
;Day Month Year | ;Day Month Year | ||
<code><nowiki>{{cite web |url= |title= |author= |date= |publisher= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></ | <div class="mw-code" style="background-color: #ffffff;"><nowiki>{{cite web |url= |title= |author= |date= |publisher= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></div> | ||
;Month Day, Year | ;Month Day, Year | ||
<code><nowiki>{{cite web |url= |title= |author= |date= |publisher= |accessdate=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki>}}</nowiki></ | <div class="mw-code" style="background-color: #ffffff;"><nowiki>{{cite web |url= |title= |author= |date= |publisher= |accessdate=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki>}}</nowiki></div> | ||
;Day Month Year, all parameters | ;Day Month Year, all parameters | ||
<code><nowiki>{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>|quote= }}</nowiki></ | <div class="mw-code" style="background-color: #ffffff;"><nowiki>{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> |quote= }}</nowiki></div> | ||
Vertical format for use in external links section: | |||
<nowiki>* {{cite web | |||
| url = | |||
| title = | |||
| first = | |||
| last = | |||
| author = | |||
| authorlink = | |||
| coauthors = | |||
| date = | |||
| month = | |||
| year = | |||
| work = | |||
| publisher = | |||
| page = | |||
| pages = | |||
| language = | |||
| format = | |||
| id = | |||
| archiveurl = | |||
| archivedate = | |||
| accessdate = </nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> | |||
| quote = | |||
}}</nowiki> | |||
;Month Day, Year, all parameters | ;Month Day, Year, all parameters | ||
<code><nowiki>{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki>|quote= }}</nowiki></ | <div class="mw-code" style="background-color: #ffffff;"><nowiki>{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki> |quote= }}</nowiki></div> | ||
Vertical format for use in external links section: | |||
<nowiki>* {{cite web | |||
| url = | |||
| title = | |||
| first = | |||
| last = | |||
| author = | |||
| authorlink = | |||
| coauthors = | |||
| date = | |||
| month = | |||
| year = | |||
| work = | |||
| publisher = | |||
| page = | |||
| pages = | |||
| language = | |||
| format = | |||
| id = | |||
| archiveurl = | |||
| archivedate = | |||
| accessdate = </nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki> | |||
| quote = | |||
}}</nowiki> | |||
=== Paramenters === | === Paramenters === | ||
<code style=" | <div class="mw-code" style="background-color: #ffffff;"><nowiki>{{</nowiki>'''cite web''' <nowiki>|</nowiki>url= <nowiki>|</nowiki>title= <nowiki>|</nowiki>''first''= <nowiki>|</nowiki>''last''= <nowiki>|</nowiki>''author''= <nowiki>|</nowiki>''authorlink''= <nowiki>|</nowiki>''coauthors''= <nowiki>|</nowiki>''date''= <nowiki>|</nowiki>''month''= <nowiki>|</nowiki>''year''= <nowiki>|</nowiki>''work''= <nowiki>|</nowiki>''publisher''= <nowiki>|</nowiki>''page''= <nowiki>|</nowiki>''pages''= <nowiki>|</nowiki>''language''= <nowiki>|</nowiki>''format''= <nowiki>|</nowiki>''id''= <nowiki>|</nowiki>''archiveurl''= <nowiki>|</nowiki>''archivedate''= <nowiki>|</nowiki>''accessdate''= <nowiki>|</nowiki>''quote''= <nowiki>}}</nowiki></div> | ||
The only mandatory parameters are '''url''' and '''title'''. If '''archiveurl''' | The only mandatory parameters are '''url''' and '''title'''. If '''archiveurl''' or '''archivedate''' are used, ''both'' of them must be used. | ||
;url: URL of the resource. | ;url: URL of the resource. |
Revision as of 20:05, 15 January 2014
The following template description is not displayed when the template is inserted in an article.
Goal
This template is used to cite online sources in wiki articles.
Usage
Copyable examples with pre-filled accessdate
Citations within a page should use consistent formats. However, there is no consensus about which format is best. The following examples are for citations where one or more authors are listed in a single |author=authors parameter, using any format. Also shown below are two separate date formats that are commonly used:
- Day Month Year
{{cite web |url= |title= |author= |date= |publisher= |accessdate=24 April 2024}}
- Month Day, Year
{{cite web |url= |title= |author= |date= |publisher= |accessdate=April 24, 2024}}
- Day Month Year, all parameters
{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate=24 April 2024 |quote= }}
Vertical format for use in external links section:
* {{cite web | url = | title = | first = | last = | author = | authorlink = | coauthors = | date = | month = | year = | work = | publisher = | page = | pages = | language = | format = | id = | archiveurl = | archivedate = | accessdate = 24 April 2024 | quote = }}
- Month Day, Year, all parameters
{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate=April 24, 2024 |quote= }}
Vertical format for use in external links section:
* {{cite web | url = | title = | first = | last = | author = | authorlink = | coauthors = | date = | month = | year = | work = | publisher = | page = | pages = | language = | format = | id = | archiveurl = | archivedate = | accessdate = April 24, 2024 | quote = }}
Paramenters
{{cite web |url= |title= |first= |last= |author= |authorlink= |coauthors= |date= |month= |year= |work= |publisher= |page= |pages= |language= |format= |id= |archiveurl= |archivedate= |accessdate= |quote= }}
The only mandatory parameters are url and title. If archiveurl or archivedate are used, both of them must be used.
- url
- URL of the resource.
- title
- Title of the resource.
- first
- First name of the single author. Not needed if author is used instead.
- last
- Last name of the single author. Not needed if author is used instead.
- author
- Name of the author(s), not needed to use if the resource have only one author and first and last are used instead.
- authorlink
- Link to authors home page, user page or profile.
- coauthors
- FIXME (unknown usage)
- date
- Date of resource. Could be a full date or a partial date like month and year.
- month
- The month the resource was published. Not needed if date is used.
- year
- The year the resource was published. Not needed if date is used.
- work
- See url.
- publisher
- The publisher of the resource. May include a link.
- page
- The page in the resource (online book, catalogue etc.) that is relevant. Use pages if more than one page.
- pages
- The numbered pages in the resource that is relevant. Separate ranges with en dash – (–) and non sequaential pages with comma (,).
- language
- The language of the resource if it is not English or the language of a translated page.
- format
- Format of the resource, for example pdf, doc or djvu.
- id
- FIXME (unknown usage)
- archiveurl
- Link to an archived copy of a web page. Both of archiveurl and archivedate or neither must be used.
- archivedate
- Date when original URL was archived.
- accessdate
- The date the resource was found and added this page, or date it was updated. For example date=24 April 2024, or date=April 24, 2024.
- quote
- A quote from the resource.