Wikipedia:Citing sources/Example edits for different methods: Difference between revisions
Content deleted Content added
→{{anchor|harvnb}}{{anchor|sfn}}Shortened notes linked with {{tl|sfn}} and citation templates: Minor error. Now they match perfectly. |
Vchimpanzee (talk | contribs) |
||
Line 462:
===={{anchor|harvnb}}{{anchor|sfn}}Shortened notes linked with {{tl|sfn}} and citation templates====
This is an example edit mode representation showing use of shortened notes written using {{tl|sfn}} 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|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). 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}}.
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.
|