Template:Cite news: Difference between revisions
Appearance
PhantomSteve (talk | contribs) add templatedata |
PhantomSteve (talk | contribs) update |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{author|}}}|{{{author}}}. |}}{{#if:{{{url|}}}|[{{{url}}} “{{{title|Untitled news article}}}”]|“{{{title|Untitled news article}}}”}}{{#if:{{{newspaper|}}}|. ''{{{newspaper}}}''|}}{{#if:{{{location|}}}|. {{{location}}}|}}{{#if:{{{date|}}}|. {{{date}}}|}}{{#if:{{{page|}}}|, p. {{{page}}}|}}{{#if:{{{pages|}}}|, pp. {{{pages}}}|}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|}}.</includeonly> | <includeonly>{{#if:{{{author|}}}|{{{author}}}. |}}{{#if:{{{url|}}}|[{{{url}}} “{{{title|Untitled news article}}}”]|“{{{title|Untitled news article}}}”}}{{#if:{{{newspaper|}}}|. ''{{{newspaper}}}''|}}{{#if:{{{location|}}}|. {{{location}}}|}}{{#if:{{{date|}}}|. {{{date}}}|}}{{#if:{{{page|}}}|, p. {{{page}}}|}}{{#if:{{{pages|}}}|, pp. {{{pages}}}|}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|}}.</includeonly> | ||
<noinclude> | <noinclude> | ||
This template formats a citation for a printed or online newspaper article. | |||
== Usage == | |||
<pre> | |||
{{Cite news | |||
|author=Jane Smith | |||
|url=https://example.com/news/new-stamp-issue | |||
|title=New Stamp Issue Celebrates Manx Heritage | |||
|newspaper=Isle of Man Examiner | |||
|location=Douglas | |||
|date=15 September 2026 | |||
|page=12 | |||
|pages= | |||
|access-date=16 September 2026 | |||
}} | |||
</pre> | |||
Use <code>page</code> when citing a single page, or <code>pages</code> when citing a range of pages; leave the unused parameter blank. | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "", | ||
"params": { | "params": { | ||
"author": { | "author": { | ||
Revision as of 21:44, 16 September 2026
This template formats a citation for a printed or online newspaper article.
Usage
{{Cite news
|author=Jane Smith
|url=https://example.com/news/new-stamp-issue
|title=New Stamp Issue Celebrates Manx Heritage
|newspaper=Isle of Man Examiner
|location=Douglas
|date=15 September 2026
|page=12
|pages=
|access-date=16 September 2026
}}
Use page when citing a single page, or pages when citing a range of pages; leave the unused parameter blank.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Author | author | Author of the article | Line | suggested |
| URL | url | Web address of the article | URL | optional |
| Article title | title | Title of the news article | Line | required |
| Newspaper | newspaper | Name of the newspaper | Line | suggested |
| Location | location | Place where the newspaper was published | Line | optional |
| Publication date | date | Date the article was published | Date | suggested |
| Page | page | Single page being cited | Line | optional |
| Pages | pages | Range of pages being cited | Line | optional |
| Access date | access-date | Date the online article was accessed | Date | optional |