Template:Cite news: Difference between revisions
Appearance
Set up incident article infrastructure |
Fix spacing after author |
||
| Line 1: | Line 1: | ||
<includeonly><span class="citation news">{{#if:{{{author|}}}|{{{author}}}. }}"{{#if:{{{url|}}}|[{{{url}}} {{{title|}}}]|{{{title|}}}}}"{{#if:{{{work|{{{publisher|}}}}}}|. ''{{{work|{{{publisher|}}}}}}''}}{{#if:{{{date|}}}|. {{#invoke:Incident|date|{{{date}}}|en}}}}{{#if:{{{access-date|}}}|. Retrieved {{#invoke:Incident|date|{{{access-date}}}|en}}}}.</span></includeonly><noinclude> | <includeonly><span class="citation news">{{#if:{{{author|}}}|{{{author}}}. }}"{{#if:{{{url|}}}|[{{{url}}} {{{title|}}}]|{{{title|}}}}}"{{#if:{{{work|{{{publisher|}}}}}}|. ''{{{work|{{{publisher|}}}}}}''}}{{#if:{{{date|}}}|. {{#invoke:Incident|date|{{{date}}}|en}}}}{{#if:{{{access-date|}}}|. Retrieved {{#invoke:Incident|date|{{{access-date}}}|en}}}}.</span></includeonly><noinclude> | ||
Formats a citation to a news report or article. Used inside <code><ref></code> tags. | Formats a citation to a news report or article. Used inside <code><ref></code> tags. | ||
<templatedata> | <templatedata> | ||
Latest revision as of 00:42, 31 October 2026
Formats a citation to a news report or article. Used inside <ref> tags.
Citation for a news report or online article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| URL | url | no description | URL | required |
| Title | title | Headline exactly as published | String | required |
| Publisher | publisher work | Newspaper, website or organisation | String | suggested |
| Date | date | Publication date, YYYY-MM-DD | Date | suggested |
| Author | author | no description | String | optional |
| Access date | access-date | Date the source was checked, YYYY-MM-DD | Date | optional |