Jump to content

Template:Citation: Difference between revisions

From IdeaWazaWiki
wikademia>Ligulem
rm ref stuff
wikademia>Wikademia
m 71 revisions
 
(64 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={{{Access-date|}}}
    |then=&#32;<nowiki>[</nowiki>{{{Access-date}}}<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