Jump to content

Template:Cite news: Difference between revisions

From Delaware Wrestling History
m 1 revision imported
m Protected "Template:Cite news" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:citation/CS1|citation
<includeonly>
|CitationClass=news
{{#if:{{{title|}}}|'''{{{title}}}'''<br>}}
}}</includeonly><noinclude>
 
{{documentation}}
{{#if:{{{url|}}}|[{{{url}}} {{{url}}}]<br>}}
 
{{#if:{{{newspaper|work|}}}|''{{{newspaper|work}}}''<br>}}
 
{{#if:{{{author|}}}|{{{author}}}<br>}}
 
{{#if:{{{date|}}}|{{{date}}}<br>}}
 
{{#if:{{{access-date|}}}|Retrieved {{{access-date}}}}}
</includeonly>
 
<noinclude>
 
== Documentation ==
Simple newspaper/news citation template (no Lua or CS1).
 
=== Usage ===
<pre>
{{Cite news
|title=
|url=
|author=
|newspaper=
|date=
|access-date=
}}
</pre>
 
=== TemplateData ===
<templatedata>
{
  "description": "Simple web citation template. Select Options to the left.",
  "params": {
    "title": {
      "label": "Title",
      "type": "string",
      "description": "Article title"
    },
    "url": {
      "label": "URL",
      "type": "url",
      "description": "Link to the article"
    },
    "author": {
      "label": "Author",
      "type": "string",
      "description": "Author of the article"
    },
    "newspaper": {
      "label": "Newspaper",
      "type": "string",
      "description": "Name of the newspaper or publication"
    },
    "date": {
      "label": "Date",
      "type": "string",
      "description": "Publication date"
    },
    "access-date": {
      "label": "Access date",
      "type": "string",
      "description": "Date accessed"
    }
  }
}
</templatedata>
 
</noinclude>
</noinclude>

Latest revision as of 11:38, 19 April 2026



Documentation

Simple newspaper/news citation template (no Lua or CS1).

Usage

{{Cite news
|title=
|url=
|author=
|newspaper=
|date=
|access-date=
}}

TemplateData

Simple web citation template. Select Options to the left.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Article title

Stringoptional
URLurl

Link to the article

URLoptional
Authorauthor

Author of the article

Stringoptional
Newspapernewspaper

Name of the newspaper or publication

Stringoptional
Datedate

Publication date

Stringoptional
Access dateaccess-date

Date accessed

Stringoptional