Difference between revisions of "Template:Citation"

From WikiVet English
Jump to navigation Jump to search
m (Protected "Template:Citation" [edit=sysop:move=sysop])
m
(75 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>{{{last|}}}, {{{first|}}}. ({{{year|}}}) <b>{{{title|}}}.</b> {{{ed|}}} {{{city|}}}: {{{pub|}}}. {{{{{pp|{{{range|}}}}}|}}}<noinclude>{{{range|}}}</noinclude></includeonly>
 +
<noinclude>
 
==Usage==
 
==Usage==
{| align="right"
+
<p>'''This Template is not complete. Please do not use.'''</p>
  | __TOC__
+
This template can be used to create references using the Harvard system. To use the template use the code below. You do not need to include variables that you are not using:
  |}
+
<br>
<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>
+
  <nowiki>
===Authors===
+
{{citation</nowiki>
<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:
+
  |last =  
* A single author book/journal would include 'initiallast' and 'initialfirst'
+
  |first =  
* A book with two authors would include 'initiallast', 'initialfirst', 'finallast' and 'finalfirst
+
  |year =  
* A book with several authors would be 'initiallast', 'initialfirst', '2last', '2first' ... 'finallast' and 'finalfirst</p>
+
  |title =  
===Book and journals===
+
  |ed =  
*Books use the parameters 'title' and 'city'
+
  |city =  
*Journals use the parameters 'jtitle', 'jor' and 'vol'
+
  |pub =  
===The template===
+
  |page|range =  
{|
+
  <nowiki>}}</nowiki>
!For books
 
!For journals
 
|-
 
|
 
  <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>|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==
 
==Example==
===For a single author with no page reference:===
+
'''Using the following:'''
 
  <nowiki>
 
  <nowiki>
 
{{citation</nowiki>
 
{{citation</nowiki>
  |initiallast = Tizard
+
  |last = Tizard
  |initialfirst = I
+
  |first = I
 
  |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>
 
<p>{{citation
 
<p>{{citation
|initiallast = Tizard
+
|last = Tizard
|initialfirst = I
+
|first = I
 
|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:===
 
<nowiki>
 
{{citation</nowiki>
 
|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
 
|city = New York
 
|pub = Garland Science Publishing
 
|range = 1-35
 
<nowiki>}}</nowiki>
 
'''Gives:'''<br>
 
<p>{{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 =
 
|city = New York
 
|pub = Garland Science Publishing
 
|range = 1-35
 
}}
 
</p>
 
===For journals:===
 
<nowiki>
 
{{citation</nowiki>
 
|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
 
<nowiki>}}</nowiki>
 
'''Gives:'''<br>
 
<p>
 
{{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}}
 
</p>
 
 
</noinclude>
 
</noinclude>

Revision as of 16:19, 6 July 2008


Usage

This Template is not complete. Please do not use.

This template can be used to create references using the Harvard system. To use the template use the code below. You do not need to include variables that you are not using:

{{citation
|last = 
|first = 
|year = 
|title = 
|ed = 
|city = 
|pub = 
|page|range = 
}}

Example

Using the following:

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

Gives:

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