Jump to content

Template:Citation: Difference between revisions

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