Jump to content

Template:Cite book: Difference between revisions

From IdeaWazaWiki
wikademia>Gracefool
readded wikilinks for "date" and "origdate"
wikademia>Wikademia
m 54 revisions
 
(131 intermediate revisions by 67 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={{wikilink
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
      |1={{{authorlink}}}
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
      |2={{qif
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
         |test={{{last|}}}
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
        |then={{{last}}}{{qif
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
           |test={{{first|}}}
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
           |then=, {{{first}}}
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
  |Given2 = {{{first2|{{{given2|}}}}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
  |Given4 = {{{first4|{{{given4|}}}}}}
  |Given5 = {{{first5|{{{given5|}}}}}}
  |Given6 = {{{first6|{{{given6|}}}}}}
  |Given7 = {{{first7|{{{given7|}}}}}}
  |Given8 = {{{first8|{{{given8|}}}}}}
  |Given9 = {{{first9|{{{given9|}}}}}}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
   |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
   |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
  |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|}}}
  |URL={{{url|}}}
  |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|}}}
              }}
          }}
         }}
         }}
        |else={{{author}}}
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
      }}
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
    }}
  |Other = {{{others|}}}
    |else={{qif
  |Edition = {{{edition|}}}
      |test={{{last|}}}
   |Place = {{{place|{{{location|}}}}}}
      |then={{{last}}}{{qif
   |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
        |test={{{first|}}}
   |Publisher = {{{publisher|}}}
        |then=, {{{first}}}
   |PublicationDate = {{{publication-date|}}}
      }}
   |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
      |else={{{author}}}
   |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
    }}
   |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
  }}
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
}}{{qif
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
   |test={{{author|{{{last|}}}}}}
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
   |then={{qif
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
    |test={{{coauthors|}}}
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
    |then=, {{{coauthors}}}
   |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
  }}
   |Editorlink2={{{editor2-link|}}}
}}{{qif
   |Editorlink3={{{editor3-link|}}}
   |test={{{origdate|}}}
   |Editorlink4={{{editor4-link|}}}
   |then=&#32;<nowiki>[</nowiki>[[{{{origdate}}}]]]
   |language = {{{language|{{{in|}}}}}}
   |else={{qif
   |format = {{{format|}}}
    |test={{{origyear|}}}
   |ID={{{id|{{{ID|}}}}}}
    |then={{qif
   |ISBN={{{isbn|{{{ISBN|}}}}}}
      |test={{{origmonth|}}}
   |OCLC={{{oclc|{{{OCLC|}}}}}}
      |then=&#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
   |Bibcode={{{bibcode|}}}
      |else=&#32;<nowiki>[</nowiki>{{{origyear}}}]
   |DOI={{{doi|{{{DOI|}}}}}}
    }}
   |DoiBroken={{{doi_brokendate|}}}
  }}
   |AccessDate={{{access-date|{{{accessdate|}}}}}}
}}{{qif
   |DateFormat={{{dateformat|none}}}
   |test={{{date|}}}
   |quote = {{{quote|}}}
  |then=&#32;([[{{{date}}}]])
   |laysummary = {{{laysummary|}}}
   |else={{qif
   |laydate = {{{laydate|}}}
    |test={{{year|}}}
   |Ref={{{ref|}}}
    |then={{qif
   |Sep = {{{separator|{{{seperator|.}}}}}}
      |test={{{month|}}}
  |PS = {{#if:{{{quote|}}}||{{{postscript|.}}}}}
      |then=&#32;({{{month}}} {{{year}}})
  |amp = {{{lastauthoramp|}}}
      |else=&#32;({{{year}}})
}}<noinclude>
    }}
{{pp-template|small=yes}}
  }}
{{documentation}}
}}{{qif
  |test={{{last|}}}
   |then=.
}}{{qif
  |test={{{chapter|}}}
   |then=&#32;"{{qif
  |test={{{chapterurl|}}}
  |then=[{{{chapterurl}}} {{{chapter}}}]
  |else={{{chapter}}}
}}"}}{{qif
   |test={{{editor|}}}
  |then=&#32;{{{editor}}}
}} ''{{qif
   |test={{{url|}}}
   |then=[{{{url}}} {{{title}}}]
   |else={{{title}}}
}}''{{qif
   |test={{{format|}}}
  |then=&#32;({{{format}}})
}}{{qif
   |test={{{others|}}}
   |then=, {{{others}}}
}}{{qif
   |test={{{edition|}}}
  |then=, {{{edition}}}
}}{{qif
   |test={{{language|}}}
  |then=&#32;(in {{{language}}})
}}{{qif
   |test={{{pages|}}}
   |then=, {{{pages}}}
}}{{qif
   |test={{{publisher|}}}
   |then=, {{qif
    |test={{{location|}}}
    |then={{{location}}}:&#32;
   }}{{{publisher}}}
}}{{qif
   |test={{{id|}}}
   |then=. {{{id}}}
}}{{qif
   |test={{{accessdate|}}}
   |then=. URL accessed [[{{{accessdate}}}]]
   |else={{qif
    |test={{{accessyear|}}}
    |then=. URL accessed {{qif
      |test={{{accessmonth|}}}
      |then=on [[{{{accessmonth}}} {{{accessyear}}}]]
      |else=during [[{{{accessyear}}}]]
    }}
  }}
}}.</cite><noinclude>
 
 
This template replaces the deprecated {{tl|book reference}}.
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
 
[[sk:Šablóna:Knižná_referencia]]
</noinclude>
</noinclude>

Latest revision as of 05:18, 4 April 2009

. 

[create] Template documentation