<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/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://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHatnote%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Template:Hatnote/doc&amp;action=history"/>
	<updated>2026-04-11T17:41:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Template:Hatnote/doc&amp;diff=256&amp;oldid=prev</id>
		<title>ReisuDesign: Created page with &quot;{{Documentation/Header}} {{Lua|Hatnote}} The Hatnotes used for adding links between articles where more context is important. Broadly speaking, a Hatnote should answer a readers&#039; question: Am I on the right page?  ==Syntax== ; Basic usage: {{T|Hatnote|&#039;&#039;text&#039;&#039;}}  ; All parameters: {{T|Hatnote|&#039;&#039;text&#039;&#039;|extraclasses=&#039;&#039;extra classes&#039;&#039;|selfref=&#039;&#039;yes&#039;&#039;|category=&#039;&#039;no&#039;&#039;}}  ==Parameters== This template accepts the following parameters: * {{F|1}} &amp;mdash; the Hatnote text (require...&quot;</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Template:Hatnote/doc&amp;diff=256&amp;oldid=prev"/>
		<updated>2025-11-10T07:48:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation/Header}} {{Lua|Hatnote}} The Hatnotes used for adding links between articles where more context is important. Broadly speaking, a Hatnote should answer a readers&amp;#039; question: Am I on the right page?  ==Syntax== ; Basic usage: {{T|Hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}}  ; All parameters: {{T|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;}}  ==Parameters== This template accepts the following parameters: * {{F|1}} — the Hatnote text (require...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation/Header}}&lt;br /&gt;
{{Lua|Hatnote}}&lt;br /&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;
==Syntax==&lt;br /&gt;
; Basic usage:&lt;br /&gt;
{{T|Hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
; All parameters:&lt;br /&gt;
{{T|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;
This template accepts the following parameters:&lt;br /&gt;
* {{F|1}} &amp;amp;mdash; the Hatnote text (required)&lt;br /&gt;
* {{F|extraclasses}} &amp;amp;mdash; any extra CSS classes to be added.&lt;br /&gt;
* {{F|selfref}} &amp;amp;mdash; 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;
* {{F|category}} &amp;amp;mdash; 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;
* {{T|Hatnote|Example Hatnote text|_Y_=1}}&lt;br /&gt;
&lt;br /&gt;
==Typical Types==&lt;br /&gt;
{{T|Main}} and {{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|_Y_=1}}&lt;br /&gt;
:;{{T|Main|Main Page|Main Page|_Y_=1}}&lt;br /&gt;
&lt;br /&gt;
:*{{F|1}}, {{F|2}}, {{F|3}}, ... – 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 &amp;#039;&amp;#039;colon trick&amp;#039;&amp;#039;, 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;
:*{{F|l1}}, {{F|l2}}, {{F|l3}}, ... &amp;#039;&amp;#039;or&amp;#039;&amp;#039;{{F|label 1}}, {{F|label 2}}, {{F|label 3}}, ... – 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, {{F|l1}}, &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; {{F|L1}}.&lt;br /&gt;
:*{{F|selfref}} – 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;
==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|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1||Main Page|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1||Main Page|and|Main Page|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|and|Main Page|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|other uses|_Y_=1}}&lt;br /&gt;
&lt;br /&gt;
Alternately, a {{F|1=section=yes}} 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|p2=section=yes|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1||Main Page|p4=section=yes|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|p4=section=yes|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|and|Main Page|p6=section=yes|_Y_=1}}&lt;br /&gt;
:;{{T|About|Use1|Use2|Main Page|other uses|p5=section=yes|_Y_=1}}&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;
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 {{T|Hatnote}}). Please use {{T|Hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} instead.&lt;br /&gt;
# Some parameters were specified, but the Hatnote text wasn&amp;#039;t included. For example, the template text {{T|Hatnote|extraclasses=seealso}} will produce this error. Please use (for example) {{T|Hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;|extraclasses=seealso}} 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 {{T|Hatnote|2+2{{=}}4}} will produce this error. To work around this, you can specify the parameter name explicitly by using {{F|1=}} before the Hatnote text, like this: {{T|Hatnote|p1=1=2+2=4}}&lt;br /&gt;
# You tried to access [[Module:Hatnote]] directly by using {{F|&amp;lt;nowiki&amp;gt;{{#invoke:Hatnote|Hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}}&amp;lt;/nowiki&amp;gt;}} Use of #invoke in this way has been disabled for performance reasons. Please use {{T|Hatnote|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} 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;
==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;
* {{F|&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;}}&lt;/div&gt;</summary>
		<author><name>ReisuDesign</name></author>
	</entry>
</feed>