User:Rjwilmsi/DupeRefs
DupeRefs
[edit]My edits marked "DupeRefs" and referring to this page are made to address this problem: there are two named references with the same name, but different reference text. Since the references have the same name they will show in the references section as a, b, c etc. of the same reference. Where the reference text is to the same reference, but is somehow slightly different this is correct, and only a tidy up is needed. Where the reference is not the same, a fix is needed.
Example of problem
[edit]<ref name=Smith>Smith, Fred "My book", Oxford Press 2001, p 45</ref>...<ref name=Smith>Smith, Fred "My book", Oxford Press 2001, p.45</ref>
- In this example the two references have the same name ("Smith") but slightly different values ("p.45" instead of "p 45").
<ref name=Smith>Smith, Fred "My book", Oxford Press 2001, p 45</ref>...<ref name=Smith>Smith, see above</ref>
- In this example the two references have the same name ("Smith") but different values since the second refers to the first.
<ref name=Jones>Jones, Fred "My book", Oxford Press 2001, p 45</ref>...<ref name=Jones>Jones, Fred "My book", Oxford Press 2001, p 77</ref>
- In this example the two references have the same name ("Jones") but different values (page number different). Since the page number is not the same the references are different, so need a unique name.
Example of fix
[edit]The fix is either to tidy up the second reference by condensing it, or rename it:
- Refs the same/second refers to the first: in the Smith example above the two references are actually the same, so the second is condensed to <ref name=Smith />. Examples: diff 1
- Refs different: in the Jones example the second reference referred to a different page number, the references are different, so the second is renamed to "Jones 77".