Jump to content

Template:Cite book: Difference between revisions

From IdeaWazaWiki
wikademia>Ligulem
reverted to Gracefool's last revision
wikademia>Wikademia
m 54 revisions
 
(140 intermediate revisions by 67 users not shown)
Line 1: Line 1:
<cite style="font-style:normal" {{qif
{{Citation/core
   |test={{{ref}}}
|Citation class=book
   |then={{qif
   |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
      |test={{booleq
   |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
            |{{{ref}}}
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
            |none
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
          }}
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
      |then=
   |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
      |else=id="{{{ref}}}"
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
    }}
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
   |else={{qif
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
    |test={{booland
   |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
      |1={{{last|}}}
   |Given2 = {{{first2|{{{given2|}}}}}}
      |2={{{year|}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
    }}
  |Given4 = {{{first4|{{{given4|}}}}}}
    |then=id="Reference-{{{last}}}-{{{year}}}"
  |Given5 = {{{first5|{{{given5|}}}}}}
  }}
  |Given6 = {{{first6|{{{given6|}}}}}}
}}
  |Given7 = {{{first7|{{{given7|}}}}}}
}}>{{qif
  |Given8 = {{{first8|{{{given8|}}}}}}
   |test={{{authorlink|}}}
   |Given9 = {{{first9|{{{given9|}}}}}}
   |then={{wikilink
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
    |1={{{authorlink}}}
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
    |2={{qif
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
      |test={{{author|}}}
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
      |then={{{author}}}
   |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
      |else={{{last|}}}{{qif
   |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
        |test={{{first|}}}
   |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
        |then=, {{{first}}}
   |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
      }}
   |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
    }}
   |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
  }}
            #if: {{{date|}}}
   |else={{qif
            |{{
    |test={{{author|}}}
                #iferror:{{#time:Y|{{{date|}}} }}
    |then={{{author}}}
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
    |else={{{last|}}}{{qif
                |{{#time:Y|{{{date|}}} }}
      |test={{{first|}}}
              }}
      |then=, {{{first}}}
            |{{{publication-date|}}} <!-- last resort -->
    }}
          }}
   }}
        }}}
}}{{qif
  |YearNote = {{{origyear|}}}
   |test={{{coauthors|}}}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
   |then=<nowiki>,</nowiki> {{{coauthors}}}
   |Title={{{title|}}}
}}{{qif
  |URL={{{url|}}}
   |test={{{date|}}}
   |Series={{{series|}}}
   |then=&#32;({{{date}}})
   |Volume = {{{volume|}}}
   |else={{qif
  |Issue = {{{issue|{{{number|}}}}}}
    |test={{{year|}}}
  |At = {{
    |then={{qif
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
      |test={{{month|}}}
          |{{{pages|{{{page|{{{at|}}}}}}}}}
      |then=&#32;({{{month}}} {{{year}}})
          |{{
      |else=&#32;({{{year}}})
            #if: {{{page|}}}
    }}
            |{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
  }}
            |{{
}}{{qif
                #if: {{{pages|}}}
   |test={{{author|{{{last|{{{year|}}}}}}}}}
                |{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
   |then=.
                |{{{at|}}}
}}{{qif
              }}
   |test={{{chapter|}}}
          }}
   |then=&#32;"{{qif
        }}
  |test={{{chapterurl|}}}
   |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
  |then=[{{{chapterurl}}} {{{chapter}}}]
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
  |else={{{chapter}}}
   |Other = {{{others|}}}
}}"}}{{qif
  |Edition = {{{edition|}}}
  |test={{{editor|}}}
  |Place = {{{place|{{{location|}}}}}}
  |then=&#32;{{{editor}}}
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
}} ''{{qif
   |Publisher = {{{publisher|}}}
  |test={{{link|}}}
   |PublicationDate = {{{publication-date|}}}
   |then={{wikilink
   |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
    |1={{{link}}}
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
    |2={{{title}}}
   |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
    }}
   |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
   |else={{qif
   |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
    |test={{{url|}}}
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
    |then=[{{{url}}} {{{title}}}]
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
    |else={{{title}}}
   |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
  }}
   |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
}}''{{qif
   |Editorlink2={{{editor2-link|}}}
   |test={{{link|}}}
  |Editorlink3={{{editor3-link|}}}
   |then=
  |Editorlink4={{{editor4-link|}}}
   |else={{qif
   |language = {{{language|{{{in|}}}}}}
    |test={{{format|}}}
  |format = {{{format|}}}
    |then=&#32;({{{format}}})
   |ID={{{id|{{{ID|}}}}}}
  }}
   |ISBN={{{isbn|{{{ISBN|}}}}}}
}}{{qif
   |OCLC={{{oclc|{{{OCLC|}}}}}}
   |test={{{others|}}}
   |Bibcode={{{bibcode|}}}
   |then=, {{{others}}}
   |DOI={{{doi|{{{DOI|}}}}}}
}}{{qif
  |DoiBroken={{{doi_brokendate|}}}
   |test={{{edition|}}}
  |AccessDate={{{access-date|{{{accessdate|}}}}}}
   |then=, {{{edition}}}
  |DateFormat={{{dateformat|none}}}
}}{{qif
  |quote = {{{quote|}}}
   |test={{{pages|}}}
  |laysummary = {{{laysummary|}}}
   |then=, {{{pages}}}
  |laydate = {{{laydate|}}}
}}{{qif
  |Ref={{{ref|}}}
   |test={{{publisher|}}}
  |Sep = {{{separator|{{{seperator|.}}}}}}
   |then=, {{qif
  |PS = {{#if:{{{quote|}}}||{{{postscript|.}}}}}
    |test={{{location|}}}
   |amp = {{{lastauthoramp|}}}
    |then={{{location}}}:&#32;
}}<noinclude>
   }}{{{publisher}}}
{{pp-template|small=yes}}
}}{{qif
{{documentation}}
   |test={{{id|}}}
   |then=. {{{id}}}
}}{{qif
   |test={{{link|}}}
   |then=
   |else={{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