|
|
(104 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><cite class="book" style="font-style:normal" {{ |
− | ==Usage==
| + | #if: {{{ref|}}} |
− | {| align="right"
| + | |{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}} |
− | | __TOC__ | + | |{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }} |
− | |}
| + | }}>{{ |
− | <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>
| + | #if: {{{author|}}}{{{last|}}} |
− | ===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:
| + | #if: {{{authorlink|}}} |
− | * A single author book/journal would include 'initiallast' and 'initialfirst'
| + | | [[{{{authorlink}}}|{{ |
− | * A book with two authors would include 'initiallast', 'initialfirst', 'finallast' and 'finalfirst
| + | #if: {{{last|}}} |
− | * A book with several authors would be 'initiallast', 'initialfirst', '2last', '2first' ... 'finallast' and 'finalfirst</p>
| + | | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} |
− | ===Book and journals===
| + | | {{{author}}} |
− | *Books use the parameters 'title' and 'city'
| + | }}]] |
− | *Journals use the parameters 'jtitle', 'jor' and 'vol'
| + | | {{ |
− | ===The template===
| + | #if: {{{last|}}} |
− | {| | + | | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} |
− | !For books
| + | | {{{author}}} |
− | !For journals
| + | }} |
− | |-
| + | }} |
− | | | + | }}{{ |
− | <nowiki>{{</nowiki><nowiki>citation</nowiki>
| + | #if: {{{author|}}}{{{last|}}} |
− | <nowiki>|initiallast =</nowiki>
| + | | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki> {{{coauthors}}} }} |
− | <nowiki>|initialfirst =</nowiki>
| + | }}{{ |
− | <nowiki>|2last =</nowiki>
| + | #if: {{{origdate|}}} |
− | <nowiki>|2first =</nowiki>
| + | |  <nowiki>[</nowiki>{{{origdate}}}] |
− | <nowiki>|3last =</nowiki>
| + | | {{ |
− | <nowiki>|3first =</nowiki>
| + | #if: {{{origyear|}}} |
− | <nowiki>|4last =</nowiki>
| + | | {{ |
− | <nowiki>|4first =</nowiki>
| + | #if: {{{origmonth|}}} |
− | <nowiki>|5last =</nowiki>
| + | |  <nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}] |
− | <nowiki>|5first =</nowiki>
| + | |  <nowiki>[</nowiki>{{{origyear}}}] |
− | <nowiki>|6last =</nowiki>
| + | }} |
− | <nowiki>|6first =</nowiki>
| + | }} |
− | <nowiki>|finallast =</nowiki>
| + | }}{{ |
− | <nowiki>|finalfirst =</nowiki>
| + | #if: {{{date|}}} |
− | <nowiki>|year = </nowiki>
| + | |  ({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|[[{{{date}}}]]|{{{date}}}}}}}) | {{ |
− | <nowiki>|title = </nowiki>
| + | #if: {{{year|}}} |
− | <nowiki>|ed = </nowiki>
| + | | {{ |
− | <nowiki>|city = </nowiki>
| + | #if: {{{month|}}} |
− | <nowiki>|pub =</nowiki>
| + | |  ({{{month}}} {{{year}}}) |
− | <nowiki>|range = </nowiki>
| + | |  ({{{year}}}) |
− | <nowiki>}} </nowiki>
| + | }} |
− | | | + | }} |
− | <nowiki>{{</nowiki><nowiki>citation</nowiki>
| + | }}{{ #if: {{{author|}}}{{{last|}}} | . |
− | <nowiki>|initiallast =</nowiki>
| + | }}{{ |
− | <nowiki>|initialfirst =</nowiki>
| + | #if: {{{chapter|}}} |
− | <nowiki>|2last =</nowiki>
| + | |  "{{ |
− | <nowiki>|2first =</nowiki>
| + | #if: {{{chapterurl|}}} |
− | <nowiki>|3last =</nowiki>
| + | | [{{{chapterurl}}} {{{chapter}}}] |
− | <nowiki>|3first =</nowiki>
| + | | {{{chapter}}} |
− | <nowiki>|4last =</nowiki>
| + | }}",}}{{ |
− | <nowiki>|4first =</nowiki>
| + | #if: {{{editor|}}} |
− | <nowiki>|5last =</nowiki>
| + | |  in {{{editor}}}: |
− | <nowiki>|5first =</nowiki>
| + | }} <i>{{ |
− | <nowiki>|6last =</nowiki>
| + | #if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} |
− | <nowiki>|6first =</nowiki>
| + | }}</i>{{ |
− | <nowiki>|finallast =</nowiki>
| + | #if: {{{format|}}} |  ({{{format}}}) |
− | <nowiki>|finalfirst =</nowiki>
| + | }}{{ |
− | <nowiki>|year = </nowiki>
| + | #if: {{{others|}}} | , {{{others}}} |
− | <nowiki>|jtitle = </nowiki>
| + | }}{{ |
− | <nowiki>|ed = </nowiki>
| + | #if: {{{edition|}}} | , {{{edition}}} |
− | <nowiki>|pub =</nowiki>
| + | }}{{ |
− | <nowiki>|jor = </nowiki>
| + | #if: {{{series|}}} | , {{{series}}} |
− | <nowiki>|vol = </nowiki>
| + | }}{{ |
− | <nowiki>|range = </nowiki>
| + | #if: {{{volume|{{{number|}}}}}} |  '''{{{volume|{{{number}}}}}}''' |
− | <nowiki>}} </nowiki>
| + | }}{{ |
− | |}
| + | #if: {{{language|}}} |  (in {{{language}}}) |
− | '''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>
| + | #if: {{{publisher|}}} |
− | | + | | {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,  | .  }}{{ |
− | ==Example==
| + | #if: {{{location|}}} |
− | ===For a single author with no page reference:===
| + | | {{{location}}}:  |
− | <nowiki>
| + | }}{{{publisher}}} |
− | {{citation</nowiki>
| + | }}{{ |
− | |initiallast = Tizard
| + | #if: {{{pages|{{{page|}}}}}} | , {{{pages|{{{page}}}}}} |
− | |initialfirst = I
| + | }}{{ |
− | |year = 2004
| + | #if: {{{doi|}}} | . [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}] |
− | |title = Veterinary Immunology: An Introduction
| + | }}{{ |
− | |ed = 7th
| + | #if: {{{id|}}} | . {{{id}}} |
− | |city = Philadelphia
| + | }}{{ |
− | |pub = Saunders
| + | #if: {{{isbn|}}} | . ISBN {{{isbn}}} |
− | <nowiki>}}</nowiki>
| + | }}{{ |
− | '''Gives:'''<br>
| + | #if: {{{oclc|}}} | . [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}] |
− | <p>{{citation
| + | }}{{ |
− | |initiallast = Tizard
| + | #if: {{{url|}}}{{{chapterurl|}}} | {{ |
− | |initialfirst = I
| + | #if: {{{accessdate|}}} | |
− | |year = 2004
| + | <span class="reference-accessdate">. Retrieved on [[{{{accessdate}}}]]</span> |
− | |title = Veterinary Immunology: An Introduction
| + | | {{ |
− | |ed = 7th
| + | #if: {{{accessyear|}}} |
− | |city = Philadelphia
| + | | <span class="reference-accessdate">. Retrieved {{ |
− | |pub = Saunders
| + | #if: {{{accessmonth|}}} |
− | }} </p>
| + | | on [[{{{accessmonth}}} {{{accessyear}}}]] |
− | | + | | during [[{{{accessyear}}}]] |
− | ===For several authors with page reference:===
| + | }}</span>}} |
− | <nowiki>
| + | }} |
− | {{citation</nowiki>
| + | }}.{{ #if: {{{quote|}}} | “{{{quote}}}” |
− | |initiallast = Janeway
| + | }}</cite>span style="display: none;"> </span></span></includeonly> |
− | |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>
| |