Jump to content

Template:Cite book: Difference between revisions

From IdeaWazaWiki
wikademia>Gracefool
updated from User:Gracefool/cite book. Backwards compatibility with {{book reference}} is broken.
wikademia>Wikademia
m 54 revisions
 
(139 intermediate revisions by 67 users not shown)
Line 1: Line 1:
<cite class="book" style="font-style:normal">{{qif
{{Citation/core
   |test={{{author|{{{authorlast|}}}}}}
|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={{{authorlast|}}}
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
        |then={{{authorlast}}}{{qif
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
           |test={{{authorfirst|}}}
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
           |then=, {{{authorfirst}}}
  |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={{{authorlast|}}}
  |Place = {{{place|{{{location|}}}}}}
      |then={{{authorlast}}}{{qif
   |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
        |test={{{authorfirst|}}}
  |Publisher = {{{publisher|}}}
        |then=, {{{authorfirst}}}
   |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={{{authorlast|}}}
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
   |then={{qif
  |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
    |test={{{author2|}}}
   |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
    |then={{qif
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
      |test={{{author3|}}}
   |Editorlink2={{{editor2-link|}}}
      |then=,&#32;
   |Editorlink3={{{editor3-link|}}}
      |else=&#32;&amp;&#32;
   |Editorlink4={{{editor4-link|}}}
    }}
  |language = {{{language|{{{in|}}}}}}
  }}
   |format = {{{format|}}}
}}{{qif
   |ID={{{id|{{{ID|}}}}}}
  |test={{{authorlast|}}}
   |ISBN={{{isbn|{{{ISBN|}}}}}}
   |then={{qif
   |OCLC={{{oclc|{{{OCLC|}}}}}}
    |test={{{author2link|}}}
   |Bibcode={{{bibcode|}}}
    |then={{wikilink
   |DOI={{{doi|{{{DOI|}}}}}}
      |1={{{author2link}}}
   |DoiBroken={{{doi_brokendate|}}}
      |2={{qif
   |AccessDate={{{access-date|{{{accessdate|}}}}}}
        |test={{{author2|}}}
   |DateFormat={{{dateformat|none}}}
        |then={{{author2}}}
   |quote = {{{quote|}}}
      }}
   |laysummary = {{{laysummary|}}}
    }}
   |laydate = {{{laydate|}}}
    |else={{{author2|}}}
   |Ref={{{ref|}}}
   }}{{qif
   |Sep = {{{separator|{{{seperator|.}}}}}}
    |test={{{author2|}}}
  |PS = {{#if:{{{quote|}}}||{{{postscript|.}}}}}
    |then={{qif
  |amp = {{{lastauthoramp|}}}
      |test={{{author3|}}}
}}<noinclude>
      |then={{qif
{{pp-template|small=yes}}
        |test={{{author4|}}}
{{documentation}}
        |then=,&#32;
        |else=&#32;&amp;&#32;
      }}
    }}
  }}{{qif
    |test={{{author3link|}}}
    |then={{wikilink
      |1={{{author3link}}}
      |2={{qif
        |test={{{author3|}}}
        |then={{{author3}}}
      }}
    }}
    |else={{{author3|}}}
   }}{{qif
    |test={{{author2|}}}
    |then={{qif
      |test={{{author3|}}}
      |then={{qif
        |test={{{author4|}}}
        |then={{qif
          |test={{{author5|}}}
          |then=,&#32;
          |else=&#32;&amp;&#32;
        }}
      }}
    }}
   }}{{qif
    |test={{{author4link|}}}
    |then={{wikilink
      |1={{{author4link}}}
      |2={{qif
        |test={{{author4|}}}
        |then={{{author4}}}
      }}
    }}
    |else={{{author4|}}}
  }}{{qif
    |test={{{author2|}}}
    |then={{qif
      |test={{{author3|}}}
      |then={{qif
        |test={{{author4|}}}
        |then={{qif
          |test={{{author5|}}}
          |then=&#32;&amp;&#32;
        }}
      }}
    }}
   }}{{qif
    |test={{{author5link|}}}
    |then={{wikilink
      |1={{{author5link}}}
      |2={{qif
        |test={{{author5|}}}
        |then={{{author5}}}
      }}
    }}
    |else={{{author5|}}}
  }}
}}{{qif
   |test={{{date|}}}
  |then=&#32;({{{date}}})
  |else={{qif
    |test={{{year|}}}
    |then={{qif
      |test={{{month|}}}
      |then=&#32;({{{month}}} {{{year}}})
      |else=&#32;({{{year}}})
    }}
  }}
}}{{qif
   |test={{{authorlast|{{{year|}}}}}}
   |then=.
}}{{qif
  |test={{{chapter|}}}
   |then=&#32;"{{qif
  |test={{{chapterurl|}}}
  |then=[{{{chapterurl}}} {{{chapter}}}]
  |else={{{chapter}}}
}}"}}{{qif
   |test={{{editor|}}}
   |then=&#32;{{{editor}}}
}} ''{{qif
  |test={{{link|}}}
   |then={{wikilink
    |1={{{link}}}
    |2={{{title}}}
    }}
   |else={{qif
    |test={{{url|}}}
    |then=[{{{url}}} {{{title}}}]
    |else={{{title}}}
  }}
}}''{{qif
   |test={{{link|}}}
   |then=
  |else={{qif
    |test={{{format|}}}
    |then=&#32;({{{format}}})
  }}
}}{{qif
   |test={{{others|}}}
   |then=, {{{others}}}
}}{{qif
  |test={{{edition|}}}
  |then=, {{{edition}}}
}}{{qif
   |test={{{pages|}}}
   |then=, {{{pages}}}
}}{{qif
   |test={{{publisher|}}}
   |then=, {{qif
    |test={{{location|}}}
    |then={{{location}}}:&#32;
  }}{{{publisher}}}
}}{{qif
   |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