Jump to content

Template:Cite news: Difference between revisions

From PhantomWiki
add templatedata
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": "Formats a citation for a newspaper article",
     "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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Authorauthor

Author of the article

Linesuggested
URLurl

Web address of the article

URLoptional
Article titletitle

Title of the news article

Linerequired
Newspapernewspaper

Name of the newspaper

Linesuggested
Locationlocation

Place where the newspaper was published

Lineoptional
Publication datedate

Date the article was published

Datesuggested
Pagepage

Single page being cited

Lineoptional
Pagespages

Range of pages being cited

Lineoptional
Access dateaccess-date

Date the online article was accessed

Dateoptional