Wikipedia:Citing sources/Example edits for different methods: Difference between revisions
Content deleted Content added
Wtmitchell (talk | contribs) Remove apparent stray char. |
Prefer {{tl|sfn}} to {{tl|harvnb}} |
||
Line 460:
</div>
===={{anchor|harvnb}}{{anchor|sfn}}Shortened notes linked with {{tl|
This is an example edit mode representation showing use of shortened notes written using {{tl|
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.
Coffee appears to reduce the risk of [[Alzheimer's disease]], [[Parkinson's disease]], [[heart disease]], [[diabetes mellitus type 2]], [[cirrhosis]] of the [[liver]],
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.
== Notes ==
|