Template:cite web: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#if:{{{name|{{{author|}}}}}}{{{username|}}}|{{{name|{{{author}}}}}}{{#if:{{{username|}}}|<nowiki /> [{{{username}}}]}}. <nowiki />}}{{#if:{{{date|}}}|({{#time:j F Y|{{{date}}}}}). <nowiki />}}[{{#if:{{#if:{{{archive-url|}}}||false}}{{#ifeq:{{{url-status|}}}|live|true}}|{{{url<noinclude>|//example.com</noinclude>}}}|{{{archive-url}}}}} <nowiki />{{{delimiters|"}}}<nowiki />{{#if:{{{lang|{{{language|}}}}}}|{{lang|{{{lang|{{{language}}}}}}|{{{title}}}}}|{{{title}}}}}<nowiki />{{{delimiters|"}}}<nowiki />]{{#if:{{{trans-title|}}}|<nowiki /> [{{{trans-title}}}]}}{{#if:{{{lang|{{{language|}}}}}}|<nowiki /> (in {{ISO|{{{lang|{{{language}}}}}}}})}}. ''{{{website}}}''.{{#if:{{{publisher|}}}|<nowiki /> {{{publisher}}}.}}{{#if:{{{archive-url|}}}{{{archive-date|}}}|<nowiki /> {{#if:{{{archive-url|}}}|{{#switch:{{{url-status|}}}|live=[{{{archive-url}}} Archived] from the original|unfit|usurped=Archived from the original|#default=Archived from [{{{url}}} the original]}} on {{#time:j F Y|{{{archive-date}}}}}.}}}}{{#if:{{{retrieved|{{{access-date|}}}}}}|<nowiki /> Retrieved {{#time:j F Y|{{{retrieved|{{{access-date}}}}}}}}.}}{{#if:{{{quote|}}}|<nowiki /> "{{{quote}}}".}}<noinclude> |
{{#if:{{{name|{{{author|}}}}}}{{{username|}}}|{{{name|{{{author}}}}}}{{#if:{{{username|}}}|<nowiki /> [{{{username}}}]}}. <nowiki />}}{{#if:{{{date|}}}|({{#time:j F Y|{{{date}}}}}). <nowiki />}}[{{#if:{{#if:{{{archive-url|}}}||false}}{{#ifeq:{{{url-status|}}}|live|true}}|{{{url<noinclude>|//example.com</noinclude>}}}|{{{archive-url}}}}} <nowiki />{{{delimiters|"}}}<nowiki />{{#if:{{{lang|{{{language|}}}}}}|{{lang|{{{lang|{{{language}}}}}}|{{{title}}}}}|{{{title}}}}}<nowiki />{{{delimiters|"}}}<nowiki />]{{#if:{{{trans-title|}}}|<nowiki /> [{{{trans-title}}}]}}{{#if:{{{lang|{{{language|}}}}}}|<nowiki /> (in {{ISO|{{{lang|{{{language}}}}}}}})}}. ''{{{website}}}''.{{#if:{{{publisher|}}}|<nowiki /> {{{publisher}}}.}}{{#if:{{{archive-url|}}}{{{archive-date|}}}|<nowiki /> {{#if:{{{archive-url|}}}|{{#switch:{{{url-status|}}}|live=[{{{archive-url}}} Archived] from the original|dead<!--To minimize rotten links on the rendered page, this behavior intentionally differs from Wikipedia's-->|unfit|usurped=Archived from the original|#default=Archived from [{{{url}}} the original]}} on {{#time:j F Y|{{{archive-date}}}}}.}}}}{{#if:{{{retrieved|{{{access-date|}}}}}}|<nowiki /> Retrieved {{#time:j F Y|{{{retrieved|{{{access-date}}}}}}}}.}}{{#if:{{{quote|}}}|<nowiki /> "{{{quote}}}".}}<noinclude> |
||
==Documentation== |
==Documentation== |
Latest revision as of 19:10, 20 May 2024
"{{{title}}}". {{{website}}}.
Documentation[edit source]
This template creates a citation for an online source. You should usually put this template within a <ref />
tag.
<ref>{{cite web |url= <!--|url-status=--> |title= <!--|trans-title= |language=--> |author= |username= |date= |website= |publisher= <!--|archive-url= |archive-date=--> |access-date= |quote=}}</ref>
If the page is not in English, then also translate the title and enter the language's ISO 639 code (for example, fr
for French, tok
for Toki Pona) into these parameters: |trans-title=|language=
In case the page changes or becomes unavailable later, it is recommended to save an archive of it with the Wayback Machine or archive.is, then add the parameters: |archive-url=|archive-date=
If the page has become unavailable and an archive has been filled in, then set the parameter |url-status=
according to the following template data documentation; otherwise, add {{dead link}}
directly after this template.
Discord messages require other information; use Template:cite Discord instead.
Template data[edit source]
Cites a webpage
Parameter | Description | Type | Status | |
---|---|---|---|---|
Author | author name | Author's Toki Pona name or legal name | Line | suggested |
Username | username | Author's username | String | suggested |
Source date | date | Full date when the page was published
| Date | suggested |
URL | url | Web address of the page you're citing
| URL | required |
URL status | url-status | Status of the non-archive URL. Requires {{{url}}} and {{{archive-url}}}, and determines which to use as the main link. If set to unfit or usurped (for when the non-archive URL has been claimed by another entity), only the archive is used.
| String | suggested |
Title | title | Title of the page you're citing. Usually at the top of the page, or used as the name of the tab in your web browser. | String | required |
Delimiters | delimiters | Title delimiters
| String | optional |
Translated title | trans-title | English translation of the page title, if the source is in another language | String | optional |
Language | language lang | Language the source is written in, if not English
| String | optional |
Quote | quote | Specific quote to cite. If long, place in a separate blockquote after this template. | Line | suggested |
Website name | website | Title of the website hosting the page | String | required |
Publisher | publisher | Publisher of the website | String | suggested |
Archive URL | archive-url | URL of an archived copy of the page
| URL | suggested |
Archive date | archive-date | Full date when the original URL was archived. With Wayback Machine archives, you can refer to the archive URL to find this quickly: web.archive.org/web/YYYYMMDDhhmmss | Date | suggested |
URL access date | access-date retrieved | Full date when the original URL was accessed | Date | suggested |