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= {{finallast|1= {{{finallast|}}}}}|3= {{{empty|}}}}} | + | <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> {{{ed|}}} {{{city|}}}: {{{pub|}}}. <noinclude>{{{range}}}</noinclude> | | {{if|1= {{{finalfirst|}}}|2= {{finalfirst|1= {{{finalfirst|}}}}}|3= {{{empty|}}}}} ({{{year|}}}) <b>{{{title|}}}.</b> {{{ed|}}} {{{city|}}}: {{{pub|}}}. <noinclude>{{{range}}}</noinclude> |
| {{if|1= {{{range|}}}|2= {{pp|1= {{{range}}}}}|3= {{{empty|}}}}} | | {{if|1= {{{range|}}}|2= {{pp|1= {{{range}}}}}|3= {{{empty|}}}}} |
| </includeonly> | | </includeonly> |
| <noinclude> | | <noinclude> |
| + | __NOTOC__ |
| ==Usage== | | ==Usage== |
− | <p>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:</p> | + | <p>This template can be used to create references using the Harvard system. To use the template copy the code below. You only need to include the variables that you are using.</p>'''Authors'''<br><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: |
| + | * 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</p> |
| <br> | | <br> |
| <nowiki> | | <nowiki> |
Line 31: |
Line 38: |
| <nowiki>}}</nowiki> | | <nowiki>}}</nowiki> |
| ==Example== | | ==Example== |
− | '''Using the following:'''
| + | ===For a single author with no page reference:=== |
| <nowiki> | | <nowiki> |
| {{citation</nowiki> | | {{citation</nowiki> |
Line 47: |
Line 54: |
| |initiallast = Tizard | | |initiallast = Tizard |
| |initialfirst = I | | |initialfirst = I |
− | |finallast = Allison
| |
− | |finalfirst = A
| |
− | |2last = Apple
| |
− | |2first = P
| |
| |year = 2004 | | |year = 2004 |
| |title = Veterinary Immunology: An Introduction | | |title = Veterinary Immunology: An Introduction |
Line 56: |
Line 59: |
| |city = Philadelphia | | |city = Philadelphia |
| |pub = Saunders | | |pub = Saunders |
− | |range = 23-35 | + | }} </p> |
| + | <br> |
| + | ===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 ed. |
| + | |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 = 6th ed. |
| + | |city = New York |
| + | |pub = Garland Science Publishing |
| + | |range = 1-35 |
| }} </p> | | }} </p> |
| </noinclude> | | </noinclude> |