Jump to content

Template:Citation: Difference between revisions

From IdeaWazaWiki
wikademia>Ligulem
leftover
wikademia>Wikademia
m 71 revisions
 
(62 intermediate revisions by 23 users not shown)
Line 1: Line 1:
'''FOR TESTING ONLY'''
{{
<cite style="font-style:normal">{{qif
   #if: {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor|}}}}}}}}}}}}}}}
   |test={{{surname|{{{last|{{{surname1|{{{last1|{{{author|{{{author1}}}}}}}}}}}}}}}}}}
<!--
  |then={{qif
    CITATIONS FOR PATENTS
    |test={{{authorlink|{{{authorlink1|}}}}}}
-->
    |then={{wikilink
|{{Citation/patent
        |1={{{authorlink1|{{{authorlink}}}}}}
|Surname1 = {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor}}}}}}}}}}}}}}}
        |2={{{author1|{{{author
|Surname2={{{inventor2-surname|{{{inventor2-last|{{{inventor2|}}}}}}}}}
            |{{{surname1|{{{last1|{{{surname|{{{last}}}}}}}}}}}}{{qif
|Surname3={{{inventor3-surname|{{{inventor3-last|{{{inventor3|}}}}}}}}}
              |test={{{given|{{{first|{{{given1|{{{first1|{{{initials|{{{initials1|}}}}}}}}}}}}}}}}}}
|Surname4={{{inventor4-surname|{{{inventor4-last|{{{inventor4|}}}}}}}}}
              |then=, {{{initials1|{{{given1|{{{first1|{{{initials|{{{given|{{{first}}}}}}}}}}}}}}}}}}
|Given1 = {{{inventor-given|{{{inventor1-given|{{{inventor-first|{{{inventor1-first|}}}}}}}}}}}}
            }}
|Given2={{{inventor2-given|{{{inventor2-first|}}}}}}
        }}}}}}
|Given3={{{inventor3-given|{{{inventor3-first|}}}}}}
      }}
|Given4={{{inventor4-given|{{{inventor4-first|}}}}}}
    |else={{{author1|{{{author
|Inventorlink1={{{inventorlink1|{{{inventorlink|}}}}}}
        |{{{surname1|{{{last1|{{{surname|{{{last}}}}}}}}}}}}{{qif
|Inventorlink2={{{inventorlink2|}}}
            |test={{{given|{{{first|{{{given1|{{{first1|{{{initials|{{{initials1}}}}}}}}}}}}}}}}}}
|Inventorlink3={{{inventorlink3|}}}
            |then=, {{{initials1|{{{given1|{{{first1|{{{initials|{{{given|{{{first}}}}}}}}}}}}}}}}}}
|Inventorlink4={{{inventorlink4|}}}
          }}
|Title={{{title|}}}
      }}}}}}
