Jump to content

Template:Citation: Difference between revisions

From IdeaWazaWiki
wikademia>COGDEN
replace soon-to-be-deleted ifnone with booleq. Generalize citation HTML id.
wikademia>Wikademia
m 71 revisions
 
(71 intermediate revisions by 24 users not shown)
Line 1: Line 1:
<noinclude>'''This is a test template which is not yet to be used.'''</noinclude>
{{
<cite style="font-style:normal" {{if
  #if: {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor|}}}}}}}}}}}}}}}
  |1={{{Ref|}}}
<!--
  |2={{if
    CITATIONS FOR PATENTS
      |1={{booleq
-->
            |{{{Ref}}}
|{{Citation/patent
            |none
|Surname1 = {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor}}}}}}}}}}}}}}}
          }}
|Surname2={{{inventor2-surname|{{{inventor2-last|{{{inventor2|}}}}}}}}}
      |2=
|Surname3={{{inventor3-surname|{{{inventor3-last|{{{inventor3|}}}}}}}}}
      |3=id="{{{Ref}}}"
|Surname4={{{inventor4-surname|{{{inventor4-last|{{{inventor4|}}}}}}}}}
    }}
|Given1 = {{{inventor-given|{{{inventor1-given|{{{inventor-first|{{{inventor1-first|}}}}}}}}}}}}
  |3={{if
|Given2={{{inventor2-given|{{{inventor2-first|}}}}}}
      |1={{{Surname|{{{Last|{{{Surname1|{{{Last1}}}}}}}}}}}}
|Given3={{{inventor3-given|{{{inventor3-first|}}}}}}
      |2=id="CITEREF{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{{Surname2|{{{Last2|}}}}}}{{{Surname3|{{{Last3|}}}}}}{{{Surname4|{{{Last4|}}}}}}{{{Year}}}"
|Given4={{{inventor4-given|{{{inventor4-first|}}}}}}
    }}
|Inventorlink1={{{inventorlink1|{{{inventorlink|}}}}}}
}}>{{if
|Inventorlink2={{{inventorlink2|}}}
  |{{{Surname|{{{Last|{{{Surname1|{{{Last1|{{{Author|{{{Author1}}}}}}}}}}}}}}}}}}
|Inventorlink3={{{inventorlink3|}}}
  |{{if
|Inventorlink4={{{inventorlink4|}}}
    |{{{Authorlink|{{{Authorlink1|}}}}}}
|Title={{{title|}}}
    |{{wikilink
|CountryCode={{{country-code}}}
        |{{{Authorlink1|{{{Authorlink}}}}}}
|PublicationNumber={{{publication-number|{{{patent-number}}}}}}
        |{{{Author1|{{{Author
|Description={{{description|}}}
            |{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{if
|PublicationDate={{{publication-date|}}}
              |{{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1|}}}}}}}}}}}}}}}}}}
|IssueDate={{{issue-date|}}}
              |, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
|Year={{{year}}}
            }}
}}
        }}}}}}
 
      }}
<!--
    |{{{Author1|{{{Author
    CITATIONS FOR THINGS LIKE BOOKS AND PERIODICALS
        |{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{if
-->
            |{{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1}}}}}}}}}}}}}}}}}}
