<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_hatnote_link%2Fdoc</id>
	<title>Template:Format hatnote link/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_hatnote_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Format_hatnote_link/doc&amp;action=history"/>
	<updated>2026-04-04T21:15:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Format_hatnote_link/doc&amp;diff=27280&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Format_hatnote_link/doc&amp;diff=27280&amp;oldid=prev"/>
		<updated>2016-08-19T19:22:38Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&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;
{{lua|Module:Hatnote}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template formats a link for use in hatnote templates. It accepts two positional parameters, the link, and an optional display value. Links to categories and files are automatically escaped with the [[Help:Colon trick|colon trick]], and links to sections are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.&lt;br /&gt;
&lt;br /&gt;
This template doesn't work with [[LIMSWiki:Substitution|subst]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
'''Link only:'''&lt;br /&gt;
&lt;br /&gt;
{{tlc|format link|''link''}}&lt;br /&gt;
&lt;br /&gt;
'''Link plus display:'''&lt;br /&gt;
&lt;br /&gt;
{{tlc|format link|''link''|''display''}}&lt;br /&gt;
&lt;br /&gt;
If the link or display values contain an equals sign, you will need to specify the parameter names like this:&lt;br /&gt;
&lt;br /&gt;
{{tlc|format link|2=1=''link''|3=2=''display''}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* {{tlc|format link|Lion}} → &amp;lt;nowiki&amp;gt;[[Lion]]&amp;lt;/nowiki&amp;gt; → {{format link|Lion}}&lt;br /&gt;
* {{tlc|format link|Lion#Etymology}} → &amp;lt;nowiki&amp;gt;[[Lion#Etymology|Lion § Etymology]]&amp;lt;/nowiki&amp;gt; → {{format link|Lion#Etymology}}&lt;br /&gt;
* {{tlc|format link|Category:Lions}} → &amp;lt;nowiki&amp;gt;[[:Category:Lions]]&amp;lt;/nowiki&amp;gt; → {{format link|Category:Lions}}&lt;br /&gt;
* {{tlc|format link|Lion#Etymology|Etymology of lion}} → &amp;lt;nowiki&amp;gt;[[Lion#Etymology|Etymology of lion]]&amp;lt;/nowiki&amp;gt; → {{format link|Lion#Etymology|Etymology of lion}}&lt;br /&gt;
* {{tlc|format link}} → {{format link|category=no}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Section link}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:Internal link templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>