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

Content deleted Content added
Remove apparent stray char.
Prefer {{tl|sfn}} to {{tl|harvnb}}
Line 460:
</div>
 
===={{anchor|harvnb}}{{anchor|sfn}}Shortened notes linked with {{tl|Harvnbsfn}} (or {{tl|harvnb}}) and citation templates====
 
This is an example edit mode representation showing use of shortened notes written using {{tl|Harvnbsfn}} 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 cite<nowiki>{{Cite xxx*}}</nowiki> family usingneed to have the parameter {{code|ref{{=}}harv}} parameteradded valueto =them, harvwhich allowallows linking from Harvnb{{tl|sfn}} 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). TheWhen using the generic {{tl|Citation}} template, will{{code|ref{{=}}harv}} alsodoes work.not Itsneed to be specified, as the {{code|ref}} parameter valueautomatically defaults to {{code|harv if not specified}}.
 
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.
 
This is an example edit mode representation showing use of shortened notes written using {{tl|Harvnb}} 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 cite xxx family using the ref parameter value = harv allow linking from Harvnb 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). The generic {{tl|Citation}} template will also work. Its ref parameter value defaults to harv if not specified.
<div style="height: 400px; overflow:auto; border: 1px solid DarkSeaGreen; background:white; margin: 1em; padding: 4px">
<pre style="border: none; background:white; margin: 0; padding:0; line-height: 130%; word-wrap: break-word;
Line 469 ⟶ 472:
white-space: -pre-wrap;
white-space: pre-wrap">
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>{{Harvnbsfn|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>{{Harvnbsfn|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>{{Harvnbsfn|Pereira|Parker|Folsom|2006}}.</ref> For example, the [[antioxidant]]s in coffee prevent [[Radical (chemistry)|free radicals]] from causing cell damage.<ref>{{Harvnbsfn|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>{{Harvnbsfn|Kummer|2003|p=152}}.</ref> Research suggests that drinking caffeinated coffee can cause a temporary increase in the stiffening of arterial walls.<ref>{{Harvnbsfn|Mahmud|Feely|2001}}.</ref> Excess coffee consumption may lead to a [[magnesium deficiency (medicine)|magnesium deficiency]] or [[hypomagnesaemia]],<ref>{{Harvnbsfn|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>{{Harvnbsfn|Lesk|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>{{Harvnbsfn|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>{{Harvnbsfn|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>{{Harvnbsfn|Haines|2007}}.</ref>
 
== Notes ==