Difference between revisions of "Template:Cite book"

From Self-sufficiency
Jump to: navigation, search
(Added processing for archiveurl and archivedate, following on talk page discussion)
m (Protected "Template:Cite book": high-use template [edit=sysop:move=sysop])
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Citation/core
+
<includeonly><cite class="book" style="font-style:normal" {{
|Citation class=book
+
  #if: {{{ref|}}}
  |AuthorMask = {{{authormask|{{{author-mask|}}}}}}
+
   |{{#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|}}}}}}}}}
+
}}>{{
   |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|}}}}}}
+
      #if: {{{last|}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
+
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
  |Given4 = {{{first4|{{{given4|}}}}}}
+
      | {{{author}}}
  |Given5 = {{{first5|{{{given5|}}}}}}
+
    }}
  |Given6 = {{{first6|{{{given6|}}}}}}
+
   }}
  |Given7 = {{{first7|{{{given7|}}}}}}
+
}}{{
  |Given8 = {{{first8|{{{given8|}}}}}}
+
   #if: {{{author|{{{last|}}}}}}
  |Given9 = {{{first9|{{{given9|}}}}}}
+
   | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
+
}}{{
   |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
+
   #if: {{{origdate|}}}
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
+
   | &#32;<nowiki>[</nowiki>{{{origdate}}}]
   |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
+
   | {{
   |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
+
    #if: {{{origyear|}}}
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
+
    | {{
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
+
      #if: {{{origmonth|}}}
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
+
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
   |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
+
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
   |Coauthors = {{{coauthor|{{{coauthors|}}}}}}
+
    }}
   |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
+
  }}
            #if: {{{date|}}}
+
}}{{
            |{{
+
  #if: {{{date|}}}
                #iferror:{{#time:Y|{{{date|}}} }}
+
   | &#32;({{{date}}})
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
+
   | {{
                |{{#time:Y|{{{date|}}} }}
+
    #if: {{{year|}}}
              }}
+
    | {{
            |{{{publication-date|}}} <!-- last resort -->
+
      #if: {{{month|}}}
          }}
+
      | &#32;({{{month}}} {{{year}}})
        }}}
+
      | &#32;({{{year}}})
   |YearNote = {{{origyear|}}}
+
    }}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
+
   }}
  |Title={{{title|}}}
+
}}{{ #if: {{{author|{{{last|}}}}}} | .
  |TransTitle={{{trans_chapter|}}}
+
}}{{
   |TransItalic={{{trans_title|}}}
+
   #if: {{{chapter|}}}
  |URL={{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
+
   | &#32;“{{
   |ArchiveURL = {{{archiveurl|}}}
+
    #if: {{{chapterurl|}}}
   |OriginalURL = {{{url|}}}
+
    | [{{{chapterurl}}} {{{chapter}}}]
  |ArchiveDate= {{{archivedate|}}}
+
    | {{{chapter}}}
  |TitleType={{{type|}}}
+
}}”,}}{{
  |Series={{{series|}}}
+
  #if: {{{editor|}}}
  |Volume = {{{volume|}}}
+
  | &#32;{{{editor}}}
  |Issue = {{{issue|{{{number|}}}}}}
+
}} ''{{
  |At = {{
+
  #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}}
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
+
}}''{{
          |{{{pages|{{{page|{{{at|}}}}}}}}}
+
  #if: {{{format|}}} | &#32;({{{format}}})
          |{{
+
}}{{
            #if: {{{page|}}}
+
   #if: {{{others|}}} | , {{{others}}}
            |{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
+
}}{{
            |{{
+
   #if: {{{edition|}}} | , {{{edition}}}
                #if: {{{pages|}}}
+
}}{{
                |{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
+
   #if: {{{language|}}} | &#32;(in {{{language}}})
                |{{{at|}}}
+
}}{{
              }}
+
   #if: {{{page|{{{pages|}}}}}} | ,&#32;{{{page|{{{pages}}}}}}
          }}
+
}}{{
        }}
+
   #if: {{{publisher|}}}
   |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
+
   | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}}{{{pages|}}} | ,&#32; | .&#32; }}{{  
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
+
    #if: {{{location|}}}  
  |Other = {{{others|}}}
+
    | {{{location}}}:&#32;
   |Edition = {{{edition|}}}
+
   }}{{{publisher}}}
  |Place = {{{place|{{{location|}}}}}}
+
}}{{
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
+
   #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
   |Publisher = {{{publisher|}}}
+
}}{{
  |PublicationDate = {{{publication-date|}}}
+
   #if: {{{id|}}} | . {{{id}}}
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
+
}}{{
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
+
   #if: {{{accessdate|}}}
   |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
+
   | . Retrieved on [[{{{accessdate}}}]]
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
+
   | {{
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
+
    #if: {{{accessyear|}}}
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
+
    | . Retrieved {{
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
+
      #if: {{{accessmonth|}}}
   |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
+
      | on [[{{{accessmonth}}} {{{accessyear}}}]]
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
+
      | during [[{{{accessyear}}}]]
  |Editorlink2={{{editor2-link|}}}
+
    }}
  |Editorlink3={{{editor3-link|}}}
+
   }}
  |Editorlink4={{{editor4-link|}}}
+
}}.{{ #if: {{{quote|}}} | &nbsp;“{{{quote}}}
  |language = {{{language|{{{in|}}}}}}
+
}}</cite></includeonly><noinclude>{{Documentation}}</noinclude>
  |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}}]]}}<noinclude>
+
{{pp-template|small=yes}}
+
{{documentation}}
+
</noinclude>
+

Revision as of 03:16, 8 July 2008