Difference between revisions of "Template:Citation"

From WikiVet English
Jump to navigation Jump to search
(New page: <includeonly>{{ #if: {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor|}}}}}}}}}}}}}}} <!-- CITATIONS FOR PATENTS --> |{{Citation/patent |Surna...)
 
m
Line 1: Line 1:
<includeonly>{{
+
<includeonly><cite class="book" style="font-style:normal" {{
   #if: {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor|}}}}}}}}}}}}}}}
+
   #if: {{{ref|}}}
<!--
+
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
     CITATIONS FOR PATENTS
+
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
-->
+
}}>{{
|{{Citation/patent
+
  #if: {{{author|}}}{{{last|}}}
|Surname1 = {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor}}}}}}}}}}}}}}}
+
  | {{
|Surname2={{{inventor2-surname|{{{inventor2-last|{{{inventor2|}}}}}}}}}
+
    #if: {{{authorlink|}}}
|Surname3={{{inventor3-surname|{{{inventor3-last|{{{inventor3|}}}}}}}}}
+
     | [[{{{authorlink}}}|{{
|Surname4={{{inventor4-surname|{{{inventor4-last|{{{inventor4|}}}}}}}}}
+
      #if: {{{last|}}}
  |Given1 = {{{inventor-given|{{{inventor1-given|{{{inventor-first|{{{inventor1-first|}}}}}}}}}}}}
+
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
|Given2={{{inventor2-given|{{{inventor2-first|}}}}}}
+
      | {{{author}}}
|Given3={{{inventor3-given|{{{inventor3-first|}}}}}}
+
    }}]]
|Given4={{{inventor4-given|{{{inventor4-first|}}}}}}
+
    | {{
|Inventorlink1={{{inventorlink1|{{{inventorlink|}}}}}}
+
      #if: {{{last|}}}
|Inventorlink2={{{inventorlink2|}}}
+
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
|Inventorlink3={{{inventorlink3|}}}
+
      | {{{author}}}
|Inventorlink4={{{inventorlink4|}}}
+
    }}
|Title={{{title|}}}
+
  }}
|CountryCode={{{country-code}}}
+
}}{{
|PublicationNumber={{{publication-number|{{{patent-number}}}}}}
+
  #if: {{{author|}}}{{{last|}}}
|Description={{{description|}}}
+
  | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
|PublicationDate={{{publication-date|}}}
+
}}{{
|IssueDate={{{issue-date|}}}
+
  #if: {{{origdate|}}}
|Year={{{year}}}
+
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
}}
+
  | {{
 +
    #if: {{{origyear|}}}
 +
    | {{
 +
      #if: {{{origmonth|}}}
 +
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 +
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
 +
    }}
 +
  }}
 +
}}{{
 +
  #if: {{{date|}}}
 +
  | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|[[{{{date}}}]]|{{{date}}}}}}}) | {{
 +
    #if: {{{year|}}}
 +
    | {{
 +
      #if: {{{month|}}}
 +
      | &#32;({{{month}}} {{{year}}})
 +
      | &#32;({{{year}}})
 +
    }}
 +
  }}
 +
}}{{ #if: {{{author|}}}{{{last|}}} | .
 +
}}{{
 +
  #if: {{{chapter|}}}
 +
  | &#32;"{{
 +
    #if: {{{chapterurl|}}}
 +
    | [{{{chapterurl}}} {{{chapter}}}]
 +
    | {{{chapter}}}
 +
}}",}}{{
 +
  #if: {{{editor|}}}
 +
  | &#32;in {{{editor}}}:
 +
}} <i>{{
 +
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
 +
}}</i>{{
 +
  #if: {{{format|}}} | &#32;({{{format}}})
 +
}}{{
 +
  #if: {{{others|}}} | , {{{others}}}
 +
}}{{
 +
  #if: {{{edition|}}} | , {{{edition}}}
 +
}}{{
 +
  #if: {{{series|}}} | , {{{series}}}
 +
}}{{
 +
    #if: {{{volume|{{{number|}}}}}} | &#32;'''{{{volume|{{{number}}}}}}'''
 +
}}{{
 +
  #if: {{{language|}}} | &#32;(in {{{language}}})
 +
}}{{
 +
  #if: {{{publisher|}}}
 +
  | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{
 +
    #if: {{{location|}}}  
 +
    | {{{location}}}:&#32;
 +
  }}{{{publisher}}}
 +
}}{{
 +
  #if: {{{pages|{{{page|}}}}}} | ,&#32;{{{pages|{{{page}}}}}}
 +
}}{{
 +
  #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
 +
}}{{
 +
  #if: {{{id|}}} | . {{{id}}}
 +
}}{{
 +
  #if: {{{isbn|}}} | . ISBN {{{isbn}}}
 +
}}{{
 +
  #if: {{{oclc|}}} | . [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
 +
}}{{
 +
  #if: {{{url|}}}{{{chapterurl|}}} | {{
 +
  #if: {{{accessdate|}}} |  
 +
  <span class="reference-accessdate">. Retrieved on [[{{{accessdate}}}]]</span>
 +
  | {{
 +
    #if: {{{accessyear|}}}
 +
    | <span class="reference-accessdate">. Retrieved {{
 +
      #if: {{{accessmonth|}}}
 +
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
 +
      | during [[{{{accessyear}}}]]
 +
  }}</span>}}
 +
  }}
 +
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}
 +
}}</cite><!--
  
