Jump to content

Template:Cite news: Difference between revisions

From Srcfy Wiki
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}}}.&#32;}}"{{#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>&lt;ref&gt;</code> tags.
Formats a citation to a news report or article. Used inside <code>&lt;ref&gt;</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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
URLurl

no description

URLrequired
Titletitle

Headline exactly as published

Stringrequired
Publisherpublisher work

Newspaper, website or organisation

Stringsuggested
Datedate

Publication date, YYYY-MM-DD

Datesuggested
Authorauthor

no description

Stringoptional
Access dateaccess-date

Date the source was checked, YYYY-MM-DD

Dateoptional