Jump to content

Template:Cite news: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Admin (talk | contribs)
m Replaced Lua-based template with simple wikitext version
Create or repair template to remove red links and rendering errors across articles
 
Line 1: Line 1:
<includeonly><ref{{#if:{{{name|}}}| name="{{{name}}}"}}>{{#if:{{{author|}}}|{{{author}}}. }}{{#if:{{{title|}}}|"[{{{url}}} {{{title}}}]".}}{{#if:{{{newspaper|{{{publisher|}}}}}}| ''{{{newspaper|{{{publisher}}}}}''.}}{{#if:{{{date|}}}| {{{date}}}.}}{{#if:{{{access-date|}}}| Retrieved {{{access-date}}}.}}</ref></includeonly><noinclude>
<includeonly><ref{{#if:{{{name|}}}| name="{{{name}}}"}}>{{#if:{{{last|}}}|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}. |{{#if:{{{author|}}}|{{{author}}}. }}}}{{#if:{{{title|}}}|{{#if:{{{url|}}}|"[{{{url}}} {{{title}}}]".|"{{{title}}}".}}}}{{#if:{{{newspaper|}}}| ''{{{newspaper}}}''.}}{{#if:{{{publisher|}}}| {{{publisher}}}.}}{{#if:{{{volume|}}}| Vol.&nbsp;{{{volume}}}{{#if:{{{issue|}}}|, no.&nbsp;{{{issue}}}}}.}}{{#if:{{{pages|{{{page|}}}}}}| pp.&nbsp;{{{pages|{{{page}}}}}}.}}{{#if:{{{date|}}}| {{{date}}}.}}{{#if:{{{doi|}}}| doi:{{{doi}}}.}}{{#if:{{{access-date|{{{accessdate|}}}}}}| Retrieved {{{access-date|{{{accessdate}}}}}}.}}</ref></includeonly><noinclude>
== Usage ==
Citation template for news articles. Follows the CEO.wiki inline-citation house style described in the [[CEO.wiki:Manual of Style|Manual of Style]]; the template emits its own <code><nowiki><ref></nowiki></code> tags, so do not wrap it in another pair.
<pre>
{{cite news
| url =
| title =
| newspaper =
| publisher =
| date =
| access-date =
| author =
| name =
}}
</pre>


This is a simplified citation template that does not require Lua modules.
<pre>{{cite Cite news |last=Jones |first=Sarah |title=Headline |newspaper=Publication |date=January 15, 2024 |url=https://example.com |access-date=January 20, 2024}}</pre>


[[Category:Citation templates]]
[[Category:Citation templates]]
</noinclude>
</noinclude>

Latest revision as of 05:25, 25 August 2026

Citation template for news articles. Follows the CEO.wiki inline-citation house style described in the Manual of Style; the template emits its own <ref> tags, so do not wrap it in another pair.

{{cite Cite news |last=Jones |first=Sarah |title=Headline |newspaper=Publication |date=January 15, 2024 |url=https://example.com |access-date=January 20, 2024}}