Template:Cite web: Difference between revisions
Appearance
Created page with "<noinclude> {{Documentation}} This template is used to cite web sources in Wikipedia articles. ==Usage== <pre> {{cite web | url = | title = | website = | publisher = | date = | access-date = | author = | first = | last = | archive-url = | archive-date = | url-status = | quote = }} </pre> ==Required parameters== * '''url''' - The URL of the web page being cited * '''title''' - The title of the web page * '''access-date''' - The date the web page was accessed (format: YY..." |
No edit summary |
||
| Line 92: | Line 92: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#if:{{{url|}}}| | <includeonly>{{#if:{{{url|}}}|{{#if:{{{last|}}}|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}|{{#if:{{{author|}}}|{{{author}}}}}}}{{#if:{{{last|{{{author|}}}}}}|{{#if:{{{date|}}}| ({{{date}}})}}. }}{{#if:{{{title|}}}|{{#if:{{{url|}}}|[{{{url}}} "{{{title}}}"]|"{{{title}}}"}}|Error: Missing title}}{{#if:{{{website|}}}|. ''{{{website}}}''}}{{#if:{{{publisher|}}}|. {{{publisher}}}}}{{#if:{{{date|}}}|{{#if:{{{last|{{{author|}}}}}}||. {{{date}}}}}}}{{#if:{{{archive-url|}}}|. {{#if:{{{url-status|}}}|{{#switch:{{{url-status}}}|dead=Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]|live=Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]|Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]}}|Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]}} on {{{archive-date|}}}}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|. Error: Missing access-date}}{{#if:{{{quote|}}}|: "{{{quote}}}"}}|Error: Missing URL}}</includeonly> | ||
Latest revision as of 07:16, 2 October 2025
Template:Documentation This template is used to cite web sources in Wikipedia articles.
Usage
{{cite web
| url =
| title =
| website =
| publisher =
| date =
| access-date =
| author =
| first =
| last =
| archive-url =
| archive-date =
| url-status =
| quote =
}}
Required parameters
- url - The URL of the web page being cited
- title - The title of the web page
- access-date - The date the web page was accessed (format: YYYY-MM-DD)
Common optional parameters
- website - The name of the website
- publisher - The publisher of the website (if different from website name)
- date - The publication date of the web page (format: YYYY-MM-DD)
- author - The author's full name (alternative: use first/last)
- first - Author's first name (use with last)
- last - Author's last name (use with first)
- archive-url - The URL of an archived copy of the page
- archive-date - The date the page was archived
- url-status - Status of the original URL (live, dead, deviated, unfit, usurped)
- quote - A relevant quote from the source
Examples
Basic web citation
{{cite web
| url = https://www.example.com/article
| title = Example Article Title
| website = Example Website
| access-date = 2025-10-02
}}
Produces: Example Website. "Example Article Title". Retrieved 2025-10-02.
Full citation with author
{{cite web
| url = https://www.gamesite.com/ananta-preview
| title = Ananta Preview: Urban Open World RPG
| first = John
| last = Smith
| website = GameSite
| publisher = Gaming Media Inc.
| date = 2025-09-15
| access-date = 2025-10-02
}}
Produces: Smith, John (2025-09-15). "Ananta Preview: Urban Open World RPG". GameSite. Gaming Media Inc. Retrieved 2025-10-02.
Citation with archive
{{cite web
| url = https://www.example.com/news
| title = Breaking News Article
| website = Example News
| date = 2025-08-20
| access-date = 2025-10-02
| archive-url = https://web.archive.org/web/20250820/https://www.example.com/news
| archive-date = 2025-08-20
| url-status = dead
}}
See also
- Template:Cite book
- Template:Cite journal
- Template:Cite news
- Template:Citation needed
- Help:Citation Style 1