Jump to content

Template:Cite book: Difference between revisions

made change per talk request
m>Steve Smith
(delinking dates)
m>MZMcBride
(made change per talk request)
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
{{Citation/core
   #if: {{{ref|}}}
|Citation class=book
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
   |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
   |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
}}>{{
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
   #if: {{{author|}}}{{{last|}}}
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
  | {{
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
    #if: {{{authorlink|}}}
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
    | [[{{{authorlink}}}|{{
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
      #if: {{{last|}}}
   |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
   |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
      | {{{author}}}
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
    }}]]
   |Given2 = {{{first2|{{{given2|}}}}}}
    | {{
  |Given3 = {{{first3|{{{given3|}}}}}}
      #if: {{{last|}}}
  |Given4 = {{{first4|{{{given4|}}}}}}
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
  |Given5 = {{{first5|{{{given5|}}}}}}
      | {{{author}}}
   |Given6 = {{{first6|{{{given6|}}}}}}
    }}
   |Given7 = {{{first7|{{{given7|}}}}}}
  }}
  |Given8 = {{{first8|{{{given8|}}}}}}
}}{{
  |Given9 = {{{first9|{{{given9|}}}}}}
   #if: {{{author|}}}{{{last|}}}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
   | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
}}{{
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
  #if: {{{origdate|}}}
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
  |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
   | {{
   |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
    #if: {{{origyear|}}}
   |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
    | {{
   |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
      #if: {{{origmonth|}}}
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
  |Year={{{year|{{   <!-- attempt to derive year from date, if possible -->
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
            #if: {{{date|}}}
    }}
            |{{
   }}
                #iferror:{{#time:Y|{{{date|}}} }}
}}{{
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
  #if: {{{date|}}}
                |{{#time:Y|{{{date|}}} }}
   | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|{{{date}}}|{{{date}}}}}}}| {{
              }}
    #if: {{{year|}}}
            |{{{publication-date|}}} <!-- last resort -->
    | {{
          }}
      #if: {{{month|}}}
        }}}
      | &#32;({{{month}}} {{{year}}})
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
      | &#32;({{{year}}})
  |Title={{{title|}}}
    }}
  |URL={{{url|}}}
   }}
   |Series={{{series|}}}
}}{{ #if: {{{author|}}}{{{last|}}} | .
  |Volume = {{{volume|}}}
}}{{
   |Issue = {{{issue|{{{number|}}}}}}
   #if: {{{chapter|}}}
   |At = {{
   | &#32;"{{
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
    #if: {{{chapterurl|}}}
          |{{{pages|{{{page|{{{at|}}}}}}}}}
    | [{{{chapterurl}}} {{{chapter}}}]
          |{{
    | {{{chapter}}}
            #if: {{{page|}}}
}}",}}{{
            |{{#if:{{{nopp|}}}||p. }}{{{page}}}
  #if: {{{editor|}}}
            |{{
  | &#32;in {{{editor}}}:
                #if: {{{pages|}}}
}} <i>{{
                |{{#if:{{{nopp|}}}||pp. }}{{{pages}}}
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
                |{{{at|}}}
}}</i>{{
              }}
  #if: {{{format|}}} | &#32;({{{format}}})
          }}
}}{{
        }}
  #if: {{{others|}}} | , {{{others}}}
   |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
}}{{
   |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
   #if: {{{edition|}}} | , {{{edition}}}
   |Edition = {{{edition|}}}
}}{{
  |Place = {{{place|{{{location|}}}}}}
  #if: {{{series|}}} | , {{{series}}}
   |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
}}{{
  |Publisher = {{{publisher|}}}
    #if: {{{volume|{{{number|}}}}}} | &#32;'''{{{volume|{{{number}}}}}}'''
  |PublicationDate = {{{publication-date|}}}
}}{{
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
   #if: {{{language|}}} | &#32;(in {{{language}}})
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
}}{{
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
   #if: {{{publisher|}}}
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
   | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,&#32; | .&#32; }}{{
   |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
    #if: {{{location|}}}
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
    | {{{location}}}:&#32;
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
  }}{{{publisher}}}
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
}}{{
   |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
  #if: {{{pages|{{{page|}}}}}} | ,&#32;{{{pages|{{{page}}}}}}
   |Editorlink2={{{editor2-link|}}}
}}{{
  |Editorlink3={{{editor3-link|}}}
  #if: {{{doi|}}} | . [[Digital object identifier|doi]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
  |Editorlink4={{{editor4-link|}}}
}}{{
   |language = {{{language|{{{in|}}}}}}
  #if: {{{id|}}} | . {{{id}}}
  |format = {{{format|}}}
}}{{
  |ID={{{id|{{{ID|}}}}}}
   #if: {{{isbn|}}} | . ISBN {{{isbn}}}
  |ISBN={{{isbn|{{{ISBN|}}}}}}
}}{{
  |OCLC={{{oclc|{{{OCLC|}}}}}}
   #if: {{{oclc|}}} | . [[Online Computer Library Center|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
   |Bibcode={{{bibcode|}}}
}}{{
  |DOI={{{doi|{{{DOI|}}}}}}
   #if: {{{url|}}}{{{chapterurl|}}} | {{
   |DoiBroken={{{doi_brokendate|}}}
  #if: {{{accessdate|}}} |
   |AccessDate={{{access-date|{{{accessdate|}}}}}}
   <span class="reference-accessdate">. Retrieved on {{{accessdate}}}</span>
  |laysummary = {{{laysummary|}}}
  | {{
   |quote = {{{quote|}}}
    #if: {{{accessyear|}}}
   |laydate = {{{laydate|}}}
    | <span class="reference-accessdate">. Retrieved {{
   |Ref={{{ref|}}}
      #if: {{{accessmonth|}}}
  |Sep = {{{separator|{{{seperator|.}}}}}}
      | on {{{accessmonth}}} {{{accessyear}}}
  |PS = {{{postscript|.}}}
      | during {{{accessyear}}}
   |amp = {{{lastauthoramp|}}}
  }}</span>}}
}}<noinclude>
  }}
{{pp-template|small=yes}}
}}.{{ #if: {{{quote|}}} | &nbsp;"{{{quote}}}"
{{documentation}}
}}</cite><!--
</noinclude>
 
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:book}}<!--                  Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:book
   -->&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)
  -->&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"
   -->{{#if: {{{chapter|}}}  | &rft.atitle={{urlencode:{{{chapter}}}}}  }}<!-- Chapter title. Chapter title is included if it is a distinct title, e.g. "The Push Westward."
  -->{{#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"
  -->{{#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"
   -->{{#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".
   -->{{#if: {{{date|}}}                                                   <!--
   --> | &rft.date={{urlencode:{{{date}}}}}                                 <!-- Date of publication.  ISO 8601 is allowed and preferred by us, although
  --> | {{#if: {{{year|}}}  | &rft.date={{urlencode:{{{year}}}}} }}    }}<!-- "Book dates are assumed to be a single year."
   -->{{#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."
   -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}    }}<!-- Publisher name. "Harper and Row"
  -->{{#if: {{{location|}}}  | &rft.place={{urlencode:{{{location}}}}}  }}<!-- Place of publication. "New York"
  -->{{#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".
  -->{{#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.
  -->{{#if: {{{isbn|}}}      | &rft.isbn={{{isbn}}}                      }}<!-- International Standard Book Number (ISBN) ... i.e. "057117678X" but it may contain hyphens, e.g. "1-878067-73-7"
  -->{{#if: {{{oclc|}}}      | &rft_id=info:oclcnum/{{{oclc}}}          }}<!--
  -->{{#if: {{{doi|}}}      | &rft_id=info:doi/{{urlencode:{{{doi}}}}}  }}<!--
  -->{{#if: {{{url|}}}      | &rft_id={{urlencode:{{{url}}}}}          }}<!--
  -->"><span style="display: none;">&nbsp;</span></span></includeonly><noinclude>{{pp-template|small=yes}}{{documentation}}</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.