Cite news: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
implementing new code based on citation/core (see talk page)
m Reverted edits by Ruslik0 (talk) to last version by Mark
Line 1: Line 1:
{{Citation/core
<includeonly>{{
  |Citation class=news
#if: {{{archiveurl|}}}{{{archivedate|}}}
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
  | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
  |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
    ||<div style="border:1px solid red; background-color:#ffdab9; display:table;">
   |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
You must specify '''''archiveurl=''''' and '''''archivedate=''' when using {{tl|cite news}}. Available parameters:
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
{{Cite news/doc/parameterlist}}
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
</div>{{
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
    #if: {{NAMESPACE}}||
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
      [[Category:Articles with broken citations]]
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
    }}
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
}}
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
}}{{#if: {{{title|}}}
  |Given2 = {{{first2|{{{given2|}}}}}}
   |{{#if: {{{author|}}}{{{last|}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
    | {{#if: {{{authorlink|}}}
  |Given4 = {{{first4|{{{given4|}}}}}}
      | [[{{{authorlink}}}|{{#if: {{{last|}}}
   |Given5 = {{{first5|{{{given5|}}}}}}
        | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
   |Given6 = {{{first6|{{{given6|}}}}}}
        | {{{author}}}
  |Given7 = {{{first7|{{{given7|}}}}}}
      }}]]
  |Given8 = {{{first8|{{{given8|}}}}}}
      | {{#if: {{{last|}}}
  |Given9 = {{{first9|{{{given9|}}}}}}
        | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
        | {{{author}}}
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
      }}
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
    }}
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
  }}{{#if: {{{author|}}}{{{last|}}}
   |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
    | {{#if: {{{coauthors|}}} | &#59;&#32;{{{coauthors}}} }}
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
  }}{{#if: {{{author|}}}{{{last|}}}
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
    | {{#if: {{{date|}}}
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
    | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{{date}}}}}) }}
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
   }}{{#if: {{{last|}}}{{{author|}}}
  |Year={{{year|{{   <!-- attempt to derive year from date, if possible -->
   | .&#32;}}{{#if: {{{curly|}}}|“|"
            #if: {{{date|}}}
  }}{{#if: {{{archiveurl|}}}
            |{{
    | [{{{archiveurl}}} {{{title}}}]
                #iferror:{{#time:Y|{{{date|}}} }}
    | {{#if: {{{url|}}}  
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
      | [{{{url}}} {{{title}}}]
                |{{#time:Y|{{{date|}}} }}
      | {{{title}}}
              }}
    }}
            |{{{publication-date|}}} <!-- last resort -->
  }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})
          }}
    }}{{#if:{{{language|}}}  
        }}}
   | &#32;(in {{{language}}})
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
}}{{#if: {{{agency|}}}
  |Title={{#if:{{{journal|{{{periodical|{{{newspaper|{{{magazine|{{{work|}}}}}}}}}}}}}}}|{{{title|}}}}}
    | , {{{agency}}}}}{{#if: {{{work|}}}
  |URL={{{archiveurl|{{{url|}}}}}}
    | , ''{{{work}}}''{{#if: {{{location|}}} |&#32;({{{location}}})}}}}{{#if: {{{publisher|}}}
  |Series={{{agency|}}}
    | , {{{publisher}}}
   |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|{{{work|}}}}}}}}}}}}}}}
  }}{{#if: {{{author|}}}{{{last|}}}
  |Volume = {{{volume|}}}
    | | {{#if: {{{date|}}}
   |Issue = {{{issue|{{{number|}}}}}}
    | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{{date}}}}}) }}
  |At = {{
   }}{{#if: {{{pages|}}}
          #if: {{{page|}}}
    | , pp.&nbsp;{{{pages}}}
          |p.&nbsp;{{{page}}}
    |{{#if: {{{page|}}}
          |{{
      | , p.&nbsp;{{{page}}}
              #if: {{{pages|}}}
    }}
              |pp.&nbsp;{{{pages}}}
  }}{{#if: {{{id|}}}  
              |{{{at|}}}
    | . {{{id}}}
            }}
  }}{{#if: {{{accessdate|}}}
        }}
  | <span class=reference-accessdate>.&#32;Retrieved on {{#ifeq:{{#time:Y-m-d|{{{accessdate}}}}}|{{{accessdate}}}|{{#time:j F Y|{{{accessdate}}}}}|{{{accessdate}}}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}</span>
  |IncludedWorkTitle = {{#if:{{{journal|{{{periodical|{{{newspaper|{{{magazine|{{{work|}}}}}}}}}}}}}}}||{{{title|}}}}}
   }}{{#if: {{{accessmonthday|}}}
   |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
  | <span class=reference-accessdate>.&#32;Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}</span>
   |Edition = {{{edition|}}}
  }}{{#if: {{{accessdaymonth|}}}
  |Place = {{{place|{{{location|}}}}}}
   | <span class=reference-accessdate>.&#32;Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} | &#32;{{{accessyear}}} }}</span>
   |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
  }}.{{#if: {{{archivedate|}}}
   |Publisher = {{{publisher|}}}
  | &#32;Archived from [{{{url}}} the original] on {{#ifeq:{{#time:Y-m-d|{{{archivedate}}}}}|{{{archivedate}}}|{{#time:j F Y|{{{archivedate}}}}}|{{{archivedate}}}}}.
   |PublicationDate = {{{publication-date|}}}
  }}{{ #if: {{{quote|}}}
   |language = {{{language|{{{in|}}}}}}
    | &nbsp;"{{{quote}}}"
  |format = {{{format|}}}
   }}|Template error: argument '''title''' is required.}}<!--
   |ID={{{id|{{{ID|}}}}}}
 
  |ISBN={{{isbn|{{{ISBN|}}}}}}
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
   |ISSN={{{issn|{{{ISSN|}}}}}}
   --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
  |OCLC={{{oclc|{{{OCLC|}}}}}}
   -->&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
  |PMID={{{pmid|{{{PMID|}}}}}}
   -->&rft.type=newspaperArticle<!--                                            The nature or genre of the content of the resource.  (newspaperArticle chosen purely because it is recognized by Zotero.)
  |PMC={{{pmc|{{{PMC|}}}}}}
   -->&rft.subject=News<!--                                                     A topic of the content of the resource. Typically expressed as keywords, key phrases or classification codes...
  |Bibcode={{{bibcode|}}}
   -->{{#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"
  |DOI={{{doi|{{{DOI|}}}}}}
   -->{{#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"
   |AccessDate={{#if:{{{accessdate|}}}|{{{accessdate}}}|{{{accessday|}}} {{{accessmonth|}}} {{{accessyear|}}}}}
   -->{{#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".
   |laysummary = {{{laysummary|}}}
  -->&rft.title={{urlencode:{{{title|}}}}}<!--                                    A name given to the resource.
  |quote = {{{quote|}}}
  -->{{#if: {{{url|}}}       | &rft.identifier={{urlencode:{{{url}}}}}     }}<!-- URL
   |laydate = {{{laydate|}}}
   -->{{#if: {{{format|}}}   | &rft.format={{urlencode:{{{format}}}}}       }}<!-- The physical or digital manifestation of the resource... may include the media-type or dimensions of the resource.
  |Ref={{{ref|}}}
   -->{{#if: {{{agency|}}}     | &rft.source={{urlencode:{{{agency}}}}}     }}<!-- A Reference to a wire service or other press agency from which the present resource is derived. 
   |Sep = {{{separator|{{{seperator|,}}}}}}
   -->{{#if: {{{work|}}}     | &rft.source={{urlencode:{{{work}}}}}         }}<!-- A Reference to a resource from which the present resource is derived.
  |Archive = {{
   -->{{#if: {{{publisher|}}} | &rft.publisher={{urlencode:{{{publisher}}}}} }}<!-- An entity responsible for making the resource available... person, an organization, or a service.
              #if:{{{archiveurl|}}}|Archived from {{#if:{{{url|}}}|[{{{url|}}} the original]|the original}} {{#if:{{{archivedate|}}}| on {{{archivedate}}}|. You must specify the date the archive was made using the <code>archivedate=</code> parameter.{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}
  -->{{#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"
}}<noinclude>
  -->{{#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;">&nbsp;</span></span></includeonly><noinclude>
{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 13:38, 7 January 2009