<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ARefn%2Fdoc</id>
	<title>Template:Refn/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ARefn%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Refn/doc&amp;action=history"/>
	<updated>2026-04-08T20:04:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Refn/doc&amp;diff=16795&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt; {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}  ===Purpose=== This template is used to create footnotes in Wikipedia, as an alternative and complement to the &lt;syntaxhighlight lang=&quot;HTML&quot; inline&gt;&lt;ref&gt;&lt;/syntaxhighlight&gt;. :mw:Help:Cite#Substitution and embedded parser functions|Because of a techni...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Refn/doc&amp;diff=16795&amp;oldid=prev"/>
		<updated>2023-04-19T11:54:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt; {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}  ===Purpose=== This template is used to &lt;a href=&quot;/index.php?title=Help:Footnotes&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Footnotes (page does not exist)&quot;&gt;create footnotes in Wikipedia&lt;/a&gt;, as an alternative and complement to the &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;. :mw:Help:Cite#Substitution and embedded parser functions|Because of a techni...&amp;quot;&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;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}&lt;br /&gt;
&lt;br /&gt;
===Purpose===&lt;br /&gt;
This template is used to [[Help:Footnotes|create footnotes in Wikipedia]], as an alternative and complement to the &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;. [[:mw:Help:Cite#Substitution and embedded parser functions|Because of a technical limitation]], some of the standard Wikipedia markup elements that are often used in the article prose do not work within a set of &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;...&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; tags, including but not limited to [[Help:Pipe trick|the pipe trick]], [[Wikipedia:Substitution|template substitution]] and another &amp;quot;nested&amp;quot; set of &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;...&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; tags. For example, the following does not work as expected:&lt;br /&gt;
# &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;[[Help:Footnotes|]]&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; (Generates: &amp;lt;nowiki&amp;gt;[[Help:Footnotes|]]&amp;lt;/nowiki&amp;gt; instead of a wikilink)&lt;br /&gt;
# &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;{{SUBST:TODAY}}&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; (Generates: &amp;lt;nowiki&amp;gt;{{SUBST:TODAY}}&amp;lt;/nowiki&amp;gt; instead of the date that the edit was made)&lt;br /&gt;
# &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;Explanatory footnote&amp;lt;ref&amp;gt;Citation&amp;lt;/ref&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; (Generates: &amp;lt;span style=&amp;quot;font-weight: bold; color: #CC0000;&amp;quot;&amp;gt;Cite error: A &amp;amp;lt;ref&amp;amp;gt; tag is missing the closing &amp;amp;lt;/ref&amp;amp;gt; (see the [[:Help:Cite errors/Cite error included ref|help page]]).&amp;lt;/span&amp;gt; &amp;amp;lt;/ref&amp;amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Replacing the outermost &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;...&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; set with {{tlp|Refn}} allows for the use of the markup elements listed above.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
{{tld|refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}}&lt;br /&gt;
&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;groupname&amp;#039;&amp;#039;&amp;#039;: Groupname per [[WP:REFGROUP]]; if not specified, then the main and nested references will be rendered into the same reference list&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039;: Reference name per [[WP:REFNAME]]&lt;br /&gt;
&lt;br /&gt;
{{refname rules}}&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
====Footnotes with citations====&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot;&amp;gt;An example.{{refn|group=note|name=first|A note.&amp;lt;ref&amp;gt;An included reference.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Another example.{{refn|group=note|Another note.&amp;lt;ref&amp;gt;Another included reference.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
A third example.{{refn|group=note|The third note.&amp;lt;ref&amp;gt;The reference in the third note.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Repeating the first example.{{refn|group=note|name=first}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|An example.{{refn|group=note|name=first|A note.&amp;lt;ref&amp;gt;An included reference.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Another example.{{refn|group=note|Another note.&amp;lt;ref&amp;gt;Another included reference.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
A third example.{{refn|group=note|The third note.&amp;lt;ref&amp;gt;The reference in the third note.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Repeating the first example.{{refn|group=note|name=first}}&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|Notes}}&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|References}}&lt;br /&gt;
{{reflist}}&lt;br /&gt;
}}&lt;br /&gt;
====Other forms of citations====&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot;&amp;gt;An example.{{refn|group=note|name=first|A note.&amp;lt;ref&amp;gt;The reference in the first note.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Another example.{{refn|name=ref|Another reference, but without a note.}}&lt;br /&gt;
A third example.{{refn|group=note|A second note.&amp;lt;ref&amp;gt;The reference in the second note.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Repeating the first example.{{refn|group=note|name=first}}&lt;br /&gt;
Repeating the second example.{{refn|name=ref}}&lt;br /&gt;
A fourth example with citation templates.{{refn|name=harv|{{cite book|author=Smith|title=The Solar System|year=2005|mode=cs2}}, quoted in {{harvnb|Jones|2020|p=25}}.}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|An example.{{refn|group=note|name=first|A note.&amp;lt;ref&amp;gt;The reference in the first note.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Another example.{{refn|name=ref|Another reference, but without a note.}}&lt;br /&gt;
A third example.{{refn|group=note|A second note.&amp;lt;ref&amp;gt;The reference in the second note.&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
Repeating the first example.{{refn|group=note|name=first}}&lt;br /&gt;
Repeating the second example.{{refn|name=ref}}&lt;br /&gt;
A fourth example with citation templates.{{refn|name=harv|{{cite book|author=Smith|title=The Solar System|year=2005|mode=cs2}}, quoted in {{harvnb|Jones|2020|p=25}}.}}&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|Notes}}&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|References}}&lt;br /&gt;
{{reflist}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
====Substitution====&lt;br /&gt;
The first example shows that substitution does not work in a regular &amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot; inline&amp;gt;&amp;lt;ref&amp;gt;...&amp;lt;/ref&amp;gt;&amp;lt;/syntaxhighlight&amp;gt; tag (the {{para|access-date}} does not appear correctly). The second example shows that the {{para|access-date}} is substituted correctly within {{tl|refn}}.&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;HTML&amp;quot;&amp;gt;&amp;lt;ref&amp;gt;{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
{{reflist}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&amp;lt;ref&amp;gt;{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary|no-tracking=yes}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{refn|{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}}&lt;br /&gt;
{{reflist}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{refn|{{cite web |access-date=4 April 2014 |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}}&lt;br /&gt;
{{reflist}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Errors===&lt;br /&gt;
If the reference or note content is missing, then Cite error: Invalid &amp;amp;lt;ref&amp;amp;gt; tag; refs with no name must have content. will be displayed.&lt;br /&gt;
&lt;br /&gt;
If the note content contains an equals sign (&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;), the equals sign will be interpreted as setting off a named parameter and cause an error. This can be worked around by [[Help:Template#Usage hints and workarounds|using a numbered parameter]], for example:&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|1=&amp;lt;nowiki&amp;gt;{{refn|1+1=2}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|2=&amp;lt;span class=&amp;quot;error mw-ext-cite-error&amp;quot;&amp;gt;Cite error: There are &amp;amp;lt;ref&amp;amp;gt; tags on this page without content in them (see the [[Help:Cite errors/Cite error ref no input|help page]]).&amp;lt;/span&amp;gt;&lt;br /&gt;
|3=&amp;lt;nowiki&amp;gt;{{refn|1= 1+1=2}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|4={{refn|1= 1+1=2}}&lt;br /&gt;
&lt;br /&gt;
{{reflist}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{#section:Help:footnotes|pregroup}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
*{{tl|r}} (another template supporting nested footnotes)&lt;br /&gt;
*{{tl|citeref}} (a different method to create nested links working on citation template anchor level rather than &amp;lt;nowiki&amp;gt;&amp;lt;ref&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt; markup level)&lt;br /&gt;
{{Wikipedia referencing}}&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The content of the footnote.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;refn&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;name&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The name of the footnote. Corresponds to the \&amp;quot;name\&amp;quot; attribute of the &amp;lt;ref&amp;gt; tag.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;group&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;group&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The reference group. Corresponds to the \&amp;quot;group\&amp;quot; attribute on the &amp;lt;ref&amp;gt; tag.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template is used to create footnotes in Wikipedia, as an alternative and complement to the &amp;lt;ref&amp;gt; tag.&amp;quot;,&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;1&amp;quot;,&lt;br /&gt;
		&amp;quot;name&amp;quot;,&lt;br /&gt;
		&amp;quot;group&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Footnote templates]]&lt;br /&gt;
[[Category:Templates that generate named references]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>