<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://horizonffxi.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AHatnote%2Fdoc</id>
	<title>Template:Hatnote/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://horizonffxi.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AHatnote%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://horizonffxi.wiki/w/index.php?title=Template:Hatnote/doc&amp;action=history"/>
	<updated>2026-04-04T09:33:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://horizonffxi.wiki/w/index.php?title=Template:Hatnote/doc&amp;diff=61&amp;oldid=prev</id>
		<title>FANDOM (Fandom) at 20:44, 22 June 2022</title>
		<link rel="alternate" type="text/html" href="https://horizonffxi.wiki/w/index.php?title=Template:Hatnote/doc&amp;diff=61&amp;oldid=prev"/>
		<updated>2022-06-22T20:44:24Z</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;The hatnotes used for adding links between articles where more context is important.&lt;br /&gt;
Broadly speaking, a hatnote should answer a readers&amp;#039; question: Am I on the right page?&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
; Basic usage:&lt;br /&gt;
 &amp;amp;#123;{hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
; All parameters:&lt;br /&gt;
 &amp;amp;#123;{hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;|extraclasses=&amp;#039;&amp;#039;extra classes&amp;#039;&amp;#039;|selfref=&amp;#039;&amp;#039;yes&amp;#039;&amp;#039;|category=&amp;#039;&amp;#039;no&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
