Difference between revisions of "Template:Cite book"

From Monoskop
Jump to navigation Jump to search
 
Line 1: Line 1:
<includeonly><cite class="book" style="font-style:normal" {{
+
{{Citation/core
  #if: {{{ref|}}}
+
|Citation class=book
  |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}}
+
 
  |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }}
+
|Surname1={{{last|{{{last1|{{{author|{{{author1|{{{authors|{{{surname|{{{surname1|}}}}}}}}}}}}}}}}}}}}}
}}>{{
+
|Surname2={{{last2|{{{author2|{{{surname2|}}}}}}}}}
  #if: {{{author|}}}{{{last|}}}
+
|Surname3={{{last3|{{{author3|{{{surname3|}}}}}}}}}
  | {{
+
|Surname4={{{last4|{{{author4|{{{surname4|}}}}}}}}}
    #if: {{{authorlink|}}}
+
|Surname5={{{last5|{{{author5|{{{surname5|}}}}}}}}}
    | [[{{{authorlink}}}|{{
+
|Surname6={{{last6|{{{author6|{{{surname6|}}}}}}}}}
      #if: {{{last|}}}
+
|Surname7={{{last7|{{{author7|{{{surname7|}}}}}}}}}
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
|Surname8={{{last8|{{{author8|{{{surname8|}}}}}}}}}
      | {{{author}}}
+
|Surname9={{{last9|{{{author9|{{{surname9|}}}}}}}}}
    }}]]
+
 
    | {{
+
|Given1={{{first|{{{first1|{{{given|{{{given1|}}}}}}}}}}}}
      #if: {{{last|}}}
+
|Given2={{{first2|{{{given2|}}}}}}
       | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
|Given3={{{first3|{{{given3|}}}}}}
       | {{{author}}}
+
|Given4={{{first4|{{{given4|}}}}}}
 +
|Given5={{{first5|{{{given5|}}}}}}
 +
|Given6={{{first6|{{{given6|}}}}}}
 +
|Given7={{{first7|{{{given7|}}}}}}
 +
|Given8={{{first8|{{{given8|}}}}}}
 +
|Given9={{{first9|{{{given9|}}}}}}
 +
 
 +
|Authorlink1={{{authorlink|{{{authorlink1|{{{author-link|{{{author1-link|}}}}}}}}}}}}
 +
|Authorlink2={{{authorlink2|{{{author2-link|}}}}}}
 +
|Authorlink3={{{authorlink3|{{{author3-link|}}}}}}
 +
|Authorlink4={{{authorlink4|{{{author4-link|}}}}}}
 +
|Authorlink5={{{authorlink5|{{{author5-link|}}}}}}
 +
|Authorlink6={{{authorlink6|{{{author6-link|}}}}}}
 +
|Authorlink7={{{authorlink7|{{{author7-link|}}}}}}
 +
|Authorlink8={{{authorlink8|{{{author8-link|}}}}}}
 +
|Authorlink9={{{authorlink9|{{{author9-link|}}}}}}
 +
 
 +
|Coauthors={{{coauthors|{{{coauthor|}}}}}}
 +
 
 +
|Other={{{others|}}}
 +
 
 +
|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 -->
 +
        }}
 +
      }}}
 +
|YearNote={{{origyear|}}}
 +
|Date={{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
 +
 
 +
|Title={{{title|}}}
 +
|TransTitle={{{trans_chapter|}}}
 +
|TransItalic={{{trans_title|}}}
 +
|IncludedWorkTitle={{{chapter|{{{contribution|{{{section|}}}}}}}}}
 +
|TitleType={{{type|}}}
 +
|language={{{language|}}}
 +
 
 +
|URL={{#if:{{{archiveurl|}}}
 +
      |{{#ifeq: {{{deadurl|}}} | no | {{{url|}}} | {{{archiveurl|}}}}}
 +
      |{{{url|}}}
 +
    }}
 +
|IncludedWorkURL={{{chapter-url|{{{chapterurl|{{{contribution-url|{{{sectionurl|}}}}}}}}}}}}
 +
|AccessDate={{{accessdate|}}}
 +
|OriginalURL={{{url|}}}
 +
|ArchiveURL={{{archiveurl|}}}
 +
|ArchiveDate={{{archivedate|}}}
 +
|DeadURL={{{deadurl|}}}
 +
|format={{{format|}}}
 +
 
 +
|At={{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
 +
       |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
 +
       |{{{at|}}}}}
 
     }}
 
     }}
  }}
 
}}{{
 
  #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:
+
|Edition={{{edition|}}}
  --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
+
|Series={{{series|{{{version|}}}}}}
  -->&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
+
|Volume={{{volume|}}}
  -->&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"
+
|Publisher={{{publisher|}}}
  -->{{#if: {{{chapter|}}}   | &rft.atitle={{urlencode:{{{chapter}}}}}   }}<!-- Chapter title. Chapter title is included if it is a distinct title, e.g. "The Push Westward."
+
|Place={{{location|{{{place|}}}}}}
  -->{{#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"
+
|PublicationPlace={{{location|{{{place|{{{publication-place|}}}}}}}}}
  -->{{#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"
+
|PublicationDate={{{publication-date|}}}
  -->{{#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}}}}}<!--
+
|EditorSurname1={{{editor-last|{{{editor1-last|{{{editor|{{{editors|{{{editor-surname|{{{editor1-surname|}}}}}}}}}}}}}}}}}}
  -->{{#if: {{{year|}}}     | &rft.date={{urlencode:{{{year}}}}} }}     }}<!-- Date of publication. Book dates are assumed to be a single year. (or ISO 8601)
+
|EditorSurname2={{{editor2-last|{{{editor2-surname|}}}}}}
  -->{{#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."
+
|EditorSurname3={{{editor3-last|{{{editor3-surname|}}}}}}
  -->{{#if: {{{publisher|}}} | &rft.pub={{urlencode:{{{publisher}}}}}   }}<!-- Publisher name. "Harper and Row"
+
|EditorSurname4={{{editor4-last|{{{editor4-surname|}}}}}}
  -->{{#if: {{{location|}}} | &rft.place={{urlencode:{{{location}}}}}   }}<!-- Place of publication. "New York"
+
|EditorGiven1={{{editor-first|{{{editor1-first|{{{editor-given|{{{editor1-given|}}}}}}}}}}}}
  -->{{#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".
+
|EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
  -->{{#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.
+
|EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
  -->{{#if: {{{isbn|}}}     | &rft.isbn={{{isbn}}}                     }}<!-- International Standard Book Number (ISBN) ... i.e. "057117678X" but it may contain hyphens, e.g. "1-878067-73-7"
+
|EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
  -->{{#if: {{{oclc|}}}     | &rft_id=info:oclcnum/{{{oclc}}}           }}<!--
+
|Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
  -->{{#if: {{{doi|}}}       | &rft_id=info:doi/{{urlencode:{{{doi}}}}} }}<!--
+
|Editorlink2={{{editor2-link|}}}
  -->{{#if: {{{url|}}}       | &rft_id={{urlencode:{{{url}}}}}           }}<!--
+
|Editorlink3={{{editor3-link|}}}
  -->">&nbsp;</span></includeonly>
+
|Editorlink4={{{editor4-link|}}}
 +
 
 +
|ARXIV={{{arxiv|}}}
 +
|ASIN={{{asin|{{{ASIN|}}}}}}
 +
|ASIN-TLD={{{asin-tld|}}}
 +
|BIBCODE={{{bibcode|}}}
 +
|DOI={{{doi|{{{DOI|}}}}}}
 +
|DoiBroken={{{doi_brokendate|{{{doi_inactivedate|}}}}}}
 +
|ISBN={{{isbn|{{{ISBN|}}}}}}
 +
|ISSN={{{issn|{{{ISSN|}}}}}}
 +
|JFM={{{jfm|{{{JFM|}}}}}}
 +
|JSTOR={{{jstor|{{{JSTOR|}}}}}}
 +
|LCCN={{{lccn|{{{LCCN|}}}}}}
 +
|MR={{{mr|{{{MR|}}}}}}
 +
|OCLC={{{oclc|{{{OCLC|}}}}}}
 +
|OL={{{ol|{{{OL|}}}}}}
 +
|OSTI={{{osti|{{{OSTI|}}}}}}
 +
|PMC={{{pmc|{{{PMC|}}}}}}
 +
|PMID={{{pmid|{{{PMID|}}}}}}
 +
|RFC={{{rfc|{{{RFC|}}}}}}
 +
|SSRN={{{ssrn|{{{SSRN|}}}}}}
 +
|ZBL={{{zbl|}}}
 +
|ID={{{id|{{{ID|}}}}}}
 +
 
 +
|laysummary={{{laysummary|}}}
 +
|laydate={{{laydate|}}}
 +
|laysource={{{laysource|}}}
 +
 
 +
|quote={{{quote|}}}
 +
 
 +
|Ref={{{ref|}}}
 +
 
 +
|amp={{{lastauthoramp|}}}
 +
|AuthorMask={{{author-mask|{{{authormask|}}}}}}
 +
|AuthorSep={{#ifeq:{{{author-separator|}}}|;|&#059;|{{{author-separator|&#059;}}}}}&#32;
 +
|NameSep={{{author-name-separator|,}}}&#32;
 +
|PS={{#if:{{{quote|}}}||{{{postscript|.}}}}}
 +
|Sep={{#ifeq:{{{separator|{{{seperator}}} }}}|;|&#059;|{{{separator|{{{seperator|.}}} }}} }}
 +
|template doc demo={{{template doc demo|}}}
 +
|Trunc={{#if:{{{display-authors|}}}|{{{display-authors}}}|8}}
 +
}}{{#if:{{{access-date|}}}{{{accessdaymonth|}}}{{{accessday|}}}{{{accessmonthday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{dateformat|}}}{{{day|}}}{{{doilabel|}}}
 +
|[[Category:Pages containing cite templates with deprecated parameters|{{NAMESPACE}} {{PAGENAME}}]]}}

Latest revision as of 21:11, 27 March 2013

.