User:RexxS/Cite multiple pages
One of the problems I often come across is how to make several in-line citations which refer to different pages of the same book. The method illustrated below is one I've found which works. It involves three elements:
- an inline cite within the main article text, using {{harvnb}} inside the <ref>...</ref> tags
- a <references /> or {{reflist}} within a "References" or similar section;
- a book cited within a "Bibliography" or similar section, using {{cite book}}, with the |ref parameter set to the autogenerated anchor that {{harvnb}} creates.
It is much easier to see an example than to describe how each step works. So have a look at this:
==Text of the article==
The effects of oxygen toxicity are commonly classified by the organs affected, producing three principal types:<ref name="Brubakk-358-360">{{harvnb |Brubakk|Neuman|2003| pp=358–60 }}</ref>
The seizure ends with a period of unconsciousness (the [[postictal state]]).<ref name="Brubakk-376">{{harvnb |Brubakk|Neuman|2003| p=376 }}</ref>
==References==
{{Reflist|colwidth=30em}}
==Bibliography==
* {{cite book |title=Bennett and Elliott's physiology and medicine of diving, 5th Revised edition |author=Brubakk, Alf O.; Neuman, Tom S. |year=2003 |publisher=Saunders Ltd |location=United States |chapter=9.4:Oxygen Under Pressure |pages=358–418 |isbn=0702025712 |oclc=51607923 |ref=CITEREFBrubakkNeuman2003 }}
The spacing within the parameters in {{harvnb}} are crucial: extra spaces generate underscores ("_") in the anchor link like "CITEREFBrubakk_Neuman_2003", so it no longer matches the |ref parameter that you put inside the {{cite book}}. You can check the generated link by hovering over the link in the "References" section and looking at the status bar to see what the CITEREFxxxxxx actually is.
This is what the wiki-code above produces (any comments welcome!):
Text of the article
[edit]The effects of oxygen toxicity are commonly classified by the organs affected, producing three principal types:[1]
The seizure ends with a period of unconsciousness (the postictal state).[2]
References
[edit]- ^ Brubakk & Neuman 2003, pp. 358–60
- ^ Brubakk & Neuman 2003, p. 376
Bibliography
[edit]- Brubakk, Alf O.; Neuman, Tom S. (2003). "9.4:Oxygen Under Pressure". Bennett and Elliott's physiology and medicine of diving, 5th Revised edition. United States: Saunders Ltd. pp. 358–418. ISBN 0702025712. OCLC 51607923.
{{cite book}}
: CS1 maint: multiple names: authors list (link)
Addendum: defined references
[edit]Since I wrote the above, an expansion to allow references to be defined within {{Reflist}} has been implemented. The effect is to remove the definition of the reference from within the main text, making the article text much easier to edit. This isn't compulsory, but I feel that a little extra effort at the early stage makes further editing much easier.
Here's another example, illustrating "defined references" as well as mixing the Harvnb style with normal referencing. It also shows you can use the "|loc" parameter in Harvnb to refer to source locations other than simple pages. Note that it doesn't matter what order the defined references in {{Reflist}} are; so you can order them as you choose for ease of finding them again.
- ==Text of the article==
- However, exposure time before onset is unpredictable, as tests have shown a wide variation, both amongst individuals, and in the same individual from day to day.<ref name="usndm4-18-22" /><ref name="Bitterman2004" />
- Seizures during the therapy are managed by removing the mask from the patient, thereby dropping the partial pressure of oxygen inspired below {{convert|0.6|bar|abbr=on}}.<ref name="usndm1-3-44" />
- ==References==
- {{Reflist|colwidth=45em |refs=
- <ref name="usndm1-3-44">{{Harvnb |U.S. Navy Diving Manual|2008| loc=vol. 1, ch. 3, p. 44 }}</ref>
- <ref name="usndm4-18-22">{{Harvnb |U.S. Navy Diving Manual|2008| loc=vol. 4, ch. 18, p. 22 }}</ref>
- <ref name="Bitterman2004">{{cite journal |author=Bitterman, N. |title=CNS oxygen toxicity |journal=Undersea and Hyperbaric Medicine |volume=31 |issue=1 |pages=63–72 |year=2004 |pmid=15233161 |url=http://archive.rubicon-foundation.org/3991 |accessdate=2008-04-29}}</ref>
- }}
- ==Bibliography==
- * {{cite manual |author=U.S. Navy Supervisor of Diving |title=U.S. Navy Diving Manual |version=SS521-AG-PRO-010, revision 6 |date=2008 |publisher=U.S. Naval Sea Systems Command |url=http://supsalv.org/pdf/DiveMan_rev6.pdf |format=PDF |accessdate=2009-06-29 |ref=CITEREFU.S._Navy_Diving_Manual2008 }}
Text of the article
[edit]However, exposure time before onset is unpredictable, as tests have shown a wide variation, both amongst individuals, and in the same individual from day to day.[1][2]
Seizures during the therapy are managed by removing the mask from the patient, thereby dropping the partial pressure of oxygen inspired below 0.6 bar (60 kPa).[3]
References
[edit]- ^ U.S. Navy Diving Manual 2008, vol. 4, ch. 18, p. 22
- ^ Bitterman, N. (2004). "CNS oxygen toxicity". Undersea and Hyperbaric Medicine. 31 (1): 63–72. PMID 15233161. Retrieved 2008-04-29.
- ^ U.S. Navy Diving Manual 2008, vol. 1, ch. 3, p. 44
Bibliography
[edit]- U.S. Navy Supervisor of Diving (2008). U.S. Navy Diving Manual (PDF). SS521-AG-PRO-010, revision 6. U.S. Naval Sea Systems Command. Retrieved 2009-06-29.