Template:Cite web: Difference between revisions
(Added params for author and publishing date, for e. g. articles and blog posts) |
(Add to 'Citation templates' category.) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{author|}}}|{{{author|}}}.}} "{{#if:{{{archive-page|}}}|[[{{{archive-page}}}|{{{title}}}]]|[{{{archive-url|{{{url}}}}}} {{{title}}}]}}", {{{website}}}{{#if:{{{ | {{#if:{{{author|}}}|{{{author|}}}.}} "{{#if:{{{archive-page|}}}|[[{{{archive-page}}}|{{{title}}}]]|[{{{archive-url|{{{url}}}}}} {{{title}}}]}}", {{{website}}}{{#if:{{{published|}}}|, {{{published|}}}}}, accessed {{{access-date}}}. {{#if:{{{archive-url|{{{archive-page|}}}}}}|Archived from [{{{url}}} the original] on {{{archive-date}}}.}}<noinclude>{{documentation}} [[Category:Citation templates]]</noinclude> |
Latest revision as of 04:06, 31 July 2024
"[{{{url}}} {{{title}}}]", {{{website}}}, accessed {{{access-date}}}.
This template is a way to ensure that web pages are cited using the appropriate citation formatting.
Parameter | Description | Type | Status | |
---|---|---|---|---|
URL | url | The URL of the cited web page. This should always be the page's original URL, even if it is no longer available - the URL of an archived copy can be provided in the archive-url parameter.
| URL | required |
Page title | title | The title of the cited web page.
| String | required |
Author | author | The author of the page, if known/attributed, e. g. for articles or blog posts.
| String | optional |
Website name | website | The name of the website to which the cited page belongs.
| String | required |
Publishing date | published | The date when the page was published, if known.
| Date | optional |
Access date | access-date | The date on which the page was accessed. If archive-url is used, this should be the date on which the archived copy was accessed - the date on which the page was archived can be provided in the archive-date parameter.
| String | required |
Archive URL | archive-url | The URL of an archived version of the web page. Use if the original page is no longer available.
| URL | optional |
Archive reference page name | archive-page | The name of a reference page on the wiki containing a copy of the web page's content. Use if the original page is no longer available and its content has been archived on the wiki.
| Page name | optional |
Archival date | archive-date | The date on which the page was archived. Required if archive-url or archive-page is given.
| String | optional |
The above documentation is transcluded from Template:Cite web/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |