<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ASfnRef%2Fdoc</id>
	<title>Template:SfnRef/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ASfnRef%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:SfnRef/doc&amp;action=history"/>
	<updated>2026-05-10T15:06:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:SfnRef/doc&amp;diff=40569&amp;oldid=prev</id>
		<title>imported&gt;555 at 15:22, 3 April 2022</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:SfnRef/doc&amp;diff=40569&amp;oldid=prev"/>
		<updated>2022-04-03T15:22:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Template shortcut|harvid}}&lt;br /&gt;
{{lua|Module:Footnotes}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate an identifier suitable as an [[Template:Citation/doc #Anchors for Harvard referencing templates|anchor for a Harvard citation]]. This template, which can be used with either the name {{tlc|SfnRef}} or the name {{tlc|harvid}}, is intended to be paired with Harvard citation templates such as {{tl|Sfn}}, {{tl|harv}}, and {{tl|harvnb}}. This template uses the same arguments as the other citation templates. As explained below, this template is needed only in some cases when the Harvard citation templates are used.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;SfnRef|&amp;#039;&amp;#039;Last name of author(s)&amp;#039;&amp;#039;|&amp;#039;&amp;#039;Year&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;harvid|&amp;#039;&amp;#039;Last name of author(s)&amp;#039;&amp;#039;|&amp;#039;&amp;#039;Year&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first parameter is the first author&amp;#039;s last name. Up to four authors can be given as parameters; if there are more than four authors, list only the first four. The last parameter is the year of publication, possibly with a letter suffixed to avoid ambiguity if there are multiple citations by the same set of authors in the same year.&lt;br /&gt;
&lt;br /&gt;
All named parameters such as {{para|p}} are ignored.&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
&lt;br /&gt;
This template creates the proper value for the {{para|ref}} parameter for use with {{tl|cite journal}}, {{tl|cite book}}, {{tl|citation}}, and the other [[Help:Citation Style 1|Citation Style 1 and 2]] templates, and for use by {{tl|vcite journal}}, {{tl|vcite book}} and other templates that generate [[Vancouver system]] references. It is intended to be paired with {{tl|Sfn}} and uses the same arguments. As explained below, {{tlc|SfnRef}}/{{tlc|harvid}} is only necessary in a subset of the cases where {{tlc|Sfn}} is used.&lt;br /&gt;
&lt;br /&gt;
{{tlc|Sfn}} creates a short footnote that is linked to a full footnote. {{tlc|Sfn}} creates the link automatically, but the full footnote must be assigned the proper ID value to be a valid target for that link.&lt;br /&gt;
&lt;br /&gt;
When using the Citation Style 1 and 2 family of citation templates, a default ID is generated from the last names of the first four authors or editors. A custom ID can be created via the {{para|ref}} parameter. However, if none of {{para|last1}}, {{para|editor-last}}, or their equivalents are used, use {{tlc|SfnRef}} to create the proper value without having to know the rules for how {{tlc|Sfn}} creates the ID.&lt;br /&gt;
&lt;br /&gt;
The {{tl|vcite journal}} etc. templates (with &amp;quot;&amp;lt;code&amp;gt;vcite&amp;lt;/code&amp;gt;&amp;quot;, not &amp;quot;&amp;lt;code&amp;gt;cite&amp;lt;/code&amp;gt;&amp;quot;) require the use of {{tlc|SfnRef}}/{{tlc|harvid}} to work with Harvard citations.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
; With the shortened footnote template&lt;br /&gt;
&lt;br /&gt;
When citing an article published in the December 2004 edition of &amp;#039;&amp;#039;Rolling Stone&amp;#039;&amp;#039; where the author is unknown, you might create a short footnote as follows:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Sfn|Rolling Stone|2004}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{para|ref|harv}} will not work in this case because &amp;quot;Rolling Stone&amp;quot; is not the name of the author. You may code the value for the {{para|ref}} parameter manually, or you can use {{tlc|SfnRef}} and specify the same parameters as used with {{tlc|Sfn}}:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{SfnRef|Rolling Stone|2004}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full footnote:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{cite news |work=[[Rolling Stone]] |title=The RS 500 Greatest Songs of All Time |ref={{SfnRef|Rolling Stone|2004}} |date=December 2004}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can copy and paste the {{tlc|Sfn}} template code and change the name of the template from &amp;quot;Sfn&amp;quot; to &amp;quot;SfnRef&amp;quot;. If your short footnote includes page numbers such as {{tlc|Sfn|Rolling&amp;amp;nbsp;Stone|2004|p{{=}}48}}, you can copy and paste it to create {{tlc|SfnRef|Rolling&amp;amp;nbsp;Stone|2004|p{{=}}48}}; the {{para|p|48}} parameter is not necessary but will do no harm.&lt;br /&gt;
&lt;br /&gt;
; With other Harvard templates&lt;br /&gt;
&lt;br /&gt;
For example, a &amp;#039;&amp;#039;References&amp;#039;&amp;#039; section might contain the following markup:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;[[Template:vcite journal|vcite journal]]&amp;lt;nowiki&amp;gt; |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–661 |date=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This markup uses &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{harvid|Peh|Ng|2009}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to generate the anchor identifier &amp;quot;{{harvid|Peh|Ng|2009}}&amp;quot;, used internally to link Harvard references to citations. (This identifier is not visible to the article&amp;#039;s reader.) The generated citation looks like this:&lt;br /&gt;
: {{vcite journal |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–661 |date=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}&lt;br /&gt;
Article prose can link to this citation with markup like the following:&lt;br /&gt;
: {{tlx|harv|Peh|Ng|2009}}&lt;br /&gt;
which generates the following:&lt;br /&gt;
: {{harv|Peh|Ng|2009}}&lt;br /&gt;
To see how it works, click on the &amp;quot;{{harv|Peh|Ng|2009}}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|citeref}} (a wrapper for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;harvid&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to create #internal wikilinks with either superscript &amp;lt;sup&amp;gt;[n]&amp;lt;/sup&amp;gt; or plain-text labels to other citations from inside a citation)&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia referencing}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Author–date citation templates]]&lt;br /&gt;
[[Category:Footnote templates]]&lt;br /&gt;
&lt;br /&gt;
[[bn:টেমপ্লেট:SfnRef]]&lt;br /&gt;
[[ja:Template:SfnRef]]&lt;br /&gt;
[[sl:Template:SfnRef]]&lt;br /&gt;
[[simple:Template:SfnRef]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;555</name></author>
	</entry>
</feed>