This template accepts the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; - the hatnote text (required)&lt;br /&gt;
* &amp;lt;code&amp;gt;extraclasses&amp;lt;/code&amp;gt; - any extra CSS classes to be added.&lt;br /&gt;
* &amp;lt;code&amp;gt;selfref&amp;lt;/code&amp;gt; - If set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot; or &amp;quot;1&amp;quot;, adds the CSS class &amp;quot;selfref&amp;quot;. This is used to denote self-references.&lt;br /&gt;
* &amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - If set to &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;false&amp;quot;, or &amp;quot;0&amp;quot;, suppresses the error tracking category ([[:Category:Hatnote templates with errors]]). This has an effect only if the leftmost parameter (the hatnote text) is omitted.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|Example hatnote text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{hatnote|Example hatnote text}}&lt;br /&gt;
&lt;br /&gt;
== Typical types ==&lt;br /&gt;
{{T|Main}}, {{T|Further}} are very similar, but indicate either the primary page for a topic or more detailed related topic. They have a nearly identical set of parameters.&lt;br /&gt;
&lt;br /&gt;
;{{T|Main}}: When an article is large, it often has a summary and a link to a main article. This template is used after the heading of the summary, to indicate a link to the subtopic article that has been summarized.&lt;br /&gt;
;{{T|Further}}: Used to link to articles containing further information on this topic.&lt;br /&gt;
;{{T|See also}}: Used to link to additional articles on related topics.&lt;br /&gt;
&lt;br /&gt;
:;{{T|Main|Main Page}}  →:{{Main|Main Page}}&lt;br /&gt;
:;{{T|Main|Main Page|Main Page}}  →:{{Main|Main Page|Main Page}}&lt;br /&gt;
&lt;br /&gt;
:*&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;, ... – the pages to link to. If no page names are specified, the current page name is used instead (without the namespace prefix). Categories and files are automatically escaped with the [[w:Help:Colon trick|colon trick]], and links to sections are automatically formatted as &amp;#039;&amp;#039;page § section&amp;#039;&amp;#039;, rather than the MediaWiki default of &amp;#039;&amp;#039;page#section&amp;#039;&amp;#039;.&lt;br /&gt;
:*&amp;lt;code&amp;gt;l1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;l2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;l3&amp;lt;/code&amp;gt;, ... &amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;lt;code&amp;gt;label 1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;label 2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;label 3&amp;lt;/code&amp;gt;, ... – optional labels for each of the pages to link to (this is for articles where a piped link would be used). Note that the extra parameters use a lower case &amp;#039;L&amp;#039;, for example, &amp;lt;code&amp;gt;l1&amp;lt;/code&amp;gt;, &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; &amp;lt;code&amp;gt;L1&amp;lt;/code&amp;gt;.&lt;br /&gt;
:*&amp;lt;code&amp;gt;selfref&amp;lt;/code&amp;gt; – if set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot; or &amp;quot;1&amp;quot;, adds the CSS class &amp;quot;selfref&amp;quot;. This is used to denote self-references.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Disambiguation ==&lt;br /&gt;
Templates such as {{T|About}} and {{T|For}} are to be used in cases where a disambiguation is not needed. In general, disambiguation pages should only be used for 4 or more titles that are mostly or entirely identical, except for a qualifier.&lt;br /&gt;
;{{T|About}}: Links the reader to other articles with similar titles or concepts that they may have been seeking instead. The template has several formats, including:&lt;br /&gt;
:;{{T|About|Use1}} →:{{About|}}&lt;br /&gt;
:;{{T|About|Use1|&amp;lt;nowiki/&amp;gt;|Main Page}} →:{{About|Use1||Main Page}}&lt;br /&gt;
:;{{T|About|Use1|&amp;lt;nowiki/&amp;gt;|Main Page|and|Main Page}} →:{{About|Use1||Main Page|and|Main Page}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page}} →:{{About|Use1|Use2|Main Page}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|and|Main Page}} →:{{About|Use1|Use2|Main Page|and|Main Page}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|other uses}} →:{{About|Use1|Use2|Main Page|other uses}}&lt;br /&gt;
&lt;br /&gt;
Alternately, a &amp;lt;code&amp;gt;section=yes&amp;lt;/code&amp;gt; parameter can be added to the {{T|About}} template for use at the top of a section. When using this parameter, the wording in the template changes to specify that it is being used in a section:&lt;br /&gt;
:;{{T|About|Use1|&amp;lt;nowiki&amp;gt;section=yes&amp;lt;/nowiki&amp;gt;}} →:{{About|Use1|section=yes}}&lt;br /&gt;
:;{{T|About|Use1|&amp;lt;nowiki/&amp;gt;|Main Page|&amp;lt;nowiki&amp;gt;section=yes&amp;lt;/nowiki&amp;gt;}} →:{{About|Use1||Main Page|section=yes}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|&amp;lt;nowiki&amp;gt;section=yes&amp;lt;/nowiki&amp;gt;}} →:{{About|Use1|Use2|Main Page|section=yes}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|and|Main Page|&amp;lt;nowiki&amp;gt;section=yes&amp;lt;/nowiki&amp;gt;}} →:{{About|Use1|Use2|Main Page|and|Main Page|section=yes}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|other uses|&amp;lt;nowiki&amp;gt;section=yes&amp;lt;/nowiki&amp;gt;}} →:{{About|Use1|Use2|Main Page|other uses|section=yes}}&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;var&amp;gt;text&amp;lt;/var&amp;gt; option adds text to the end; note that this should be only used when truly necessary, and the other hatnote templates listed below don&amp;#039;t suffice. This template also supports &amp;lt;var&amp;gt;selfref&amp;lt;/var&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
;{{T|For}}: Provides links to up to four articles or disambiguation pages. It accepts zero to five parameters. &lt;br /&gt;
&lt;br /&gt;
:;If used without parameters on a page named &amp;#039;&amp;#039;Foo&amp;#039;&amp;#039;, the result is&lt;br /&gt;
::{{hatnote|For other uses, see [[:Foo (disambiguation)]].}}&lt;br /&gt;
:;The first parameter changes the hatnote itself and should be plain text, e.g. {{T|For|similar terms}} yields&lt;br /&gt;
::{{hatnote|For similar terms, see [[:Foo (disambiguation)]].}}&lt;br /&gt;
:;The second parameter is used to change the resultant link, e.g. {{T|For|similar terms|Main Page}} yields&lt;br /&gt;
::{{For|similar terms|Main Page}}&lt;br /&gt;
:;The third, fourth and fifth parameters are used to give one, two, or three supplementary links:&lt;br /&gt;
:*{{For|similar terms|Main Page|Main Page}}&lt;br /&gt;
:*{{For|similar terms|Main Page|Main Page|Main Page}}&lt;br /&gt;
:*{{For|similar terms|Main Page|Main Page|Main Page|Main Page}}&lt;br /&gt;
:the last being produced by e.g. {{T|For|similar terms|Main Page|Main Page|Main Page|Main Page}}.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
&lt;br /&gt;
If no hatnote text is supplied, the template will output the following message:&lt;br /&gt;
* {{hatnote|category=no}}&lt;br /&gt;
&lt;br /&gt;
If you see this error message, it is for one of four reasons:&lt;br /&gt;
# No parameters were specified (the template code was &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). Please use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; instead.&lt;br /&gt;
# Some parameters were specified, but the hatnote text wasn&amp;#039;t included. For example, the template text &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|extraclasses=seealso}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will produce this error. Please use (for example) &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|extraclasses=seealso}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; instead.&lt;br /&gt;
# The hatnote text was specified, but that text contains an equals sign (&amp;quot;=&amp;quot;). The equals sign has a special meaning in template code, and because of this it cannot be used in template parameters that do not specify a parameter name. For example, the template code &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|2+2=4}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will produce this error. To work around this, you can specify the parameter name explicitly by using &amp;lt;code&amp;gt;1=&amp;lt;/code&amp;gt; before the hatnote text, like this: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|1=2+2=4}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# You tried to access [[Module:Hatnote]] directly by using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:hatnote|hatnote|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Use of #invoke in this way has been disabled for performance reasons. Please use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; instead.&lt;br /&gt;
&lt;br /&gt;
Pages that contain this error message are tracked in [[:Category:Hatnote templates with errors]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
This template uses the [[w:Help:Lua|Lua templating language]], and more information can be found [[w:c:dev:Global_Lua_Modules/Hatnote|on the Global Lua Module page]]. &amp;#039;&amp;#039;&amp;#039;For a traditional wikitext version of this template, see [[w:c:templates:Template:Hatnote|Hatnote on Templates Wiki]]&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The HTML code produced by this template looks like this:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;hatnote text&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Notice templates]]&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;[[Category:Template documentation]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FANDOM (Fandom)</name></author>
	</entry>
</feed>