Jump to content

Template:Cite news: Difference between revisions

Per edit request on Help talk:Citation Style 1
 
m Protected "Template:Cite news" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(4 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>