Difference between revisions of "Template:Cite book"

MyWikiBiz, Author Your Legacy — Friday November 22, 2024
Jump to navigationJump to search
m (1 revision(s))
 
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
+
{{Citation/core1
  #if: {{{ref|}}}
+
|Citation class=book
   |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
+
   |AuthorMask = {{{authormask|{{{author-mask|}}}}}}
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
+
   |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
}}>{{
+
   |Surname2 = {{{last2|{{{surname2|{{{author2|}}}}}}}}}
   #if: {{{author|}}}{{{last|}}}
+
   |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
  | {{
+
   |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
    #if: {{{authorlink|}}}
+
   |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
    | [[{{{authorlink}}}|{{
+
   |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
      #if: {{{last|}}}
+
   |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
   |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
      | {{{author}}}
+
   |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
    }}]]
+
   |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
    | {{
 
      #if: {{{last|}}}
 
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
 
      | {{{author}}}
 
    }}
 
  }}
 
}}{{
 
  #if: {{{author|}}}{{{last|}}}
 
  | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
 
}}{{
 
  #if: {{{origdate|}}}
 
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
 
   | {{
 
    #if: {{{origyear|}}}
 
    | {{
 
      #if: {{{origmonth|}}}
 
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
 
    }}
 
  }}
 
}}{{
 
  #if: {{{date|}}}
 
   | &#32;({{{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|}}} |  
 
  . Retrieved on [[{{{accessdate}}}]]
 
  | {{
 
    #if: {{{accessyear|}}}
 
    | . Retrieved {{
 
      #if: {{{accessmonth|}}}
 
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
 
      | during [[{{{accessyear}}}]]
 
  }}}}
 
  }}
 
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}
 
}}</cite><!--
 
  
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
+
  |Given2 = {{{first2|{{{given2|}}}}}}
   --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
+
  |Given3 = {{{first3|{{{given3|}}}}}}
   -->&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
+
   |Given4 = {{{first4|{{{given4|}}}}}}
   -->&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)
+
  |Given5 = {{{first5|{{{given5|}}}}}}
   -->&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"
+
  |Given6 = {{{first6|{{{given6|}}}}}}
   -->{{#if: {{{chapter|}}}  | &rft.atitle={{urlencode:{{{chapter}}}}}  }}<!-- Chapter title. Chapter title is included if it is a distinct title, e.g. "The Push Westward."
+
   |Given7 = {{{first7|{{{given7|}}}}}}
   -->{{#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"
+
   |Given8 = {{{first8|{{{given8|}}}}}}
  -->{{#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"
+
   |Given9 = {{{first9|{{{given9|}}}}}}
  -->{{#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".
+
   |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
  -->{{#if: {{{date|}}}     | &rft.date={{urlencode:{{{date}}}}}<!--
+
   |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
   -->{{#if: {{{year|}}}     | &rft.date={{urlencode:{{{year}}}}} }}     }}<!-- Date of publication. Book dates are assumed to be a single year. (or ISO 8601)
+
   |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
   -->{{#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."
+
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
  -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}   }}<!-- Publisher name. "Harper and Row"
+
  |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
  -->{{#if: {{{location|}}} | &rft.place={{urlencode:{{{location}}}}}  }}<!-- Place of publication. "New York"
+
   |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
   -->{{#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".
+
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
  -->{{#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.
+
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
   -->{{#if: {{{isbn|}}}     | &rft.isbn={{{isbn}}}                     }}<!-- International Standard Book Number (ISBN) ... i.e. "057117678X" but it may contain hyphens, e.g. "1-878067-73-7"
+
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
   -->{{#if: {{{oclc|}}}     | &rft_id=info:oclcnum/{{{oclc}}}           }}<!--  
+
  |Coauthors = {{{coauthor|{{{coauthors|}}}}}}
   -->{{#if: {{{doi|}}}       | &rft_id=info:doi/{{urlencode:{{{doi}}}}} }}<!--
+
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
   -->{{#if: {{{url|}}}       | &rft_id={{urlencode:{{{url}}}}}           }}<!--
+
            #if: {{{date|}}}
   -->">&nbsp;</span></includeonly><noinclude>{{pp-template|small=yes}}{{documentation}}</noinclude>
+
            |{{
 +
                #iferror:{{#time:Y|{{{date|}}} }}
 +
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
 +
                |{{#time:Y|{{{date|}}} }}
 +
              }}
 +
            |{{{publication-date|}}} <!-- last resort -->
 +
          }}
 +
        }}}
 +
  |YearNote = {{{origyear|}}}
 +
  |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
 +
  |Title={{{title|}}}
 +
  |TransTitle={{{trans_chapter|}}}
 +
  |TransItalic={{{trans_title|}}}
 +
   |URL={{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
 +
  |ArchiveURL = {{{archiveurl|}}}
 +
  |OriginalURL = {{{url|}}}
 +
  |ArchiveDate= {{{archivedate|}}}
 +
  |TitleType={{{type|}}}
 +
  |Series={{{series|}}}
 +
  |Volume = {{{volume|}}}
 +
  |Issue = {{{issue|{{{number|}}}}}}
 +
   |At = {{
 +
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
 +
          |{{{pages|{{{page|{{{at|}}}}}}}}}
 +
          |{{
 +
            #if: {{{page|}}}
 +
            |{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
 +
            |{{
 +
                #if: {{{pages|}}}
 +
                |{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
 +
                |{{{at|}}}
 +
              }}
 +
          }}
 +
        }}
 +
   |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
 +
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
 +
  |Other = {{{others|}}}
 +
   |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|}}}
 +
  |language = {{{language|{{{in|}}}}}}
 +
  |format = {{{format|}}}
 +
  |ID={{{id|{{{ID|}}}}}}
 +
  |ISBN={{{isbn|{{{ISBN|}}}}}}
 +
  |OCLC={{{oclc|{{{OCLC|}}}}}}
 +
  |Bibcode={{{bibcode|}}}
 +
  |DOI={{{doi|{{{DOI|}}}}}}
 +
  |DoiBroken={{{doi_brokendate|}}}
 +
  |AccessDate={{{access-date|{{{accessdate|}}}}}}
 +
  |DateFormat={{{dateformat|none}}}
 +
   |quote = {{{quote|}}}
 +
  |laysummary = {{{laysummary|}}}
 +
  |laydate = {{{laydate|}}}
 +
  |Ref={{{ref|}}}
 +
  |Sep = {{{separator|{{{seperator|.}}}}}}
 +
   |PS = {{#if:{{{quote|}}}||{{{postscript|.}}}}}
 +
  |AuthorSep = {{#ifeq:{{{author-separator|}}}|;|&#059;|{{{author-separator|&#059;}}}}}&#32;
 +
   |NameSep = {{{author-name-separator|,}}}&#32;
 +
  |Trunc = {{{display-authors|8}}}
 +
  |amp = {{{lastauthoramp|}}}
 +
}}{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}{{{accessday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{day|}}}{{{access-date|}}}{{{dateformat|}}}|[[Category:Pages containing cite templates with deprecated parameters|{{NAMESPACE}} {{PAGENAME}}]]}}

Revision as of 16:21, 12 September 2010

.