Difference between revisions of "Template:Cite news"

From Timelines
Jump to: navigation, search
(code from news reference but now with new parameter names. This template is now incompatible with {{news reference}})
m (Changed protection level of Template:Cite news: when I changed this to add template editors, I didn't realize it had cascding protection—so all my change did was make it appear as if it could be edited by them ([Edit=Allow only administrators] (indef...)
 
(125 intermediate revisions by 62 users not shown)
Line 1: Line 1:
Do not use [[template:Cite news]]. This is under development.
+
<includeonly>{{#invoke:citation/CS1|citation
{{qif
+
|CitationClass=news
  |test={{boolnot|{{{title|}}}}}
+
}}</includeonly><noinclude>
  |then=Template error: argument '''title''' is required.
+
{{documentation}}
  |else={{qif
 
    |test={{{first|}}}{{{last|}}}
 
    |then={{qif
 
      |test={{{last|}}}
 
      |then={{{last}}},&nbsp;
 
  }}{{{first|}}},&nbsp;
 
    |else={{qif
 
      |test={{{author|}}}
 
      |then={{{author|}}},&nbsp;
 
  }}
 
  }}"{{qif
 
    |test={{{url|}}}
 
    |then=[{{{url}}} {{{title}}}]
 
    |else={{{title}}}
 
  }}"{{qif
 
    |test={{{org|}}}
 
    |then=, ''{{{org}}}''
 
  }}{{qif
 
    |test={{{date|}}}
 
    |then=, {{{date}}}
 
  }}{{qif
 
    |test={{{pages|}}}
 
    |then=, pp. {{{pages}}}
 
    |else={{qif
 
      |test={{{page|}}}
 
      |then=, p. {{{page}}}
 
    }}
 
  }}{{qif
 
  |test={{{accessdate|}}} 
 
  |then=.&#32;URL accessed on [[{{{accessdate}}}]]
 
  }}.
 
}}<noinclude>
 
{{esoteric}}
 
[[Category:Citation templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:17, 12 November 2015

Template documentation[create]