Template:Source: Difference between revisions

From Wikinews, the free news source you can write!
Jump to navigation Jump to search
[checked revision][unchecked revision]
Content deleted Content added
Dendodge (talk | contribs)
m It seems to be standard practice to include a dot after the author's name in citations. So maybe we should do so?
Dendodge (talk | contribs)
This hack should get rid of the comma in the hCalendar without duplicating three lines of esoteric wikicode.
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>{{#if:{{{author|}}}|{{#ifeq:{{{author}}}|{{uc:{{{author}}}}}|{{#switch:{{{author}}}|AP=AP|AFP=AFP|CNN=CNN|CBC=CBC|AAP=AAP|NBC=NBC|ABC=ABC|MSN=MSN|MSNBC=MSNBC|CBS=CBS|APP=APP|VOA=VOA|IHN=IHN|AHN=AHN|ITN=ITN|CP=CP|DPA=DPA|NASA=NASA|{{ucfirst:{{lc:{{{author}}}}}}}}}|{{{author}}}}}}}{{#if:{{{author|}}}|.|}} {{#if:{{{brokenURL|}}}|{{{title}}} &lt;<u>{{{url}}}</u>&gt;|"[{{{url}}} {{{title}}}]"}} &mdash;&nbsp;{{#if:{{{pub|{{{publisher|}}}}}}| ''[[w:{{{pub|{{{publisher}}}}}}{{!}}{{{pub|{{{publisher}}}}}}]]'',|}} {{{date}}}{{#ifeq:{{NAMESPACE}}|Template||{{#if:{{{url|}}}{{{nocat|}}}||[[Category:Articles with broken source templates]]}}}}</onlyinclude>
<onlyinclude><span class="vevent">{{#if:{{{author|}}}|{{#ifeq:{{{author}}}|{{uc:{{{author}}}}}|{{#switch:{{{author}}}|AP=AP|AFP=AFP|CNN=CNN|CBC=CBC|AAP=AAP|NBC=NBC|ABC=ABC|MSN=MSN|MSNBC=MSNBC|CBS=CBS|APP=APP|VOA=VOA|IHN=IHN|AHN=AHN|ITN=ITN|CP=CP|DPA=DPA|NASA=NASA|{{ucfirst:{{lc:{{{author}}}}}}}}}|{{{author}}}}}}}{{#if:{{{author|}}}|.|}} <span class="summary">{{#if:{{{brokenURL|}}}|{{{title}}} &lt;<u>{{{url}}}</u>&gt;|"[{{{url}}} {{{title}}}]"}} &mdash;&nbsp;{{#if:{{{pub|{{{publisher|}}}}}}| ''[[w:{{{pub|{{{publisher}}}}}}{{!}}{{{pub|{{{publisher}}}}}}]]''</span>,|}} <abbr class="dtstart" title="{{#time:Y-m-d|{{{date|{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY}}}}}}}Z">{{{date}}}</abbr>{{#ifeq:{{NAMESPACE}}|Template||{{#if:{{{url|}}}{{{nocat|}}}||[[Category:Articles with broken source templates]]}}}}</span><!--
COinS data is below. Do not touch it unless you know what you are doing. It is very easy to break.
-->{{#iferror:<span class="Z3988" style="display:none" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rfr_id=rfr_id=info:sid/en.wikinews.org:User%3ADendodge&rft_id=info:sid/en.wikinews.org:{{FULLPAGENAMEE}}&rft.atitle={{urlencode:{{{title|{{FULLPAGENAME}}}}}}}&rft.jtitle={{urlencode:{{{pub|{{{publisher|Wikinews}}}}}}}}&rft.date={{#time:Y-m-d|{{{date|{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY}}}}}}}&rft.au={{urlencode:{{{author|Wikinews contributors}}}}}&rft.genre=article&rft.identifier={{urlencode:{{{url|{{fullurl:{{FULLPAGENAME}}}}}}}}}">&nbsp;</span>|[[Category:Pages with broken COinS]]}}</onlyinclude>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 14:51, 29 June 2011

"[{{{url}}} {{{title}}}]" —  {{{date}}}

[edit] Template documentation
See Wikinews:Style guide for more information on citing your sources.

Usage

*{{source
 |url        = 
 |title      = 
 |author     = 
 |pub        = 
 |date       = 
 |archiveurl = 
}}
Example
*{{source
 |url        = https://www.bbc.co.uk/news/world-asia-58223231
 |title      = Afghanistan conflict: Taliban push into Kabul as Ghani flees
 |author     =
 |pub        = BBC News Online
 |date       = August 15, 2021
 |archiveurl = https://web.archive.org/web/20210815165730/https://www.bbc.com/news/world-asia-58223231
}}

This will display as follows:

  • If you cannot find the author of a source, leave that field blank. Do not use 'staff reporter' or similar. List syndicate in the author field. Wikilink people and syndicates in this field when there's a target, local or non-local.
  • Put in a (second level) section labeled Sources (==Sources==).
  • Format date as shown above.
  • Always try to cite multiple independent sources.
  • Articles that don't provide a URL are listed at Category:Articles with broken source templates.
  • Category:Citation templates lists templates for offline news sources.
  • For unsupported URL schemas (like mms:) use brokenURL=true.
  • For publications (the 'pub=' or 'publisher=' parameter) please specify the exact same name under which the publication appears on Wikipedia.
  • On those rare occasions when publication name should differ from publication link target, use additional parameter 'pubtarget='. You can also use this to specify a target project other than English Wikipedia.
  • For an unavailable source (brokenURL=true) of an archived article, you may provide information about archival copies of the source using 'archiveurl=' and 'archivedescription='.
  • For an author field in ALL CAPS, that cannot be remediated by means such as described under subtemplate {{source/ucauthor}}, and necessarily should be in ALL CAPS for reasons idiosyncratic to this particular citation rather than a general exception better addressed by {{source/ucauthor}}, specify the precise acceptable value for the field as a 'cased author=' parameter.
  • For a non-English source, use the 'lang=' parameter, naming the language or its language code as supported by Category:Language templates or corresponding language-code redirects.
  • For a video, use medium=video. Also available, medium=audio (but as of this writing, not used anywhere), medium=pdf, medium=word.
  • For a source also available as a file on Wikimedia Commons, use the 'commons=' parameter, naming the file (without the File: prefix).
Note
you should always cite more than one source. Do not list multiple publications with the same wire report; instead try to list the originating location.

See also