Jump to content

Template:Citation: Difference between revisions

From IdeaWazaWiki
wikademia>Ligulem
rm 2nd wikilink call
wikademia>Wikademia
m 71 revisions
 
(52 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={{{last{{{author|}}}}}}
<!--
  |then={{qif
    CITATIONS FOR PATENTS
    |test={{{authorlink|}}}
-->
    |then=[[{{{authorlink}}}|{{{author|{{{last}}}{{qif|test={{{first|}}}|then=, {{{first}}}}}}}}]]
|{{Citation/patent
    |else={{{author|{{{last}}}{{qif|test={{{first|}}}|then=, {{{first}}}}}}}}
|Surname1 = {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor}}}}}}}}}}}}}}}
  }}{{qif
|Surname2={{{inventor2-surname|{{{inventor2-last|{{{inventor2|}}}}}}}}}
    |test={{{last2|{{{author2|}}}}}}
|Surname3={{{inventor3-surname|{{{inventor3-last|{{{inventor3|}}}}}}}}}
    |then={{qif
|Surname4={{{inventor4-surname|{{{inventor4-last|{{{inventor4|}}}}}}}}}
        |test={{{author3|{{{last3|}}}}}}
|Given1 = {{{inventor-given|{{{inventor1-given|{{{inventor-first|{{{inventor1-first|}}}}}}}}}}}}
        |then=,&#32;
|Given2={{{inventor2-given|{{{inventor2-first|}}}}}}
        |else=&#32;&amp;&#32;
|Given3={{{inventor3-given|{{{inventor3-first|}}}}}}
      }}{{qif
|Given4={{{inventor4-given|{{{inventor4-first|}}}}}}
        |test={{{authorlink2|}}}
|Inventorlink1={{{inventorlink1|{{{inventorlink|}}}}}}
        |then=[[{{{authorlink2}}}|{{{author2|{{qif|test={{{first2|}}}|then={{{first2}}}&#32;}}{{{last2|}}}}}}]]
|Inventorlink2={{{inventorlink2|}}}
        |else={{{author2|{{qif|test={{{first2|}}}|then={{{first2}}}&#32;}}{{{last2|}}}}}}
|Inventorlink3={{{inventorlink3|}}}
      }}{{qif
|Inventorlink4={{{inventorlink4|}}}
        |test={{{last3|{{{author3|}}}}}}
|Title={{{title|}}}
        |then=&#32;&amp; {{qif
|CountryCode={{{country-code}}}
          |test={{{authorlink3|}}}
|PublicationNumber={{{publication-number|{{{patent-number}}}}}}
          |then={{wikilink
|Description={{{description|}}}
            |1={{{authorlink3}}}
|PublicationDate={{{publication-date|}}}
            |2={{{author3|{{qif|test={{{first3|}}}|then={{{first3}}}&#32;}}{{{last3|}}}}}}
|IssueDate={{{issue-date|}}}
            }}
|Year={{{year}}}
          |else={{{author3|{{qif|test={{{first3|}}}|then={{{first3}}}&#32;}}{{{last3|}}}}}}
}}
        }}{{qif
 
          |test={{{last4|{{{author4|}}}}}}
<!--
          |then=, et al.
    CITATIONS FOR THINGS LIKE BOOKS AND PERIODICALS
        }}
-->
      }}
|{{Citation/core
  }}
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|}}}}}}}}}}}}}}}}}}}}}
  |…
  |Surname2 = {{{last2|{{{surname2|{{{author2|}}}}}}}}}
}} ({{{year}}}){{qif
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
   |test={{{journal|}}}
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
   |then={{qif
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
      |test={{{title|}}}
   |Given2 = {{{first2|{{{given2|}}}}}}
      |then=, {{link|1={{{url|}}}|2="{{{title}}}"}}
   |Given3 = {{{first3|{{{given3|}}}}}}
    }}, ''{{{journal}}}''{{qif
  |Given4 = {{{first4|{{{given4|}}}}}}
      |test={{{volume|}}}
  |Authorlink1 = {{{author-link|{{{author1-link|}}}}}}
      |then=, vol. {{{volume}}}
  |Authorlink2 = {{{author2-link|}}}
    }}{{qif
  |Authorlink3 = {{{author3-link|}}}
      |test={{{issue|}}}
  |Authorlink4 = {{{author4-link|}}}
      |then=, no. {{{issue}}}
  |Year={{{year|{{   <!-- attempt to derive year from date, if possible -->
    }}{{qif
            #if: {{{date|}}}
      |test={{{pages|}}}
            |{{
      |then=, pp. {{{pages}}}
                #switch: {{#time:Y|{{{date|}}}}}
      |else={{qif
                |Error: invalid time = {{{publication-date|}}}
          |test={{{page|}}}
                |{{#time:Y|{{{date|}}}}}
          |then=, p. {{{page}}}
              }}
        }}
            |{{{publication-date|}}} <!-- last resort -->
    }}
          }}
   |else={{qif
        }}}
      |test={{{chapter|}}}
   |Date = {{{date|{{{year|{{{publication-date|}}}}}}}}}
      |then=, {{link|1={{{url|}}}|2="{{{chapter}}}"}} in {{qif
  |Title={{{title|}}}
            |test={{{editor|}}}
  |URL={{{url|}}}
            |then={{{editor}}}, ed.,&#32;
  |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
          }}''{{{title}}}''{{qif
  |Volume = {{{volume|}}}
              |test={{{edition|}}}
  |Issue = {{{issue|{{{number|}}}}}}
              |then=&#32;({{{edition}}} ed.)
  |Pages = {{{pages|}}}
          }}{{qif
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
              |test={{{publisher|}}}
  |IncludedWorkURL = {{{chapter-url|{{{contribution-url|}}}}}}
              |then=, {{{publisher}}}
  |Edition = {{{edition|}}}
          }}{{qif
  |Place = {{{place|}}}
              |test={{{place|}}}
  |Publisher = {{{publisher|}}}
              |then=, {{{place}}}
  |PublicationDate = {{{publication-date|}}}
          }}{{qif
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
              |test={{{ISBN|{{{id|}}}}}}
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
              |then=, {{{id|ISBN {{{ISBN}}}}}}
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
          }}{{qif
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
            |test={{{pages|}}}
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
            |then=, pp. {{{pages}}}
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
            |else={{qif
  |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
              |test={{{page|}}}
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
              |then=, p. {{{page}}}
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
            }}
  |Editorlink2={{{editor2-link|}}}
          }}
  |Editorlink3={{{editor3-link|}}}
      |else={{qif
  |Editorlink4={{{editor4-link|}}}
            |test={{{title|}}}
  |ID={{{id|{{{ID|}}}}}}
            |then=, {{link|1={{{url|}}}|2=''{{{title}}}''}}
  |ISBN={{{isbn|{{{ISBN|}}}}}}
          }}{{qif
  |DOI={{{doi|{{{DOI|}}}}}}
              |test={{{edition|}}}
  |AccessDate={{{access-date|}}}
              |then=&#32;({{{edition}}} ed.)
  |Ref={{{ref|}}}
          }}{{qif
}}
              |test={{{publisher|}}}
}}<noinclude>{{Citation/doc}}
              |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