Jump to content

Template:Cite news: Difference between revisions

From PhantomWiki
create
 
add templatedata
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>
<templatedata>
{
    "description": "Formats a citation for a newspaper article",
    "params": {
        "author": {
            "label": "Author",
            "description": "Author of the article",
            "type": "line",
            "suggested": true
        },
        "url": {
            "label": "URL",
            "description": "Web address of the article",
            "type": "url"
        },
        "title": {
            "label": "Article title",
            "description": "Title of the news article",
            "type": "line",
            "required": true
        },
        "newspaper": {
            "label": "Newspaper",
            "description": "Name of the newspaper",
            "type": "line",
            "suggested": true
        },
        "location": {
            "label": "Location",
            "description": "Place where the newspaper was published",
            "type": "line"
        },
        "date": {
            "label": "Publication date",
            "description": "Date the article was published",
            "type": "date",
            "suggested": true
        },
        "page": {
            "label": "Page",
            "description": "Single page being cited",
            "type": "line"
        },
        "pages": {
            "label": "Pages",
            "description": "Range of pages being cited",
            "type": "line"
        },
        "access-date": {
            "label": "Access date",
            "description": "Date the online article was accessed",
            "type": "date"
        }
    }
}
</templatedata>
</noinclude>

Revision as of 13:59, 9 September 2026


Formats a citation for a newspaper article

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