User:RexxS/Cite multiple pages

From Wikipedia, the free encyclopedia

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:

  1. an inline cite within the main article text, using {{harvnb}} inside the <ref>...</ref> tags
  2. a <references /> or {{reflist}} within a "References" or similar section;
  3. 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

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

Bibliography

Addendum: defined references

Text of the article

References

Bibliography

Related Articles

Wikiwand AI