Template:Cite web/doc: Difference between revisions
Template page
More actions
Updated documentation to explain use of {{{editor-last}}}, {{{editor-first}}}, {{{editorlink}}}/{{{editor-link}}}, {{{coeditors}}} and {{{editor-type}}} |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| (11 intermediate revisions by 9 users not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
{{esoteric}} | {{esoteric}} | ||
{{mbox|type=notice|text=This template is used by {{tl|Published}}. If you add or remove parameters from this template, please update {{tl|Published}} and {{tl|Published/ | {{mbox|type=notice|text=This template is used by {{tl|Published}}. If you add or remove parameters from this template, please update {{tl|Published}} and {{tl|Published/row}} as well. Experiments can be conducted in the template [[Template:Cite web/sandbox|sandbox]].}} | ||
===Usage=== | ===Usage=== | ||
This template may be used to cite websites which are not serial publications (journals, magazines and newspapers) – for such sources, use {{tl|Cite journal}}. | This template may be used to cite websites which are not serial publications (journals, magazines and newspapers) – for such sources, use {{tl|Cite journal}}. | ||
| Line 9: | Line 9: | ||
;Common form for situations where no author of the web page is stated (with current date) | ;Common form for situations where no author of the web page is stated (with current date) | ||
< | <code><nowiki>{{cite web |title= |url= |format= |work= |publisher= |date= |dateformat= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> |postscript= }}</nowiki></code> | ||
;Using the {{para|author}} parameter (with current date) | ;Using the {{para|author}} parameter (with current date) | ||
< | <code><nowiki>{{cite web |author= |authorlink= |coauthors= |editor= |editor-link= |coeditors= |editor-type= |title= |url= |archiveurl= |archivedate= |format= |work= |publisher= |date= |dateformat= |month= |year= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> |page= |pages= |language= |quote= |postscript= }}</nowiki></code> | ||
;Using the {{para|last}} and {{para|first}} parameters (with current date) | ;Using the {{para|last}} and {{para|first}} parameters (with current date) | ||
< | <code><nowiki>{{cite web |last= |first= |authorlink= |coauthors= |editor-last= |editor-first= |editor-link= |coeditors= |editor-type= |title= |url= |format= |archiveurl= |archivedate= |work= |publisher= |date= |dateformat= |month= |year= |accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> |page= |pages= |language= |quote= |postscript= }}</nowiki></code> | ||
;All parameters in a horizontal format (delete the ones you do not need) | ;All parameters in a horizontal format (delete the ones you do not need) | ||
< | <code><nowiki>{{cite web |last= |first= |author= |authorlink= |coauthors= |editor-last= |editor-first= |editor= |editor-link= |coeditors= |editor-type= |title= |url= |archiveurl= |archivedate= |format= |work= |publisher= |date= |dateformat= |month= |year= |accessdate= |accessdaymonth= |accessmonthday= |accessyear= |page= |pages= |language= |quote= |postscript= }}</nowiki></code> | ||
;All parameters, vertical format | ;All parameters, vertical format | ||
| Line 63: | Line 63: | ||
!Description | !Description | ||
|- | |- | ||
|colspan=2 bgcolor=silver|''' | |colspan=2 bgcolor=silver|'''Authors and editors''' | ||
|- | |- | ||
|align=center|last | |align=center|last | ||
| Line 74: | Line 74: | ||
|- | |- | ||
|align=center|authorlink | |align=center|authorlink | ||
|The name of a Wikipedia article about the author, like this: "< | |The name of a Wikipedia article about the author, like this: "<code>w:Mark Twain</code>" (for the article "{{w|Mark Twain}}" in the English Wikipedia) or "<code>w:de:Friedrich Schiller</code>" (for the article "[[ww:de:Friedrich Schiller|Friedrich Schiller]]" in the German Wikipedia). | ||
|- | |- | ||
|align=center|coauthors | |align=center|coauthors | ||
|The name(s) of the co-author(s) of the web page. Names can be {{w|Help:Link#Wikilinks|wikilinked}}, if desired. Separate a series of names with semicolons, like this: "< | |The name(s) of the co-author(s) of the web page. Names can be {{w|Help:Link#Wikilinks|wikilinked}}, if desired. Separate a series of names with semicolons, like this: "<code><nowiki>[[w:Harry Woolf, Baron Woolf|Lord Woolf]]; Jeffrey Jowell; Andrew Le Sueur; Catherine M. Donnelly</nowiki></code>". (You may also link to an article at the English Wikipedia like this: "<code><nowiki>[[w:Mark Twain|Mark Twain]]</nowiki></code>" or "<code><nowiki>{{w|Mark Twain}}</nowiki></code>".) | ||
|- | |- | ||
|align=center|editor-last | |align=center|editor-last | ||
|rowspan=2|The last and first names of the primary editor of the web page. Alternatively, specify the primary editor's name using {{para|editor}}. | |||
|- | |- | ||
|align=center|editor-first | |align=center|editor-first | ||
|- | |- | ||
|align=center|editor-link<br>editorlink | |align=center|editor | ||
|The name of the editor of the web page. Alternatively, specify the editor's first and last names using {{para|editor-first}} and {{para|editor-last}}. | |||
|- | |||
|align=center|editor-link<br />editorlink | |||
|The name of a Wikipedia article about the editor. For guidance on how to use this parameter, see {{para|authorlink}} above. | |The name of a Wikipedia article about the editor. For guidance on how to use this parameter, see {{para|authorlink}} above. | ||
|- | |- | ||
| Line 104: | Line 105: | ||
|- | |- | ||
|align=center|archiveurl | |align=center|archiveurl | ||
|The URL of the web page at which the original web page has been archived using a service such as the [ | |The URL of the web page at which the original web page has been archived using a service such as the [https://archive.org Internet Archive] or [https://www.webcitation.org WebCite]. If you use this parameter, {{para|archivedate}} must be used as well. | ||
|- | |- | ||
|align=center|archivedate | |align=center|archivedate | ||
| Line 110: | Line 111: | ||
|- | |- | ||
|align=center|format | |align=center|format | ||
|The format of the document at the web page, such as "< | |The format of the document at the web page, such as "<code>DOC</code>" for a {{w|Microsoft Word}} document or "<code>PDF</code>" for a document in the {{w|Portable Document Format}}. It is not necessary to specify "<code>HTML</code>" as a web page is assumed to be in HTML if no format is specified. | ||
|- | |- | ||
|align=center|accessdate | |align=center|accessdate | ||
| Line 117: | Line 118: | ||
|align=center|accessdaymonth | |align=center|accessdaymonth | ||
|rowspan=3|The parameters {{para|accessdaymonth}}, {{para|accessmonthday}} and {{para|accessyear}} can be used instead of {{para|accessdate}}, like this: | |rowspan=3|The parameters {{para|accessdaymonth}}, {{para|accessmonthday}} and {{para|accessyear}} can be used instead of {{para|accessdate}}, like this: | ||
*< | *<code><nowiki>accessdaymonth=10 May</nowiki></code> and <code><nowiki>accessyear=2010</nowiki></code> produce "Retrieved on 10 May 2010". | ||
*< | *<code><nowiki>accessmonthday=May 10</nowiki></code> and <code><nowiki>accessyear=2010</nowiki></code> produce "Retrieved on May 10, 2010". | ||
|- | |- | ||
|align=center|accessmonthday | |align=center|accessmonthday | ||
| Line 127: | Line 128: | ||
|- | |- | ||
|align=center|work | |align=center|work | ||
|The name of the website in which the web page appears. The name may be wikilinked, like this: "< | |The name of the website in which the web page appears. The name may be wikilinked, like this: "<code><nowiki>{{w|Singapore Infopedia}}</nowiki></code>" (for the English Wikipedia), "<code><nowiki>[[:fr:Wikipédia|Wikipédia]]</nowiki></code>". | ||
|- | |- | ||
|align=center|publisher | |align=center|publisher | ||
| Line 133: | Line 134: | ||
|- | |- | ||
|align=center|date | |align=center|date | ||
|The date when the article appeared in the journal. It may be entered a format such as "< | |The date when the article appeared in the journal. It may be entered a format such as "<code>4 July 2010</code>", "<code>July 4, 2010</code>" or "<code>2010-07-04</code>". Alternatively, state just the month and year of publication or the year of publication alone using {{para|month}} and {{para|year}}. | ||
|- | |- | ||
|align=center|dateformat | |align=center|dateformat | ||
|If {{para|dateformat}} is not specified, readers who are logged in will see the date formatted according to their "Date format" preferences. Alternatively, one of the following date formats can be specified: "< | |If {{para|dateformat}} is not specified, readers who are logged in will see the date formatted according to their "Date format" preferences. Alternatively, one of the following date formats can be specified: "<code>dmy</code>", "<code>mdy</code>", "<code>ymd</code>" or "<code>{{w|ISO 8601#Calendar dates|ISO 8601}}</code>". | ||
|- | |- | ||
|align=center|month | |align=center|month | ||
| Line 146: | Line 147: | ||
|- | |- | ||
|align=center|page | |align=center|page | ||
|rowspan=2|If the document at a web page has page numbers, use {{para|page}} to specify the first page number, or {{para|pages}} to specify the first and last page numbers. Separate a span of pages with an {{w|dash#En dash|en dash}}, like this: "< | |rowspan=2|If the document at a web page has page numbers, use {{para|page}} to specify the first page number, or {{para|pages}} to specify the first and last page numbers. Separate a span of pages with an {{w|dash#En dash|en dash}}, like this: "<code>520–534</code>". | ||
For a PDF document, you can use {{para|page}} to link to a specific page within the document like this: "< | For a PDF document, you can use {{para|page}} to link to a specific page within the document like this: "<code><nowiki>page=[http://www.example.org/file.pdf#page=123 123]</nowiki></code>". | ||
|- | |- | ||
|align=center|pages | |align=center|pages | ||
|- | |- | ||
|align=center|language | |align=center|language | ||
|The language of the web page, wikilinked to a Wikipedia article if desired. It is not necessary to specify "< | |The language of the web page, wikilinked to a Wikipedia article if desired. It is not necessary to specify "<code>English</code>" as this it is assumed that a web page is in English if no language is specified. | ||
|- | |- | ||
|align=center|quote | |align=center|quote | ||
| Line 159: | Line 160: | ||
|- | |- | ||
|align=center|postscript | |align=center|postscript | ||
|By default, a {{w|full stop}} (period) is displayed at the end of the citation. To suppress the full stop, use "< | |By default, a {{w|full stop}} (period) is displayed at the end of the citation. To suppress the full stop, use "<code>postscript=no</code>". To specify a comma or some other punctuation mark, use "<code>postscript=,</code>". Colons and semicolons must be surrounded by <nowiki><nowiki></nowiki> tags, like this: "<code><nowiki>postscript=<nowiki>;</nowiki></nowiki></code>". | ||
|} | |} | ||
| Line 168: | Line 169: | ||
!width=50%|Result | !width=50%|Result | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |author=John Doe |title=My Favorite Things Part II |url=http://www.example.org |publisher=Open Publishing |date=30 April 2005 |work=Encyclopedia of Things |accessdate=6 July 2005}}</nowiki></code> | ||
|{{cite web |author=John Doe |title=My Favorite Things Part II |url=http://www.example.org |publisher=Open Publishing |date=30 April 2005 |work=Encyclopedia of Things |accessdate=6 July 2005}} | |{{cite web |author=John Doe |title=My Favorite Things Part II |url=http://www.example.org |publisher=Open Publishing |date=30 April 2005 |work=Encyclopedia of Things |accessdate=6 July 2005}} | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |last=Twain |first=Mark |authorlink=w:Mark Twain |coauthors=Smith, Peter; Smythe, Jim |editor=Shakespeare, William, ed. |editorlink=w:William Shakespeare |title=My Favorite Things Part II |url=http://www.example.org |publisher=Open Publishing |date=2005-04-30 |accessdate=2006-05-16}}</nowiki></code> | ||
|{{cite web |last=Twain |first=Mark |authorlink= | |{{cite web |last=Twain |first=Mark |authorlink=w:Mark Twain |coauthors=Smith, Peter; Smythe, Jim |editor=Shakespeare, William, ed. |editorlink=w:William Shakespeare |title=My Favorite Things Part II |url=http://www.example.org |publisher=Open Publishing |date=2005-04-30 |accessdate=2006-05-16}} | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |title=List of psychotropic substances under international control |url=http://www.incb.org/pdf/e/list/green.pdf |format=PDF |publisher=International Narcotics Control Board |accessdate=July 6, 2005}}</nowiki></code> | ||
|{{cite web |title=List of psychotropic substances under international control |url=http://www.incb.org/pdf/e/list/green.pdf |format=PDF |publisher=International Narcotics Control Board |accessdate=July 6, 2005}} | |{{cite web |title=List of psychotropic substances under international control |url=http://www.incb.org/pdf/e/list/green.pdf |format=PDF |publisher=International Narcotics Control Board |accessdate=July 6, 2005}} | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |author=François Joliet |title=Honnit soit qui mal y pense |url=http://www.example.org |date=30 April 2005 |language={{w|French language|French}} |accessdate=6 July 2005}}</nowiki></code> | ||
|{{cite web |author=François Joliet |title=Honnit soit qui mal y pense |url=http://www.example.org |date=30 April 2005 |language={{w|French language|French}} |accessdate=6 July 2005}} | |{{cite web |author=François Joliet |title=Honnit soit qui mal y pense |url=http://www.example.org |date=30 April 2005 |language={{w|French language|French}} |accessdate=6 July 2005}} | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |title=My Favorite Things Part II |date=April 30, 2005 |url=http://www.example.org | accessdate=July 6, 2005}}</nowiki></code> | ||
|{{cite web |title=My Favorite Things Part II |date=April 30, 2005 |url=http://www.example.org | accessdate=July 6, 2005}} | |{{cite web |title=My Favorite Things Part II |date=April 30, 2005 |url=http://www.example.org | accessdate=July 6, 2005}} | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |title=List of psychotropic substances under international control |url=http://www.incb.org/pdf/e/list/green.pdf |format=PDF |archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf |archivedate=11 September 2005 |date=30 April 2005 |accessdate=6 July 2005}}</nowiki></code> | ||
|{{cite web |title=List of psychotropic substances under international control |url=http://www.incb.org/pdf/e/list/green.pdf |format=PDF |archiveurl= | |{{cite web |title=List of psychotropic substances under international control |url=http://www.incb.org/pdf/e/list/green.pdf |format=PDF |archiveurl=https://archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf |archivedate=11 September 2005 |date=30 April 2005 |accessdate=6 July 2005}} | ||
|- valign=top | |- valign=top | ||
|< | |<code><nowiki>{{cite web |title=My Favorite Things Part II |url=http://www.example.org |work=Encyclopedia of Things |accessdate=6 July 2005 |quote=Lorem ipsum dolor.}}</nowiki></code> | ||
|{{cite web |title=My Favorite Things Part II |url=http://www.example.org |work=Encyclopedia of Things |accessdate=6 July 2005 |quote=Lorem ipsum dolor.}} | |{{cite web |title=My Favorite Things Part II |url=http://www.example.org |work=Encyclopedia of Things |accessdate=6 July 2005 |quote=Lorem ipsum dolor.}} | ||
|} | |} | ||
{{Citation templates}} | |||
<!--ADD INTERWIKIS AND CATEGORIES HERE.--> | <!-- ADD INTERWIKIS ON WIKIDATA AND CATEGORIES HERE.--> | ||
<includeonly> | <includeonly> | ||
[[Category:Citation templates|{{PAGENAME}}]] | [[Category:Citation templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||