Jump to content

Template:Cite book: Difference between revisions

From IdeaWazaWiki
wikademia>Wwoods
m added a comma after the chapter title [I think].
wikademia>Wikademia
m 54 revisions
 
(112 intermediate revisions by 58 users not shown)
Line 1: Line 1:
<cite class="book" style="font-style:normal">{{qif
{{Citation/core
   |test={{{author|{{{last|}}}}}}
|Citation class=book
   |then={{qif
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
    |test={{{authorlink|}}}
   |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
    |then=[[{{{authorlink}}}|{{qif
   |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
      |test={{{last|}}}
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
      |then={{{last}}}{{qif
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
        |test={{{first|}}}
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
        |then=, {{{first}}}
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
      }}
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
      |else={{{author}}}
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
    }}]]
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
    |else={{qif
  |Given2 = {{{first2|{{{given2|}}}}}}
      |test={{{last|}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
      |then={{{last}}}{{qif
  |Given4 = {{{first4|{{{given4|}}}}}}
        |test={{{first|}}}
  |Given5 = {{{first5|{{{given5|}}}}}}
        |then=, {{{first}}}
  |Given6 = {{{first6|{{{given6|}}}}}}
      }}
  |Given7 = {{{first7|{{{given7|}}}}}}
      |else={{{author}}}
  |Given8 = {{{first8|{{{given8|}}}}}}
    }}
  |Given9 = {{{first9|{{{given9|}}}}}}
   }}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
}}{{qif
   |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
   |test={{{author|{{{last|}}}}}}
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
   |then={{qif
   |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
    |test={{{coauthors|}}}
   |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
    |then=<nowiki>;</nowiki>&#32;{{{coauthors}}}
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
   }}
   |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
}}{{qif
   |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
   |test={{{origdate|}}}
   |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
   |then=&#32;<nowiki>[</nowiki>{{{origdate}}}]
   |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
   |else={{qif
            #if: {{{date|}}}
    |test={{{origyear|}}}
            |{{
    |then={{qif
                #iferror:{{#time:Y|{{{date|}}} }}
      |test={{{origmonth|}}}
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
      |then=&#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
                |{{#time:Y|{{{date|}}} }}
      |else=&#32;<nowiki>[</nowiki>{{{origyear}}}]
              }}
    }}
            |{{{publication-date|}}} <!-- last resort -->
  }}
          }}
}}{{qif
        }}}
   |test={{{date|}}}
   |YearNote = {{{origyear|}}}
   |then=&#32;({{{date}}})
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
   |else={{qif
   |Title={{{title|}}}
    |test={{{year|}}}
  |URL={{{url|}}}
    |then={{qif
  |Series={{{series|}}}
      |test={{{month|}}}
  |Volume = {{{volume|}}}
      |then=&#32;({{{month}}} {{{year}}})
  |Issue = {{{issue|{{{number|}}}}}}
      |else=&#32;({{{year}}})
  |At = {{
    }}
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
  }}
          |{{{pages|{{{page|{{{at|}}}}}}}}}
}}{{qif
          |{{
  |test={{{author|{{{last|}}}}}}
            #if: {{{page|}}}
  |then=.
            |{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
}}{{qif
            |{{
  |test={{{chapter|}}}
                #if: {{{pages|}}}
  |then=&#32;“{{qif
                |{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
  |test={{{chapterurl|}}}
                |{{{at|}}}
  |then=[{{{chapterurl}}} {{{chapter}}}]
              }}
  |else={{{chapter}}}
          }}
}}”,}}{{qif
        }}
   |test={{{editor|}}}
   |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
   |then=&#32;{{{editor}}}
   |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
}} ''{{qif
   |Other = {{{others|}}}
   |test={{{url|}}}
   |Edition = {{{edition|}}}
   |then=[{{{url}}} {{{title}}}]
  |Place = {{{place|{{{location|}}}}}}
   |else={{{title}}}
   |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
}}''{{qif
  |Publisher = {{{publisher|}}}
   |test={{{format|}}}
   |PublicationDate = {{{publication-date|}}}
   |then=&#32;({{{format}}})
   |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
}}{{qif
   |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
   |test={{{others|}}}
   |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
   |then=, {{{others}}}
   |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
}}{{qif
   |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
   |test={{{edition|}}}
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
   |then=, {{{edition}}}
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
}}{{qif
   |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
   |test={{{language|}}}
   |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
   |then=&#32;(in {{{language}}})
  |Editorlink2={{{editor2-link|}}}
}}{{qif
   |Editorlink3={{{editor3-link|}}}
   |test={{{pages|}}}
   |Editorlink4={{{editor4-link|}}}
   |then=,&#32;{{{pages}}}
  |language = {{{language|{{{in|}}}}}}
}}{{qif
  |format = {{{format|}}}
   |test={{{publisher|}}}
   |ID={{{id|{{{ID|}}}}}}
   |then=, {{qif
   |ISBN={{{isbn|{{{ISBN|}}}}}}
    |test={{{location|}}}
   |OCLC={{{oclc|{{{OCLC|}}}}}}
    |then={{{location}}}:&#32;
  |Bibcode={{{bibcode|}}}
   }}{{{publisher}}}
   |DOI={{{doi|{{{DOI|}}}}}}
}}{{qif
   |DoiBroken={{{doi_brokendate|}}}
   |test={{{id|}}}
   |AccessDate={{{access-date|{{{accessdate|}}}}}}
   |then=. {{{id}}}
  |DateFormat={{{dateformat|none}}}
}}{{qif
  |quote = {{{quote|}}}
   |test={{{accessdate|}}}
  |laysummary = {{{laysummary|}}}
   |then=. URL accessed [[{{{accessdate}}}]]
  |laydate = {{{laydate|}}}
   |else={{qif
  |Ref={{{ref|}}}
    |test={{{accessyear|}}}
  |Sep = {{{separator|{{{seperator|.}}}}}}
    |then=. URL accessed {{qif
   |PS = {{#if:{{{quote|}}}||{{{postscript|.}}}}}
      |test={{{accessmonth|}}}
   |amp = {{{lastauthoramp|}}}
      |then=on [[{{{accessmonth}}} {{{accessyear}}}]]
}}<noinclude>
      |else=during [[{{{accessyear}}}]]
{{pp-template|small=yes}}
    }}
{{documentation}}
  }}
}}.{{qif
   |test={{{quote|}}}
   |then=&nbsp;“{{{quote}}}”
}}</cite><noinclude>
 
 
This template replaces the deprecated {{tl|book reference}}.
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
 
[[ja:Template:Cite book]]
[[no:mal:Kilde bok]]
[[ru:Шаблон:Описание книги]]
[[sk:Šablóna:Knižná referencia]]
[[vi:Tiêu bản:Chú thích sách]]
</noinclude>
</noinclude>

Latest revision as of 05:18, 4 April 2009

. 

[create] Template documentation