|{{Citation/core
            |, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|}}}}}}}}}}}}}}}}}}}}}
          }}
  |Surname2 = {{{last2|{{{surname2|{{{author2|}}}}}}}}}
      }}}}}}
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
  }}{{if
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
    |{{{Surname2|{{{Last2|{{{Author2|}}}}}}}}}
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
    |{{if
  |Given2 = {{{first2|{{{given2|}}}}}}
        |{{{Author3|{{{Surname3|{{{Last3|}}}}}}}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
        |,&#32;
  |Given4 = {{{first4|{{{given4|}}}}}}
        |&#32;&amp;&#32;
  |Authorlink1 = {{{author-link|{{{author1-link|}}}}}}
      }}{{if
  |Authorlink2 = {{{author2-link|}}}
        |{{{Authorlink2|}}}
  |Authorlink3 = {{{author3-link|}}}
        |{{wikilink
  |Authorlink4 = {{{author4-link|}}}
          |{{{Authorlink2}}}
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
          |{{{Author2|{{{Surname2|{{{Last2|}}}}}}{{if|{{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
            #if: {{{date|}}}
        }}
            |{{
        |{{{Author2|{{{Surname2|{{{Last2|}}}}}}{{if|{{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
                #switch: {{#time:Y|{{{date|}}}}}
      }}{{if
                |Error: invalid time = {{{publication-date|}}}
        |{{{Surname3|{{{Last3|{{{Author3|}}}}}}}}}
                |{{#time:Y|{{{date|}}}}}
        |&#32;&amp; {{if
              }}
          |{{{Authorlink3|}}}
            |{{{publication-date|}}} <!-- last resort -->
          |{{wikilink
          }}
            |{{{Authorlink3}}}
        }}}
            |{{{Author3|{{{Surname3|{{{Last3|}}}}}}{{if|{{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
  |Date = {{{date|{{{year|{{{publication-date|}}}}}}}}}
            }}
  |Title={{{title|}}}
          |{{{Author3|{{{Surname3|{{{Last3|}}}}}}{{if|{{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
  |URL={{{url|}}}
        }}{{if
  |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
          |{{{Surname4|{{{Last4|{{{Author4|}}}}}}}}}
  |Volume = {{{volume|}}}
          |, et al.
  |Issue = {{{issue|{{{number|}}}}}}
        }}
  |Pages = {{{pages|}}}
      }}
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
  }}
  |IncludedWorkURL = {{{chapter-url|{{{contribution-url|}}}}}}
   |…
  |Edition = {{{edition|}}}
}} ({{{Year}}}){{if
  |Place = {{{place|}}}
   |1={{{Journal|{{{Periodical|}}}}}}
  |Publisher = {{{publisher|}}}
   |2={{if
  |PublicationDate = {{{publication-date|}}}
      |1={{{Title|}}}
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
      |2=, {{Link|1={{{URL|}}}|2="{{{Title}}}"}}
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
    }}, ''{{{Journal|{{{Periodical}}}}}}''{{if
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
      |{{{Volume|}}}
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
      |, vol. {{{Volume}}}
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
    }}{{if
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
      |{{{Issue|{{{Number|}}}}}}
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
      |, no. {{{Number|{{{Issue}}}}}}
   |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
    }}{{if
   |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
      |{{{Pages|}}}
  |Editorlink2={{{editor2-link|}}}
      |, pp. {{{Pages}}}
  |Editorlink3={{{editor3-link|}}}
      |{{if
  |Editorlink4={{{editor4-link|}}}
          |{{{Page|}}}
  |ID={{{id|{{{ID|}}}}}}
          |, p. {{{Page}}}
  |ISBN={{{isbn|{{{ISBN|}}}}}}
        }}
  |DOI={{{doi|{{{DOI|}}}}}}
    }}
  |AccessDate={{{access-date|}}}
  |3={{if
  |Ref={{{ref|}}}
      |1={{{Chapter|{{{Contribution|}}}}}}
}}
      |2=, {{Link|1={{{URL|}}}|2="{{{Chapter|{{{Contribution}}}}}}"}} in {{if
}}<noinclude>{{Citation/doc}}
            |{{{Editor|}}}
</noinclude>
            |{{{Editor}}}, ed.,&#32;
          }}''{{{Title}}}''{{if
              |{{{Edition|}}}
              |&#32;({{{Edition}}} ed.)
          }}{{if
              |{{{Publisher|}}}
              |, {{{Publisher}}}
          }}{{if
              |{{{Place|}}}
              |, {{{Place}}}
          }}{{if
              |{{{ISBN|{{{ID|}}}}}}
              |, {{{ID|ISBN {{{ISBN}}}}}}
          }}{{if
            |{{{Pages|}}}
            |, pp. {{{Pages}}}
            |{{if
              |{{{Page|}}}
              |, p. {{{Page}}}
            }}
          }}
      |3={{if
            |1={{{Title|}}}
            |2=, {{Link|1={{{URL|}}}|2=''{{{Title}}}''}}
          }}{{if
              |{{{Edition|}}}
              |&#32;({{{Edition}}} ed.)
          }}{{if
              |{{{Publisher|}}}
              |, {{{Publisher}}}
          }}{{if
              |{{{Place|}}}
              |, {{{Place}}}
          }}{{if
              |{{{ISBN|{{{ID|}}}}}}
              |, {{{ID|ISBN {{{ISBN}}}}}}
          }}
    }}
}}{{if
    |{{{Access-date|}}}
    |&#32;<nowiki>[</nowiki>{{{Access-date}}}<nowiki>]</nowiki>
}}</cite>

Latest revision as of 06:40, 11 April 2009