Jump to content

Template:Cite book: Difference between revisions

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