|CountryCode={{{country-code}}}
  }}{{qif
|PublicationNumber={{{publication-number|{{{patent-number}}}}}}
    |test={{{surname2|{{{last2|{{{author2|}}}}}}}}}
|Description={{{description|}}}
    |then={{qif
|PublicationDate={{{publication-date|}}}
        |test={{{author3|{{{surname3|{{{last3|}}}}}}}}}
|IssueDate={{{issue-date|}}}
        |then=,&#32;
|Year={{{year}}}
        |else=&#32;&amp;&#32;
}}
      }}{{qif
 
        |test={{{authorlink2|}}}
<!--
        |then={{wikilink
    CITATIONS FOR THINGS LIKE BOOKS AND PERIODICALS
          |1={{{authorlink2}}}
-->
          |2={{{author2|{{{surname2|{{{last2|}}}}}}{{qif|test={{{given2|{{{first2|{{{initials2|}}}}}}}}}|then=, {{{initials2|{{{given2|{{{first2}}}}}}}}}}}}}}
|{{Citation/core
        }}
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|}}}}}}}}}}}}}}}}}}}}}
        |else={{{author2|{{{surname2|{{{last2|}}}}}}{{qif|test={{{given2|{{{first2|{{{initials2|}}}}}}}}}|then=, {{{initials2|{{{given2|{{{first2}}}}}}}}}}}}}}
  |Surname2 = {{{last2|{{{surname2|{{{author2|}}}}}}}}}
      }}{{qif
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
        |test={{{surname3|{{{last3|{{{author3|}}}}}}}}}
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
        |then=&#32;&amp; {{qif
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
          |test={{{authorlink3|}}}
  |Given2 = {{{first2|{{{given2|}}}}}}
          |then={{wikilink
  |Given3 = {{{first3|{{{given3|}}}}}}
            |1={{{authorlink3}}}
  |Given4 = {{{first4|{{{given4|}}}}}}
            |2={{{author3|{{{surname3|{{{last3|}}}}}}{{qif|test={{{given3|{{{first3|{{{initials3|}}}}}}}}}|then=, {{{initials3|{{{given3|{{{first3}}}}}}}}}}}}}}
  |Authorlink1 = {{{author-link|{{{author1-link|}}}}}}
            }}
  |Authorlink2 = {{{author2-link|}}}
          |else={{{author3|{{{surname3|{{{last3|}}}}}}{{qif|test={{{given3|{{{first3|{{{initials3|}}}}}}}}}|then=, {{{initials3|{{{given3|{{{first3}}}}}}}}}}}}}}
  |Authorlink3 = {{{author3-link|}}}
        }}{{qif
  |Authorlink4 = {{{author4-link|}}}
          |test={{{surname4|{{{last4|{{{author4|}}}}}}}}}
  |Year={{{year|{{   <!-- attempt to derive year from date, if possible -->
          |then=, et al.
            #if: {{{date|}}}
        }}
            |{{
      }}
                #switch: {{#time:Y|{{{date|}}}}}
  }}
                |Error: invalid time = {{{publication-date|}}}
  |…
                |{{#time:Y|{{{date|}}}}}
}} ({{{year}}}){{qif
              }}
  |test={{{journal|{{{periodical|}}}}}}
            |{{{publication-date|}}} <!-- last resort -->
   |then={{qif
          }}
      |test={{{title|}}}
        }}}
      |then=, {{link|1={{{url|}}}|2="{{{title}}}"}}
  |Date = {{{date|{{{year|{{{publication-date|}}}}}}}}}
    }}, ''{{{journal|{{{periodical}}}}}}''{{qif
  |Title={{{title|}}}
      |test={{{volume|}}}
  |URL={{{url|}}}
      |then=, vol. {{{volume}}}
  |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
    }}{{qif
  |Volume = {{{volume|}}}
      |test={{{issue|{{{number|}}}}}}
  |Issue = {{{issue|{{{number|}}}}}}
      |then=, no. {{{number|{{{issue}}}}}}
  |Pages = {{{pages|}}}
    }}{{qif
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
      |test={{{pages|}}}
   |IncludedWorkURL = {{{chapter-url|{{{contribution-url|}}}}}}
      |then=, pp. {{{pages}}}
  |Edition = {{{edition|}}}
      |else={{qif
  |Place = {{{place|}}}
          |test={{{page|}}}
  |Publisher = {{{publisher|}}}
          |then=, p. {{{page}}}
  |PublicationDate = {{{publication-date|}}}
        }}
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
    }}
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
   |else={{qif
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
      |test={{{chapter|{{{contribution|}}}}}}
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
      |then=, {{link|1={{{url|}}}|2="{{{chapter|{{{contribution}}}}}}"}} in {{qif
   |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
            |test={{{editor|}}}
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
            |then={{{editor}}}, ed.,&#32;
  |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
          }}''{{{title}}}''{{qif
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
              |test={{{edition|}}}
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
              |then=&#32;({{{edition}}} ed.)
  |Editorlink2={{{editor2-link|}}}
          }}{{qif
  |Editorlink3={{{editor3-link|}}}
              |test={{{publisher|}}}
  |Editorlink4={{{editor4-link|}}}
              |then=, {{{publisher}}}
  |ID={{{id|{{{ID|}}}}}}
          }}{{qif
  |ISBN={{{isbn|{{{ISBN|}}}}}}
              |test={{{place|}}}
  |DOI={{{doi|{{{DOI|}}}}}}
              |then=, {{{Place}}}
  |AccessDate={{{access-date|}}}
          }}{{qif
  |Ref={{{ref|}}}
              |test={{{ISBN|{{{id|}}}}}}
}}
              |then=, {{{id|ISBN {{{ISBN}}}}}}
}}<noinclude>{{Citation/doc}}
          }}{{qif
            |test={{{pages|}}}
            |then=, pp. {{{pages}}}
            |else={{qif
              |test={{{page|}}}
              |then=, p. {{{page}}}
            }}
          }}
      |else={{qif
            |test={{{title|}}}
            |then=, {{link|1={{{url|}}}|2=''{{{title}}}''}}
          }}{{qif
              |test={{{edition|}}}
              |then=&#32;({{{edition}}} ed.)
          }}{{qif
              |test={{{publisher|}}}
              |then=, {{{publisher}}}
          }}{{qif
              |test={{{place|}}}
              |then=, {{{place}}}
          }}{{qif
              |test={{{ISBN|{{{id|}}}}}}
              |then=, {{{id|ISBN {{{ISBN}}}}}}
          }}
    }}
}}{{qif
    |test={{{accessdate|}}}
    |then=&#32;<nowiki>[</nowiki>{{{accessdate}}}<nowiki>]</nowiki>
}}</cite><noinclude>
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
'''This template is subject to periodic changes and breaking, and for now should be used only by testers and developers who can correct problems when they appear.'''
</noinclude>
</noinclude>

Latest revision as of 06:40, 11 April 2009