Difference between revisions of "Template:Citation"

From WikiVet English
Jump to navigation Jump to search
m (Protected "Template:Citation" [edit=sysop:move=sysop])
(12 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>{{{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={{finallast|1={{{finallast|}}}}}|3={{{empty|}}}}} {{if|1={{{finalfirst|}}}|2={{finalfirst|1={{{finalfirst|}}}}}|3={{{empty|}}}}} ({{{year|}}}) <b>{{{title|}}}</b>{{{jtitle|}}}. {{{ed|}}} {{if|1={{{city|}}}|2={{city|1={{{city|}}}}}|3={{{empty|}}}}} {{if|1={{{pub|}}}|2={{pub|1={{{pub|}}}}}|3={{{empty|}}}}}{{if|1={{{jor|}}}|2={{jor|1={{{jor|}}}|2={{if|1= {{{vol||}}}|2={{vol|vol={{{vol|}}}}}|3= {{{empty|}}}}}}}|3={{{empty|}}}}} <noinclude>{{{range}}}</noinclude>
 +
{{if|1= {{{range|}}}|2= {{pp|1= {{{range}}}}}|3= {{{empty|}}}}}
 +
</includeonly>
 +
<noinclude>
 
==Usage==
 
==Usage==
 
{| align="right"
 
{| align="right"
 
   | __TOC__
 
   | __TOC__
 
   |}
 
   |}
<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>
+
<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 below. You only need to include the variables that you are using.</p>
 
===Authors===
 
===Authors===
 
<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:
 
<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:
Line 11: Line 14:
 
* A book with several authors would be 'initiallast', 'initialfirst', '2last', '2first' ... 'finallast' and 'finalfirst</p>
 
* A book with several authors would be 'initiallast', 'initialfirst', '2last', '2first' ... 'finallast' and 'finalfirst</p>
 
===Book and journals===
 
===Book and journals===
*Books use the parameters 'title' and 'city'
+
*Books use the parameters 'title', 'city' and 'pub'
 
*Journals use the parameters 'jtitle', 'jor' and 'vol'
 
*Journals use the parameters 'jtitle', 'jor' and 'vol'
 
===The template===
 
===The template===
{|
+
  <nowiki>
!For books
+
{{citation</nowiki>
!For journals
+
  |initiallast =  
|-
+
  |initialfirst =  
|
+
  |2last =
  <nowiki>{{</nowiki><nowiki>citation</nowiki>
+
  |2first =
  <nowiki>|initiallast =</nowiki>
+
  |3last =
  <nowiki>|initialfirst =</nowiki>
+
  |3first =
  <nowiki>|2last =</nowiki>
+
  |4last =
  <nowiki>|2first =</nowiki>
+
  |4first =
  <nowiki>|3last =</nowiki>
+
  |5last =
  <nowiki>|3first =</nowiki>
+
  |5first =
  <nowiki>|4last =</nowiki>
+
  |6last =
  <nowiki>|4first =</nowiki>
+
  |6first =
  <nowiki>|5last =</nowiki>
+
  |finallast =
  <nowiki>|5first =</nowiki>
+
  |finalfirst =
  <nowiki>|6last =</nowiki>
+
  |year =  
  <nowiki>|6first =</nowiki>
+
  |title =  
  <nowiki>|finallast =</nowiki>
+
  |jtitle =  
  <nowiki>|finalfirst =</nowiki>
+
  |ed =  
  <nowiki>|year = </nowiki>
+
  |city =  
  <nowiki>|title = </nowiki>
+
  |pub =
  <nowiki>|ed = </nowiki>
+
  |jor =  
  <nowiki>|city = </nowiki>
+
  |vol =   
  <nowiki>|pub =</nowiki>
+
  |range =  
<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>
 
  <nowiki>}} </nowiki>
|}
+
'''NB: Template can be used in a single line to save space:
'''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>
 
*<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>
  
Line 77: Line 54:
 
  |year = 2004
 
  |year = 2004
 
  |title = Veterinary Immunology: An Introduction
 
  |title = Veterinary Immunology: An Introduction
  |ed = 7th
+
  |ed = 7th ed.
 
  |city = Philadelphia
 
  |city = Philadelphia
 
  |pub = Saunders
 
  |pub = Saunders
 +
|range = 23-35
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
 
'''Gives:'''<br>
 
'''Gives:'''<br>
Line 87: Line 65:
 
|year = 2004
 
|year = 2004
 
|title = Veterinary Immunology: An Introduction
 
|title = Veterinary Immunology: An Introduction
|ed = 7th
+
|ed = 7th ed.
 
|city = Philadelphia
 
|city = Philadelphia
 
|pub = Saunders
 
|pub = Saunders
 
}} </p>
 
}} </p>
 
 
===For several authors with page reference:===
 
