Difference between revisions of "Template:Citation"

From WikiVet English
Jump to navigation Jump to search
m (Protected "Template:Citation" [edit=sysop:move=sysop])
(New page: <includeonly>{{ #if: {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor|}}}}}}}}}}}}}}} <!-- CITATIONS FOR PATENTS --> |{{Citation/patent |Surna...)
(106 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{{initiallast|}}}, {{{initialfirst|}}}.{{if|1={{{2last|}}}|2={{altlast|1={{{2last|}}}}}|3={{{empty|}}}}} {{if|1={{{2first|}}}|2={{altfirst|1={{{2first|}}}}}|3={{{empty|}}}}}{{if|1={{{3last|}}}|2={{altlast|1={{{3last|}}}}}|3={{{empty|}}}}} {{if|1={{{3first|}}}|2={{altfirst|1={{{3first|}}}}}|3={{{empty|}}}}}{{if|1={{{4last|}}}|2={{altlast|1={{{4last|}}}}}|3={{{empty|}}}}} {{if|1={{{4first|}}}|2={{altfirst|1={{{4first|}}}}}|3={{{empty|}}}}}{{if|1={{{5last|}}}|2={{altlast|1={{{5last|}}}}}|3={{{empty|}}}}} {{if|1={{{5first|}}}|2={{altfirst|1={{{5first|}}}}}|3={{{empty|}}}}}{{if|1={{{6last|}}}|2={{altlast|1={{{6last|}}}}}|3={{{empty|}}}}} {{if|1={{{6first|}}}|2={{altfirst|1= {{{6first|}}}}}|3= {{{empty|}}}}}{{if|1={{{finallast|}}}|2=<nowiki> </nowiki>and {{{finallast|}}},|3={{{empty|}}}}} {{if|1={{{finalfirst|}}}|2={{{finalfirst}}}.|3={{{empty|}}}}} {{if|1={{{year}}}|2=({{{year|}}})|3={{{empty|}}}}}{{if|1={{{title|}}}|2=<nowiki> </nowiki><b>{{{title|}}}</b>|3={{{empty|}}}}}{{if|1={{{jtitle|}}}|2=<nowiki> </nowiki>{{{jtitle|}}}|3={{{empty|}}}}}. {{{ed|}}}{{if|1={{{ed|}}}|2=<nowiki> ed.</nowiki>|3={{{empty|}}}}} {{if|1={{{city|}}}|2={{{city|}}}:|3={{{empty|}}}}} {{if|1={{{pub|}}}|2={{{pub|}}}.|3={{{empty|}}}}}{{if|1={{{jor|}}}|2=<b>{{{jor|}}}</b> {{{vol||}}}:|3={{{empty|}}}}} {{if|1= {{{range|}}}|2=pp.{{{range|}}}.|3= {{{empty|}}}}}</includeonly><noinclude>
+
<includeonly>{{
==Usage==
+
  #if: {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor|}}}}}}}}}}}}}}}
{| align="right"
+
<!--
  | __TOC__
+
    CITATIONS FOR PATENTS
  |}
+
-->
<p>This template can be used to create references using the Harvard system for both books and journals. To use the template copy the code [[#The template|below]]. You only need to include the variables that you are using.</p>
+
|{{Citation/patent
===Authors===
+
|Surname1 = {{{inventor-surname|{{{inventor1-surname|{{{inventor-last|{{{inventor1-last|{{{inventor}}}}}}}}}}}}}}}
<p>The first name being referenced should always by 'initiallast' and 'initialfirst' and the last name being referenced should always be 'finallast' and 'finalfirst'. Therefore:
+
|Surname2={{{inventor2-surname|{{{inventor2-last|{{{inventor2|}}}}}}}}}
* A single author book/journal would include 'initiallast' and 'initialfirst'
+
|Surname3={{{inventor3-surname|{{{inventor3-last|{{{inventor3|}}}}}}}}}
* A book with two authors would include 'initiallast', 'initialfirst', 'finallast' and 'finalfirst
+
|Surname4={{{inventor4-surname|{{{inventor4-last|{{{inventor4|}}}}}}}}}
* A book with several authors would be 'initiallast', 'initialfirst', '2last', '2first' ... 'finallast' and 'finalfirst</p>
+
|Given1 = {{{inventor-given|{{{inventor1-given|{{{inventor-first|{{{inventor1-first|}}}}}}}}}}}}
===Book and journals===
+
|Given2={{{inventor2-given|{{{inventor2-first|}}}}}}
*Books use the parameters 'title' and 'city'
+
|Given3={{{inventor3-given|{{{inventor3-first|}}}}}}
*Journals use the parameters 'jtitle', 'jor' and 'vol'
+
|Given4={{{inventor4-given|{{{inventor4-first|}}}}}}
===The template===
+
|Inventorlink1={{{inventorlink1|{{{inventorlink|}}}}}}
{|
+
|Inventorlink2={{{inventorlink2|}}}
!For books
+
|Inventorlink3={{{inventorlink3|}}}
!For journals
+
|Inventorlink4={{{inventorlink4|}}}
|-
+
|Title={{{title|}}}
|
+
|CountryCode={{{country-code}}}
<nowiki>{{</nowiki><nowiki>citation</nowiki>
+
|PublicationNumber={{{publication-number|{{{patent-number}}}}}}
<nowiki>|initiallast =</nowiki>
+
|Description={{{description|}}}
<nowiki>|initialfirst =</nowiki>
+
|PublicationDate={{{publication-date|}}}
<nowiki>|2last =</nowiki>
+
|IssueDate={{{issue-date|}}}
<nowiki>|2first =</nowiki>
+
|Year={{{year}}}
<nowiki>|3last =</nowiki>
+
}}
<nowiki>|3first =</nowiki>
 
<nowiki>|4last =</nowiki>
 
<nowiki>|4first =</nowiki>
 
<nowiki>|5last =</nowiki>
 
<nowiki>|5first =</nowiki>
 
<nowiki>|6last =</nowiki>
 
<nowiki>|6first =</nowiki>
 
<nowiki>|finallast =</nowiki>
 
<nowiki>|finalfirst =</nowiki>
 
<nowiki>|year = </nowiki>
 
<nowiki>|title = </nowiki>
 
<nowiki>|ed = </nowiki>
 
<nowiki>|city = </nowiki>
 
<nowiki>|pub =</nowiki>
 
<nowiki>|range = </nowiki>
 
<nowiki>}} </nowiki>
 
|
 
<nowiki>{{</nowiki><nowiki>citation</nowiki>
 
<nowiki>|initiallast =</nowiki>
 
<nowiki>|initialfirst =</nowiki>
 
<nowiki>|2last =</nowiki>
 
<nowiki>|2first =</nowiki>
 
<nowiki>|3last =</nowiki>
 
<nowiki>|3first =</nowiki>
 
<nowiki>|4last =</nowiki>
 
<nowiki>|4first =</nowiki>
 
<nowiki>|5last =</nowiki>
 
<nowiki>|5first =</nowiki>
 
<nowiki>|6last =</nowiki>
 
<nowiki>|6first =</nowiki>
 
<nowiki>|finallast =</nowiki>
 
<nowiki>|finalfirst =</nowiki>
 
<nowiki>|year = </nowiki>
 
<nowiki>|jtitle = </nowiki>
 
<nowiki>|ed = </nowiki>
 
<nowiki>|pub =</nowiki>
 
<nowiki>|jor = </nowiki>
 
<nowiki>|vol =  </nowiki>
 
<nowiki>|range = </nowiki>
 
<nowiki>}} </nowiki>
 
|}
 
'''NB: Templates can be used in a single line to save space:
 
*<nowiki>{{citation</nowiki> |initiallast =  |initialfirst =  |2last = |2first = |3last = |3first = |4last = |4first = |5last = |5first = |6last = |6first = |finallast = |finalfirst = |year =  |title =  |jtitle = |ed =  |city =  |pub =  |jor = |vol = |range = <nowiki>}}</nowiki>
 
  
==Example==
+
<!--
===For a single author with no page reference:===
+
    CITATIONS FOR THINGS LIKE BOOKS AND PERIODICALS
<nowiki>
+
-->
{{citation</nowiki>
+
|{{Template:Citation/core
|initiallast = Tizard
+
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|}}}}}}}}}}}}}}}}}}}}}
|initialfirst = I
+
  |Surname2 = {{{last2|{{{surname2|{{{author2|}}}}}}}}}
|year = 2004
+
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
|title = Veterinary Immunology: An Introduction
+
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
|ed = 7th
+
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
|city = Philadelphia
+
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
|pub = Saunders
+
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
<nowiki>}}</nowiki>
+
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
'''Gives:'''<br>
+
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
<p>{{citation
+
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
|initiallast = Tizard
+
  |Given2 = {{{first2|{{{given2|}}}}}}
|initialfirst = I
+
  |Given3 = {{{first3|{{{given3|}}}}}}
|year = 2004
+
  |Given4 = {{{first4|{{{given4|}}}}}}
|title = Veterinary Immunology: An Introduction
+
  |Given5 = {{{first5|{{{given5|}}}}}}
|ed = 7th
+
  |Given6 = {{{first6|{{{given6|}}}}}}
|city = Philadelphia
+
  |Given7 = {{{first7|{{{given7|}}}}}}
|pub = Saunders
+
  |Given8 = {{{first8|{{{given8|}}}}}}
}} </p>
+
  |Given9 = {{{first9|{{{given9|}}}}}}
 
+
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
===For several authors with page reference:===
+
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
<nowiki>
+
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
{{citation</nowiki>
+
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
|initiallast = Janeway
+
  |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
|initialfirst = C
+
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
|2last = Travers
+
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
|2first = P
+
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
|3last = Walport
+
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
|3first = M
+
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
|finallast = Sholmchik
+
            #if: {{{date|}}}
|finalfirst = M
+
            |{{
|year = 2005
+
                #iferror:{{#time:Y|{{{date|}}} }}
|title = Immunobiology: The immune system in health and disease
+
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
|ed = 6th
+
                |{{#time:Y|{{{date|}}} }}
|city = New York
+
              }}
|pub = Garland Science Publishing
+
            |{{{publication-date|}}} <!-- last resort -->
|range = 1-35
+
          }}
<nowiki>}}</nowiki>
+
        }}}
'''Gives:'''<br>
+
  |Date = {{{date|{{{year|{{{publication-date|}}}}}}}}}
<p>{{citation
+
  |Title={{{title|}}}
|initiallast =Janeway
+
  |URL={{{url|}}}
|initialfirst =C
+
  |Series={{{series|}}}
|2last = Travers
+
  |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
|2first = P
+
  |Volume = {{{volume|}}}
|3last = Walport
+
  |Issue = {{{issue|{{{number|}}}}}}
|3first = M
+
  |At = {{
|finallast = Sholmchik
+
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
|finalfirst = M
+
          |{{{pages|{{{page|{{{at|}}}}}}}}}
|year = 2005
+
          |{{
|title = Immunobiology: The immune system in health and disease
+
            #if: {{{page|}}}
|ed =
+
            |p. {{{page}}}
|city = New York
+
            |{{
|pub = Garland Science Publishing
+
                #if: {{{pages|}}}
|range = 1-35
+
                |pp. {{{pages}}}
}}
+
                |{{{at|}}}
</p>
+
              }}
===For journals:===
+
          }}
<nowiki>
+
        }}
{{citation</nowiki>
+
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
|initiallast = Metcalfe
+
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
|initialfirst = D.D
+
  |Edition = {{{edition|}}}
|2last = Baram
+
  |Place = {{{place|{{{location|}}}}}}
|2first = D
+
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
|finallast = Mekori
+
  |Publisher = {{{publisher|}}}
|finalfirst = Y
+
  |PublicationDate = {{{publication-date|}}}
|year = 1997
+
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
|jtitle = Mast Cells
+
  |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
|jor = Physiological Reviews
+
  |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
|vol = 77(4)
+
  |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
|range = 1033-1064
+
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
<nowiki>}}</nowiki>
+
  |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
'''Gives:'''<br>
+
  |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
<p>
+
  |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
{{citation
+
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
|initiallast = Metcalfe
+
  |Editorlink2={{{editor2-link|}}}
|initialfirst = D.D
+
  |Editorlink3={{{editor3-link|}}}
|2last = Baram
+
  |Editorlink4={{{editor4-link|}}}
|2first = D
+
  |ID={{{id|{{{ID|}}}}}}
|finallast = Mekori
+
  |ISBN={{{isbn|{{{ISBN|}}}}}}
|finalfirst = Y
+
  |ISSN={{{issn|{{{ISSN|}}}}}}
|year = 1997
+
  |OCLC={{{oclc|{{{OCLC|}}}}}}
|jtitle = Mast Cells
+
  |PMID={{{pmid|{{{PMID|}}}}}}
|jor = Physiological Reviews
+
  |DOI={{{doi|{{{DOI|}}}}}}
|vol = 77(4)
+
  |AccessDate={{{access-date|{{{accessdate|}}}}}}
|range = 1033-1064}}
+
  |Ref={{{ref|}}}
</p>
+
}}
</noinclude>
+
}}</includeonly>

Revision as of 13:19, 4 July 2008