Wikipedia:Citing sources/Example edits for different methods: Difference between revisions

Content deleted Content added
lots of cleanups
Line 622:
</div>
 
====Rendering for shortened notes linked with wikilinks={{tl|sfn}} and citation templates===
 
All three of the above shortened notes with wikilinks examples would render exactly the same.
 
'''Rendering:'''<!--This rendering is produced by copying the content for the secondlast example above (Shortened notes withusing wikilinks{{tl|sfn}} usingand citation templates) between the <pre> and </pre> tags into place between the <div> and </div> tags below and, since this is a subsection in this project page and changing "==Notes==" and "==References" respectively to use {{Fake heading}}-->
<div style="margin: 1em; padding: 1em; border:1px solid #999">
Scientific studies have examined the relationship between coffee consumption and an array of medical conditions. Findings are contradictory as to whether coffee has any specific health benefits, and results are similarly conflicting regarding negative effects of coffee consumption.<ref>[[#refKummer2003{{sfn|Kummer |2003]] |pp.=151–170.</ref>}}
 
Coffee appears to reduce the risk of [[Alzheimer's disease]], [[Parkinson's disease]], [[heart disease]], [[diabetes mellitus type 2]], [[cirrhosis]] of the [[liver]],<ref>[[#refKlatsky2006{{sfn|Klatsky |2006]].</ref>}} and [[gout]]. Some health effects are due to the [[caffeine]] content of coffee, as the benefits are only observed in those who drink caffeinated coffee, while others appear to be due to other components.<ref>[[#refPereira2006{{sfn|Pereira |Parker|Folsom|2006]].</ref>}} For example, the [[antioxidant]]s in coffee prevent [[Radical (chemistry)|free radicals]] from causing cell damage.<ref>[[#refBakalar2006{{sfn|Bakalar |2006]].</ref>}}
 
Although caffeine has not been linked to any life-threatening disease, doctors and nurses routinely advise some patients to watch their caffeine intake or to eliminate it altogether.<ref>[[#refKummer2003{{sfn|Kummer |2003]] |p.=152.</ref>}} Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls.<ref>[[#refMahmud2001{{sfn|Mahmud |Feely|2001]].</ref>}} Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]],<ref>[[#refJohnson2001{{sfn|Johnson |2001]].</ref>}} and may be a risk factor for [[Coronary_heart_disease|coronary heart disease]]. Some studies suggest that it may have a mixed effect on [[short-term memory]], by improving it when the information to be recalled is related to the current [[train of thought]], but making it more difficult to recall unrelated information.<ref>[[#refBBC2004{{sfn|Lesk|BBC 2004]].</ref>}} About 10% of people with a moderate daily intake (235 mg per day) reported increased depression and anxiety when caffeine was withdrawn,<ref>[[#refSmith2002{{sfn|Smith |2002]].</ref>}} and about 15% of the general population report having stopped caffeine use completely, citing concern about health and unpleasant side effects.<ref>[[#refJohnsHopkins2003{{sfn|Johns Hopkins |2003]].</ref>}} Nevertheless, the mainstream view of medical experts is that drinking three 8-ounce (236 ml) cups of coffee per day (considered average or moderate consumption) does not have significant health risks for adults.<ref>[[#refHaines2007{{sfn|Haines |2007]].</ref>}}
 
{{Fake heading|Notes}}
Line 776:
==Parenthetical references== <!--edit page rather than section if browser misbehaves here-->
 
[[WP:Parenthetical references|Parenthetical references]] are conceptually very much like shortened footnotes, but insert the shortened reference inline into the text rather than in a footnote. ThisThe takesadvantages upare a bit more space in the text, but shows more clearlythat the source of the reference. is Alsoshown more clearly, and getting to the full citation takes only one click rather than two with shortened footnotes (one to reach the shortened footnote, a second to reach the full citation). The disadvantage, though, is that the references clutter up the article text, and for this reason, parenthetical references are not nearly as common as shortened footnotes in Wikipedia articles.
 
===Parenthetical references with references written freehand===
Line 816:
 
Although caffeine has not been linked to any life-threatening disease, doctors and nurses routinely advise some patients to watch their caffeine intake or to eliminate it altogether (Kummer 2003, p. 152). Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls (Mahmud 2001). Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]] (Johnson 2001) and may be a risk factor for [[Coronary_heart_disease|coronary heart disease]]. Some studies suggest that it may have a mixed effect on [[short-term memory]], by improving it when the information to be recalled is related to the current [[train of thought]], but making it more difficult to recall unrelated information (BBC 2004). About 10% of people with a moderate daily intake (235 mg per day) reported increased depression and anxiety when caffeine was withdrawn (Smith 2002), and about 15% of the general population report having stopped caffeine use completely, citing concern about health and unpleasant side effects (Johns Hopkins 2003). Nevertheless, the mainstream view of medical experts is that drinking three 8-ounce (236 ml) cups of coffee per day (considered average or moderate consumption) does not have significant health risks for adults (Haines 2007).
 
{{Fake heading|Notes}}
{{reflist|3}}
 
{{Fake heading|References}}
Line 849 ⟶ 846:
 
Although caffeine has not been linked to any life-threatening disease, doctors and nurses routinely advise some patients to watch their caffeine intake or to eliminate it altogether ([[#refKummer2003|Kummer 2003]], p.152). Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls ([[#refMahmud2001|Mahmud 2001]]). Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]] ([[#refJohnson2001|Johnson 2001]]), and may be a risk factor for [[Coronary_heart_disease|coronary heart disease]]. Some studies suggest that it may have a mixed effect on [[short-term memory]], by improving it when the information to be recalled is related to the current [[train of thought]], but making it more difficult to recall unrelated information ([[#refBBC2004|BBC 2004]]). About 10% of people with a moderate daily intake (235 mg per day) reported increased depression and anxiety when caffeine was withdrawn ([[#refSmith2002|Smith 2002]]), and about 15% of the general population report having stopped caffeine use completely, citing concern about health and unpleasant side effects ([[#refJohnsHopkins2003|Johns Hopkins 2003]]). Nevertheless, the mainstream view of medical experts is that drinking three 8-ounce (236 ml) cups of coffee per day (considered average or moderate consumption) does not have significant health risks for adults ([[#refHaines2007|Haines 2007]]).
 
== Notes ==
{{reflist|3}}
 
== References ==
Line 882 ⟶ 876:
 
Although caffeine has not been linked to any life-threatening disease, doctors and nurses routinely advise some patients to watch their caffeine intake or to eliminate it altogether ([[#refKummer2003|Kummer 2003]], p.152). Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls ([[#refMahmud2001|Mahmud 2001]]). Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]] ([[#refJohnson2001|Johnson 2001]]), and may be a risk factor for [[Coronary_heart_disease|coronary heart disease]]. Some studies suggest that it may have a mixed effect on [[short-term memory]], by improving it when the information to be recalled is related to the current [[train of thought]], but making it more difficult to recall unrelated information ([[#refBBC2004|BBC 2004]]). About 10% of people with a moderate daily intake (235 mg per day) reported increased depression and anxiety when caffeine was withdrawn ([[#refSmith2002|Smith 2002]]), and about 15% of the general population report having stopped caffeine use completely, citing concern about health and unpleasant side effects ([[#refJohnsHopkins2003|Johns Hopkins 2003]]). Nevertheless, the mainstream view of medical experts is that drinking three 8-ounce (236 ml) cups of coffee per day (considered average or moderate consumption) does not have significant health risks for adults ([[#refHaines2007|Haines 2007]]).
 
== Notes ==
{{reflist|3}}
 
== References ==
Line 1,018 ⟶ 1,009:
</div>
 
===={{anchor|harvnb}}{{anchor|sfnharv}}Parenthetical references linked with {{tl|harv}} and citation templates====
 
This is an example edit mode representation showing use of parenthetical references written using {{tl|harv}} with citation templates.<!--i.e. construed to look similar when viewed on the page. If you're actually IN edit mode it'll look different with the <div> and <pre> tags used to make the construction work--> Templates in the <nowiki>{{Cite *}}</nowiki> family need to have the parameter {{code|ref{{=}}harv}} added to them, which allows linking from {{tl|harv}} via matching author last names and year (part of date). Overriding ref parameter CITEREF''SurnameYear'' may also be used (e.g. when coauthor names mismatch). When using the generic {{tl|Citation}} template, {{code|ref{{=}}harv}} does not need to be specified, as the {{code|ref}} parameter automatically defaults to {{code|harv}}.
 
Alternatives to {{tl|harv}} are:
A template call like <code><nowiki>{{sfn|Smith|2007|p=25}}</nowiki></code> is equivalent to <code><nowiki><ref>{{harvnb|Smith|2008|p=25}}.</ref></nowiki></code>, except that it automatically combines identical footnotes. (To get the equivalent effect using the {{tl|harvnb}} construction, you'd need to add matching {{code|name{{=}}}} parameters to the footnotes to be combined.) The longer form can be used if more control is needed.
*Template {{tl|harvnb}} omits the parentheses ("brackets") and can be used to [[WP:CITE#Bundling citations|bundle citations]] together inside a single surrounding pair of parens.
*Template {{tl|harvtxt}} moves the last name outside of the parens ("brackets") and is useful when you want to use the author name as the subject or object of a phrase, e.g. "According to Smith (2009, p. 25), …".
*Templates {{tl|harvcol}}, {{tl|harvcolnb}} and {{tl|harvcoltxt}} are similar but use a colon to separate the page number instead of an abbreviation like "p.". Hence, the output of {{tl|harvcoltxt}} would look something like "According to Smith (2009:25), …".
 
<div style="height: 400px; overflow:auto; border: 1px solid DarkSeaGreen; background:white; margin: 1em; padding: 4px">
Line 1,032 ⟶ 1,026:
Scientific studies have examined the relationship between coffee consumption and an array of medical conditions. Findings are contradictory as to whether coffee has any specific health benefits, and results are similarly conflicting regarding negative effects of coffee consumption {{harv|Kummer|2003|pp=151–170}}.
 
Coffee appears to reduce the risk of [[Alzheimer's disease]], [[Parkinson's disease]], [[heart disease]], [[diabetes mellitus type 2]], [[cirrhosis]] of the [[liver]] {{harv|Klatsky|2006}}, and [[gout]]. Some health effects are due to the [[caffeine]] content of coffee, as the benefits are only observed in those who drink caffeinated coffee, while others appear to be due to other components. {{harv|Pereira|Parker|Folsom|2006}}. For example, the [[antioxidant]]s in coffee prevent [[Radical (chemistry)|free radicals]] from causing cell damage {{harv|Bakalar|2006}}.
 
Although caffeine has not been linked to any life-threatening disease, doctors and nurses routinely advise some patients to watch their caffeine intake or to eliminate it altogether {{harv|Kummer|2003|p=152}}. Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls {{harv|Mahmud|Feely|2001}}. Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]] {{harv|Johnson|2001}}, and may be a risk factor for [[Coronary_heart_disease|coronary heart disease]]. Some studies suggest that it may have a mixed effect on [[short-term memory]], by improving it when the information to be recalled is related to the current [[train of thought]], but making it more difficult to recall unrelated information {{harv|Lesk|2004}}. About 10% of people with a moderate daily intake (235 mg per day) reported increased depression and anxiety when caffeine was withdrawn {{harv|Smith|2002}}, and about 15% of the general population report having stopped caffeine use completely, citing concern about health and unpleasant side effects {{harv|Johns Hopkins|2003}}. Nevertheless, the mainstream view of medical experts is that drinking three 8-ounce (236 ml) cups of coffee per day (considered average or moderate consumption) does not have significant health risks for adults {{harv|Haines|2007}}.
 
== Notes ==
{{reflist|3}}
 
== References ==
Line 1,180 ⟶ 1,171:
</div>
 
====Rendering for parenthetical references linked with wikilinks={{tl|harv}} and citation templates===
 
All three of the above parenthetical references with wikilinkslinks examples would render exactly the same.
 
'''Rendering:'''<!--This rendering is produced by copying the content for the secondlast example above (Parenthetical references linked with wikilinks{{tl|harv}} usingand citation templates) between the <pre> and </pre> tags into place between the <div> and </div> tags below and, since this is a subsection in this project page and changing "==Notes==" and "==References" respectively to use {{Fake heading}}-->
<div style="margin: 1em; padding: 1em; border:1px solid #999">
Scientific studies have examined the relationship between coffee consumption and an array of medical conditions. Findings are contradictory as to whether coffee has any specific health benefits, and results are similarly conflicting regarding negative effects of coffee consumption {{harv|Kummer|2003|pp=151–170}}.
 
Coffee appears to reduce the risk of [[Alzheimer's disease]], [[Parkinson's disease]], [[heart disease]], [[diabetes mellitus type 2]], [[cirrhosis]] of the [[liver]] {{harv|Klatsky|2006}}, and [[gout]]. Some health effects are due to the [[caffeine]] content of coffee, as the benefits are only observed in those who drink caffeinated coffee, while others appear to be due to other components. {{harv|Pereira|Parker|Folsom|2006}}. For example, the [[antioxidant]]s in coffee prevent [[Radical (chemistry)|free radicals]] from causing cell damage {{harv|Bakalar|2006}}.
 
Although caffeine has not been linked to any life-threatening disease, doctors and nurses routinely advise some patients to watch their caffeine intake or to eliminate it altogether {{harv|Kummer|2003|p=152}}. Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls {{harv|Mahmud|Feely|2001}}. Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]] {{harv|Johnson|2001}}, and may be a risk factor for [[Coronary_heart_disease|coronary heart disease]]. Some studies suggest that it may have a mixed effect on [[short-term memory]], by improving it when the information to be recalled is related to the current [[train of thought]], but making it more difficult to recall unrelated information {{harv|Lesk|2004}}. About 10% of people with a moderate daily intake (235 mg per day) reported increased depression and anxiety when caffeine was withdrawn {{harv|Smith|2002}}, and about 15% of the general population report having stopped caffeine use completely, citing concern about health and unpleasant side effects {{harv|Johns Hopkins|2003}}. Nevertheless, the mainstream view of medical experts is that drinking three 8-ounce (236 ml) cups of coffee per day (considered average or moderate consumption) does not have significant health risks for adults {{harv|Haines|2007}}.
 
{{Fake heading|References}}