===For several authors with page reference:===
 
  <nowiki>
 
  <nowiki>
Line 105: Line 82:
 
  |year = 2005
 
  |year = 2005
 
  |title = Immunobiology: The immune system in health and disease
 
  |title = Immunobiology: The immune system in health and disease
  |ed = 6th
+
  |ed = 6th ed.
 
  |city = New York
 
  |city = New York
 
  |pub = Garland Science Publishing
 
  |pub = Garland Science Publishing
Line 122: Line 99:
 
|year = 2005
 
|year = 2005
 
|title = Immunobiology: The immune system in health and disease
 
|title = Immunobiology: The immune system in health and disease
|ed =
+
|ed = 6th ed.
 
|city = New York
 
|city = New York
 
|pub = Garland Science Publishing
 
|pub = Garland Science Publishing

Revision as of 17:31, 9 July 2008


Usage

This template can be used to create references using the Harvard system for both books and journals. To use the template copy the code below. You only need to include the variables that you are using.

Authors

The first name being referenced should always by 'initiallast' and 'initialfirst' and the last name being referenced should always be 'finallast' and 'finalfirst'. Therefore:

  • A single author book/journal would include 'initiallast' and 'initialfirst'
  • A book with two authors would include 'initiallast', 'initialfirst', 'finallast' and 'finalfirst
  • A book with several authors would be 'initiallast', 'initialfirst', '2last', '2first' ... 'finallast' and 'finalfirst

Book and journals

  • Books use the parameters 'title', 'city' and 'pub'
  • Journals use the parameters 'jtitle', 'jor' and 'vol'

The template

{{citation
|initiallast = 
|initialfirst = 
|2last =
|2first =
|3last =
|3first =
|4last =
|4first =
|5last =
|5first =
|6last =
|6first =
|finallast =
|finalfirst =
|year = 
|title = 
|jtitle = 
|ed = 
|city = 
|pub =
|jor = 
|vol =  
|range = 
}} 

NB: Template can be used in a single line to save space:

  • {{citation |initiallast = |initialfirst = |2last = |2first = |3last = |3first = |4last = |4first = |5last = |5first = |6last = |6first = |finallast = |finalfirst = |year = |title = |jtitle = |ed = |city = |pub = |jor = |vol = |range = }}

Example

For a single author with no page reference:

{{citation
|initiallast = Tizard
|initialfirst = I
|year = 2004
|title = Veterinary Immunology: An Introduction
|ed = 7th ed.
|city = Philadelphia
|pub = Saunders
|range = 23-35
}}

Gives:

Tizard, I. (2004) Veterinary Immunology: An Introduction. 7th ed. ed. Philadelphia: Saunders.

For several authors with page reference:

{{citation
|initiallast = Janeway
|initialfirst = C
|2last = Travers
|2first = P
|3last = Walport
|3first = M
|finallast = Sholmchik
|finalfirst = M
|year = 2005
|title = Immunobiology: The immune system in health and disease
|ed = 6th ed.
|city = New York
|pub = Garland Science Publishing
|range = 1-35
}}

Gives:

Janeway, C., Travers, P., Walport, M. and Sholmchik, M. (2005) Immunobiology: The immune system in health and disease. 6th ed. ed. New York: Garland Science Publishing. pp.1-35.

For journals:

{{citation
|initiallast = Metcalfe
|initialfirst = D.D
|2last = Baram
|2first = D
|finallast = Mekori
|finalfirst = Y
|year = 1997
|jtitle = Mast Cells
|jor = Physiological Reviews
|vol = 77(4)
|range = 1033-1064
}}

Gives:

Metcalfe, D.D., Baram, D. and Mekori, Y. (1997) Mast Cells. Physiological Reviews 77(4): pp.1033-1064.