<!--
+
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
    CITATIONS FOR THINGS LIKE BOOKS AND PERIODICALS
+
  --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
-->
+
  -->&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:book}}<!--                  Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:book
|{{Template:Citation/core
+
   -->&rft.genre=book<!--                                                        book: a publication that is complete in one part or a designated finite number of parts, often identified with an ISBN.  (genre could also be bookitem, conference, proceeding, report, document, or unknown)
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|}}}}}}}}}}}}}}}}}}}}}
+
   -->&rft.btitle={{urlencode:{{{title|}}}}}<!--                                The title of the book. This can also be expressed as title, for compatibility with version 0.1. "moby dick or the white whale"
   |Surname2 = {{{last2|{{{surname2|{{{author2|}}}}}}}}}
+
   -->{{#if: {{{chapter|}}}  | &rft.atitle={{urlencode:{{{chapter}}}}}  }}<!-- Chapter title. Chapter title is included if it is a distinct title, e.g. "The Push Westward."
   |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
+
   -->{{#if: {{{last|}}}     | &rft.aulast={{urlencode:{{{last}}}}}     }}<!-- First author's family name. This may be more than one word ... e.g. Smith, Fred James is recorded as "aulast=smith"
   |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
+
   -->{{#if: {{{first|}}}     | &rft.aufirst={{urlencode:{{{first}}}}}   }}<!-- First author's given name or names or initials. This data element may contain multiple words and punctuation, e.g. "Fred F", "Fred James"
   |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
+
   -->{{#if: {{{author|}}}   | &rft.au={{urlencode:{{{author}}}}}       }}<!-- This data element contains the full name of a single author, e.g. "Smith, Fred M", "Harry S. Truman".
   |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
+
   -->{{#if: {{{date|}}}                                                   <!--
   |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
+
   --> | &rft.date={{urlencode:{{{date}}}}}                                 <!-- Date of publication.  ISO 8601 is allowed and preferred by us, although
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
+
   --> | {{#if: {{{year|}}}  | &rft.date={{urlencode:{{{year}}}}} }}     }}<!-- "Book dates are assumed to be a single year."
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
+
   -->{{#if: {{{edition|}}}  | &rft.edition={{urlencode:{{{edition}}}}} }}<!-- Statement of the edition of the book. This will usually be a phrase, with or without numbers, but may be a single number, e.g. "First edition", "4th ed."
   |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
+
  -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}   }}<!-- Publisher name. "Harper and Row"
  |Given2 = {{{first2|{{{given2|}}}}}}
+
  -->{{#if: {{{location|}}} | &rft.place={{urlencode:{{{location}}}}}  }}<!-- Place of publication. "New York"
  |Given3 = {{{first3|{{{given3|}}}}}}
+
   -->{{#if: {{{pages|{{{page|}}}}}}     | &rft.pages={{urlencode:{{{pages|{{{page}}}}}}}}     }}<!-- Start and end pages for parts of a book, e.g. "124-147" ... This data element includes the OpenURL 0.1 definition of "pages".
   |Given4 = {{{first4|{{{given4|}}}}}}
+
   -->{{#if: {{{series|}}}   | &rft.series={{urlencode:{{{series}}}}}   }}<!-- The title of a series in which the book or document was issued. There may also be an ISSN associated with the series.
  |Given5 = {{{first5|{{{given5|}}}}}}
+
   -->{{#if: {{{isbn|}}}     | &rft.isbn={{{isbn}}}                     }}<!-- International Standard Book Number (ISBN) ... i.e. "057117678X" but it may contain hyphens, e.g. "1-878067-73-7"
  |Given6 = {{{first6|{{{given6|}}}}}}
+
   -->{{#if: {{{oclc|}}}     | &rft_id=info:oclcnum/{{{oclc}}}           }}<!--  
   |Given7 = {{{first7|{{{given7|}}}}}}
+
   -->{{#if: {{{doi|}}}       | &rft_id=info:doi/{{urlencode:{{{doi}}}}} }}<!--
   |Given8 = {{{first8|{{{given8|}}}}}}
+
   -->{{#if: {{{url|}}}       | &rft_id={{urlencode:{{{url}}}}}           }}<!--
   |Given9 = {{{first9|{{{given9|}}}}}}
+
   -->"><span style="display: none;">&nbsp;</span></span></includeonly>
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
 
   |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
 
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
 
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
 
   |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
 
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
 
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
 
   |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
 
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
 
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
 
            #if: {{{date|}}}
 
            |{{
 
                #iferror:{{#time:Y|{{{date|}}} }}
 
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
 
                |{{#time:Y|{{{date|}}} }}
 
              }}
 
            |{{{publication-date|}}} <!-- last resort -->
 
          }}
 
        }}}
 
  |Date = {{{date|{{{year|{{{publication-date|}}}}}}}}}
 
  |Title={{{title|}}}
 
  |URL={{{url|}}}
 
  |Series={{{series|}}}
 
   |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
 
   |Volume = {{{volume|}}}
 
  |Issue = {{{issue|{{{number|}}}}}}
 
  |At = {{
 
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
 
          |{{{pages|{{{page|{{{at|}}}}}}}}}
 
          |{{
 
            #if: {{{page|}}}
 
            |p. {{{page}}}
 
            |{{
 
                #if: {{{pages|}}}
 
                |pp. {{{pages}}}
 
                |{{{at|}}}
 
              }}
 
          }}
 
        }}
 
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
 
   |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
 
  |Edition = {{{edition|}}}
 
  |Place = {{{place|{{{location|}}}}}}
 
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
 
  |Publisher = {{{publisher|}}}
 
  |PublicationDate = {{{publication-date|}}}
 
   |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
 
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
 
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
 
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
 
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
 
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
 
  |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
 
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
 
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
 
   |Editorlink2={{{editor2-link|}}}
 
  |Editorlink3={{{editor3-link|}}}
 
  |Editorlink4={{{editor4-link|}}}
 
  |ID={{{id|{{{ID|}}}}}}
 
  |ISBN={{{isbn|{{{ISBN|}}}}}}
 
  |ISSN={{{issn|{{{ISSN|}}}}}}
 
   |OCLC={{{oclc|{{{OCLC|}}}}}}
 
  |PMID={{{pmid|{{{PMID|}}}}}}
 
  |DOI={{{doi|{{{DOI|}}}}}}
 
   |AccessDate={{{access-date|{{{accessdate|}}}}}}
 
  |Ref={{{ref|}}}
 
}}
 
}}</includeonly>
 

Revision as of 13:21, 4 July 2008