<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://temp.gracefam.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_link%2Fdoc</id>
	<title>Template:Format link/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://temp.gracefam.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AFormat_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://temp.gracefam.net/index.php?title=Template:Format_link/doc&amp;action=history"/>
	<updated>2026-06-17T15:34:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://temp.gracefam.net/index.php?title=Template:Format_link/doc&amp;diff=3042&amp;oldid=prev</id>
		<title>imported&gt;Struthious Bandersnatch: Template:Formatter link</title>
		<link rel="alternate" type="text/html" href="http://temp.gracefam.net/index.php?title=Template:Format_link/doc&amp;diff=3042&amp;oldid=prev"/>
		<updated>2020-11-07T13:17:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Template:Formatter_link&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:Formatter link (page does not exist)&quot;&gt;Template:Formatter link&lt;/a&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;
{{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 [[WP:SUBST|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;
'''Link with an italicized page name:'''&lt;br /&gt;
&lt;br /&gt;
{{tlc|format link|''link''|3=italicizepage=yes}}&lt;br /&gt;
&lt;br /&gt;
'''Link with an italicized section name:'''&lt;br /&gt;
&lt;br /&gt;
{{tlc|format link|''link''|3=italicizesection=yes}}&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 §&amp;amp;amp;nbsp;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|Quo warranto#Philippines|3=italicizepage=true}} → &amp;lt;nowiki&amp;gt;[[Quo warranto#Philippines|&amp;lt;i&amp;gt;Quo warranto&amp;lt;/i&amp;gt; §&amp;amp;amp;nbsp;Philippines]]&amp;lt;/nowiki&amp;gt; → {{format hatnote link|Quo warranto#Philippines|italicizepage=true}}&lt;br /&gt;
* {{tlc|format link|Cybercrime Prevention Act of 2012#Disini v. Secretary of Justice|3=italicizesection=true}} &amp;amp;rarr; &amp;lt;nowiki&amp;gt;[[Cybercrime Prevention Act of 2012#Disini v. Secretary of Justice|Cybercrime Prevention Act of 2012 §&amp;amp;amp;nbsp;&amp;lt;i&amp;gt;Disini v. Secretary of Justice&amp;lt;/i&amp;gt;]]&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{format hatnote link|Cybercrime Prevention Act of 2012#Disini v. Secretary of Justice|italicizesection=true}}&lt;br /&gt;
* {{tlc|format link}} → {{format link|category=no}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Format linkr}} – an arguably better version of this template which converts underscores to spaces and calls {{tl|urldecode}} on the input&lt;br /&gt;
* {{tl|Section link}}&lt;br /&gt;
* {{tl|formatter link}} – a template for applying a Wikidata {{q|P1630}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&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>imported&gt;Struthious Bandersnatch</name></author>
	</entry>
</feed>