Difference between revisions of "Template:Cite news"
From Timelines
(implementing new code based on citation/core (see talk page)) |
|||
Line 1: | Line 1: | ||
− | {{ | + | <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: {{{authorlink|}}} | |
− | + | | [[{{{authorlink}}}|{{#if: {{{last|}}} | |
− | + | | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | |
− | | | + | | {{{author}}} |
− | + | }}]] | |
− | + | | {{#if: {{{last|}}} | |
− | + | | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }} | |
− | + | | {{{author}}} | |
− | + | }} | |
− | + | }} | |
− | + | }}{{#if: {{{author|}}}{{{last|}}} | |
− | | | + | | {{#if: {{{coauthors|}}} | ; {{{coauthors}}} }} |
− | + | }}{{#if: {{{author|}}}{{{last|}}} | |
− | + | | {{#if: {{{date|}}} | |
− | + | |  ({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{{date}}}}}) }} | |
− | + | }}{{#if: {{{last|}}}{{{author|}}} | |
− | + | | . }}{{#if: {{{curly|}}}|“|" | |
− | + | }}{{#if: {{{archiveurl|}}} | |
− | + | | [{{{archiveurl}}} {{{title}}}] | |
− | + | | {{#if: {{{url|}}} | |
− | + | | [{{{url}}} {{{title}}}] | |
− | + | | {{{title}}} | |
− | + | }} | |
− | + | }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} |  ({{{format}}}) | |
− | + | }}{{#if:{{{language|}}} | |
− | + | |  (in {{{language}}}) | |
− | + | }}{{#if: {{{agency|}}} | |
− | + | | , {{{agency}}}}}{{#if: {{{work|}}} | |
− | + | | , ''{{{work}}}''{{#if: {{{location|}}} | ({{{location}}})}}}}{{#if: {{{publisher|}}} | |
− | + | | , {{{publisher}}} | |
− | + | }}{{#if: {{{author|}}}{{{last|}}} | |
− | + | | | {{#if: {{{date|}}} | |
− | | | + | |  ({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{{date}}}}}) }} |
− | + | }}{{#if: {{{pages|}}} | |
− | + | | , pp. {{{pages}}} | |
− | + | |{{#if: {{{page|}}} | |
− | + | | , p. {{{page}}} | |
− | + | }} | |
− | + | }}{{#if: {{{id|}}} | |
− | + | | . {{{id}}} | |
− | + | }}{{#if: {{{accessdate|}}} | |
− | + | | <span class=reference-accessdate>. Retrieved on {{#ifeq:{{#time:Y-m-d|{{{accessdate}}}}}|{{{accessdate}}}|{{#time:j F Y|{{{accessdate}}}}}|{{{accessdate}}}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}</span> | |
− | + | }}{{#if: {{{accessmonthday|}}} | |
− | + | | <span class=reference-accessdate>. Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}</span> | |
− | + | }}{{#if: {{{accessdaymonth|}}} | |
− | + | | <span class=reference-accessdate>. Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} |  {{{accessyear}}} }}</span> | |
− | + | }}.{{#if: {{{archivedate|}}} | |
− | + | |  Archived from [{{{url}}} the original] on {{#ifeq:{{#time:Y-m-d|{{{archivedate}}}}}|{{{archivedate}}}|{{#time:j F Y|{{{archivedate}}}}}|{{{archivedate}}}}}. | |
− | + | }}{{ #if: {{{quote|}}} | |
− | + | | "{{{quote}}}" | |
− | + | }}|Template error: argument '''title''' is required.}}<!-- | |
− | + | ||
− | + | 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: {{{agency|}}} | &rft.source={{urlencode:{{{agency}}}}} }}<!-- A Reference to a wire service or other press agency from which the present resource is derived. | |
− | + | -->{{#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 | ||
+ | -->"><span style="display: none;"> </span></span></includeonly><noinclude> | ||
{{pp-template|small=yes}} | {{pp-template|small=yes}} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 05:38, 7 January 2009
Lua error in Module:Effective_protection_level at line 60: attempt to index field 'TitleBlacklist' (a nil value).
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |