Jump to content

Template:Cite book: Difference between revisions

From IdeaWazaWiki
wikademia>Ligulem
copied Template:Book reference as base version for comparing
wikademia>Wikademia
m 54 revisions
 
(141 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={{{URL|}}}
  |PublicationDate = {{{publication-date|}}}
   |then=[{{{URL}}} {{{Title}}}]
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
   |else={{{Title}}}
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
}}''{{qif
   |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
   |test={{{Others|}}}
   |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
   |then=, {{{Others}}}
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
}}{{qif
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
   |test={{{Edition|}}}
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
   |then=, {{{Edition}}}
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
}}{{qif
   |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
   |test={{{Pages|}}}
  |Editorlink2={{{editor2-link|}}}
   |then=, {{{Pages}}}
  |Editorlink3={{{editor3-link|}}}
}}{{qif
   |Editorlink4={{{editor4-link|}}}
   |test={{{Publisher|}}}
   |language = {{{language|{{{in|}}}}}}
   |then=, {{qif
  |format = {{{format|}}}
    |test={{{Location|}}}
   |ID={{{id|{{{ID|}}}}}}
    |then={{{Location}}}:&#32;
   |ISBN={{{isbn|{{{ISBN|}}}}}}
   }}{{{Publisher}}}
  |OCLC={{{oclc|{{{OCLC|}}}}}}
}}{{qif
   |Bibcode={{{bibcode|}}}
   |test={{{ID|}}}
   |DOI={{{doi|{{{DOI|}}}}}}
   |then=. {{{ID}}}
  |DoiBroken={{{doi_brokendate|}}}
}}.</cite><noinclude>
  |AccessDate={{{access-date|{{{accessdate|}}}}}}
{{esoteric}}
   |DateFormat={{{dateformat|none}}}
[[Category:Citation templates|{{PAGENAME}}]]
   |quote = {{{quote|}}}
[[sk:Šablóna:Knižná_referencia]]
  |laysummary = {{{laysummary|}}}
  |laydate = {{{laydate|}}}
   |Ref={{{ref|}}}
  |Sep = {{{separator|{{{seperator|.}}}}}}
   |PS = {{#if:{{{quote|}}}||{{{postscript|.}}}}}
   |amp = {{{lastauthoramp|}}}
}}<noinclude>
{{pp-template|small=yes}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 05:18, 4 April 2009

. 

[create] Template documentation