Difference between revisions of "Template:Cite news"

MyWikiBiz, Author Your Legacy — Tuesday April 23, 2024
Jump to navigationJump to search
 
m (1 revision(s))
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{title|}}}
+
<includeonly>{{
 +
#if: {{{archiveurl|}}}{{{archivedate|}}}
 +
  | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
 +
    ||<div style="border:1px solid red; background-color:#ffdab9; display:table;">
 +
You must specify '''''archiveurl=''''' and '''''archivedate=''' when using {{tl|cite news}}. Available parameters:
 +
{{Cite news/doc/parameterlist}}
 +
</div>{{
 +
    #if: {{NAMESPACE}}||
 +
      [[Category:Articles with broken citations]]
 +
    }}
 +
}}
 +
}}{{#if: {{{title|}}}
 
   |{{#if: {{{author|}}}{{{last|}}}
 
   |{{#if: {{{author|}}}{{{last|}}}
 
     | {{#if: {{{authorlink|}}}
 
     | {{#if: {{{authorlink|}}}
Line 12: Line 23:
 
     }}
 
     }}
 
   }}{{#if: {{{author|}}}{{{last|}}}
 
   }}{{#if: {{{author|}}}{{{last|}}}
     | {{#if: {{{coauthors|}}} | ,&#32;{{{coauthors}}} }}.&#32;
+
     | {{#if: {{{coauthors|}}} | &#59;&#32;{{{coauthors}}} }}.&#32;
   }}{{#if: {{{curly|}}}|“|"}}{{#if: {{{url|}}}
+
   }}{{#if: {{{curly|}}}|“|"
  | [{{{url}}} {{{title}}}]  
+
  }}{{#if: {{{archiveurl|}}}
  | {{{title}}}
+
    | [{{{archiveurl}}} {{{title}}}]
 +
    | {{#if: {{{url|}}}  
 +
      | [{{{url}}} {{{title}}}]  
 +
      | {{{title}}}
 +
    }}
 
   }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})  
 
   }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})  
 
     }}{{#if: {{{work|}}}
 
     }}{{#if: {{{work|}}}
 
     | , ''{{{work}}}''}}{{#if: {{{publisher|}}}
 
     | , ''{{{work}}}''}}{{#if: {{{publisher|}}}
     | , ''{{{publisher}}}''
+
     | , {{#if: {{{location|}}} |{{{location}}}:&#32;}}{{{publisher}}}
 
   }}{{#if: {{{date|}}}
 
   }}{{#if: {{{date|}}}
     | , {{{date}}}
+
     | , {{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{{date}}}}}
 
   }}{{#if: {{{pages|}}}
 
   }}{{#if: {{{pages|}}}
 
     | , pp.&nbsp;{{{pages}}}
 
     | , pp.&nbsp;{{{pages}}}
Line 32: Line 47:
 
   | .&#32;Retrieved on [[{{{accessdate}}}]]
 
   | .&#32;Retrieved on [[{{{accessdate}}}]]
 
   }}.{{#if: {{{language|}}}
 
   }}.{{#if: {{{language|}}}
   | &#32;(in {{{language|}}})
+
   | &#32;<span style="color:#555;">({{{language}}})</span>
 +
  }}{{#if: {{{archivedate|}}}
 +
  | &#32;Archived from [{{{url}}} the original] on [[{{{archivedate}}}]].
 
   }}{{ #if: {{{quote|}}}
 
   }}{{ #if: {{{quote|}}}
     | &nbsp;{{{quote}}}
+
     | &nbsp;"{{{quote}}}"
   }}|Template error: argument '''title''' is required.}}</includeonly><noinclude>
+
   }}|Template error: argument '''title''' is required.}}<!--
{{protected template}}
+
 
 +
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
 +
  --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
 +
  -->&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:dc}}<!--                    Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:dc
 +
  -->&rft.type=newspaperArticle<!--                                            The nature or genre of the content of the resource.  (newspaperArticle chosen purely because it is recognized by Zotero.)
 +
  -->&rft.subject=News<!--                                                      A topic of the content of the resource. Typically expressed as keywords, key phrases or classification codes...
 +
  -->{{#if: {{{first|}}}    | &rft.aufirst={{urlencode:{{{first}}}}}      }}<!-- First author's given name or names or initials... may contain multiple words and punctuation, i.e. "Fred F", "Fred James"
 +
  -->{{#if: {{{last|}}}      | &rft.aulast={{urlencode:{{{last}}}}}        }}<!-- First author's family name. This may be more than one word ... i.e. Smith, Fred James is recorded as "aulast=smith"
 +
  -->{{#if: {{{author|}}}    | &rft.au={{urlencode:{{{author}}}}}          }}<!-- This data element contains the full name of a single author, i. e. "Smith, Fred M", "Harry S. Truman".
 +
  -->&rft.title={{urlencode:{{{title|}}}}}<!--                                    A name given to the resource.
 +
  -->{{#if: {{{url|}}}      | &rft.identifier={{urlencode:{{{url}}}}}      }}<!-- URL
 +
  -->{{#if: {{{format|}}}    | &rft.format={{urlencode:{{{format}}}}}      }}<!-- The physical or digital manifestation of the resource... may include the media-type or dimensions of the resource.
 +
  -->{{#if: {{{work|}}}      | &rft.source={{urlencode:{{{work}}}}}        }}<!-- A Reference to a resource from which the present resource is derived.
 +
  -->{{#if: {{{publisher|}}} | &rft.publisher={{urlencode:{{{publisher}}}}} }}<!-- An entity responsible for making the resource available... person, an organization, or a service.
 +
  -->{{#if: {{{pages|}}}    | &rft.pages={{urlencode:{{{pages}}}}}        }}<!-- Start and end pages for parts (of a book), i.e. "124-147"
 +
  -->{{#if: {{{page|}}}      | &rft.spage={{urlencode:{{{page}}}}}        }}<!-- Start page for parts (of a book), i.e. "124"
 +
  -->{{#if: {{{date|}}}      | &rft.date={{urlencode:{{{date}}}}}          }}<!-- A date of an event in the lifecycle of the resource... typically the creation or availability of the resource. (ISO 8601)
 +
  -->{{#if: {{{language|}}}  | &rft.language={{urlencode:{{{language}}}}}  }}<!-- A language of the intellectual content of the resource. Recommended best practice is to use RFC 3066... in conjunction with ISO639
 +
  -->">&nbsp;</span></includeonly><noinclude>
 +
{{pp-template|small=yes}}
 
{{/doc}}
 
{{/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 17:22, 13 February 2008

Template:Pp-meta

This template documentation is transcluded from Template:Cite news/doc [edit]

This template is used to cite sources in Centiare. It is specifically for news sources.

Usage

All fields must be lowercase.

Copy a blank version to use. Remember to use the "|" (pipe) character between each field. Please delete any unused fields to avoid clutter in the edit window.

Full version (copy and paste text below and delete parameters you don't need)
{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |id= |pages= |page= |date= |accessdate= |language= |quote= }}
Most commonly used fields (or you can use this and not have to delete as much)
(This assumes English, HTML format, with today as access date)
{{cite news |first= |last= |authorlink= |coauthors= |title= |url= |work= |publisher= |date= |accessdate=2024-04-23 }}
All parameters, vertical format
{{cite news 
 | first = 
 | last = 
 | authorlink =
 | author = 
 | coauthors =
 | title = 
 | url = 
 | format = 
 | work = 
 | publisher = 
 | id = 
 | pages = 
 | page = 
 | date = 
 | accessdate = 
 | language = 
 | quote = 
}}
  • title is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly.
  • author: Author
    • last works with first to produce last, first
    • authorlink works either with author or with last & first to link to the appropriate wikipedia article. Does not work with URLs.
    • coauthors: allows additional authors
  • url: Link to the news item if available online
    • format: Format, i.e. PDF. Don't specify for HTML (implied as default).
      Specify as 'fee required' if free access no longer available.
      Specify as 'Reprint' if a full original version but not hosted by the original publisher.
  • work: If this item is part of a larger work (such as a newspaper), name of that work.
  • publisher: Publisher, if any.
  • id: Identifier such as {{ISSN|0028-0836}} — remember, you must specify the kind of identifier, not just give a number.
  • date: date of publication. ISO 8601 YYYY-MM-DD format recommended. If the whole date is known it should be wikilinked to enable date user preferences.
  • pages overrides page
  • accessdate: Date when item was accessed. Use ISO 8601 YYYY-MM-DD format. Do not wikilink the date.
  • language: the language in which the source is written.
  • quote: Relevant quote.

Examples

  • {{cite news | first=John | last=Doe | title=News | url=http://www.url.com/ | work=Encyclopedia of Things | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | id={{ISSN|0028-0836}} | accessdate=2005-12-11}}
    → Doe, John. "News", Encyclopedia of Things, News co., 2005-11-21, pp. 37–39. Template:ISSN. Retrieved on 2005-12-11. 
  • {{cite news | author=Staff writer | title=News | url=http://www.url.com/News.pdf | format=PDF | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | accessdate=2005-12-11}}
    → Staff writer. "News" (PDF), News co., 2005-11-21, pp. 37–39. Retrieved on 2005-12-11. 
  • {{cite news | first=John | last=Doe | authorlink=John Doe | title=News | url=http://www.url.com/background | format=Reprint | publisher=News co. | date=[[2005-11-21]] | accessdate=2005-12-11}}
    Doe, John. "News" (Reprint), News co., 2005-11-21. Retrieved on 2005-12-11. 
  • {{cite news | title=News | url=http://www.url.com/Archive/News | format=Fee required | publisher=News co. | date=[[2005-11-21]] | accessdate=2005-12-11}}
    → "News" (Fee required), News co., 2005-11-21. Retrieved on 2005-12-11. 
  • {{cite news | first=John | last=Doe | title=FooBar | page=1}}
    → Doe, John. "FooBar", p. 1. 
  • {{cite news | title=FooBar | page=1 }}
    → "FooBar", p. 1. 

See also


Information icon.svg This template employs some extremely complicated or esoteric features of template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the template sandbox or your user space.