<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHatnote_inline%2Fdoc</id>
	<title>Template:Hatnote inline/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AHatnote_inline%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Hatnote_inline/doc&amp;action=history"/>
	<updated>2026-05-15T05:55:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Hatnote_inline/doc&amp;diff=37205&amp;oldid=prev</id>
		<title>imported&gt;Sm8900 at 16:16, 20 January 2023</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Hatnote_inline/doc&amp;diff=37205&amp;oldid=prev"/>
		<updated>2023-01-20T16:16:09Z</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;{{for|the template to make multiple hatnotes appear on the same line|Template:Hatnote group}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{lua|Module:Hatnote inline}}&lt;br /&gt;
&lt;br /&gt;
{{Warning|1=This is a meta-template for development of additional, more specific templates. If you intend to use the template inline in articles or other pages, use {{tlx|crossreference}} (shortcuts or {{tlx|crossref}} and {{tlx|xref}}) or other specific templates based on this metatemplate, e.g. {{tlx|see above}} and {{tlx|see below}}.}}&lt;br /&gt;
&lt;br /&gt;
The {{tl|Hatnote inline}} meta-template formats text into a standardized style for an inline (not block-level) variant of a [[Wikipedia:Hatnote]], a short note placed at the point of insertion, to link to more information or otherwise cross-reference another Wikipedia page. like this: {{hatnote inline|Example inline hatnote text.}}  &amp;lt;!--See [[:Category:Cross-reference templates]] for a list. of templates derived from this meta-template.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The most common uses for this meta-template are:&lt;br /&gt;
* Inline &amp;quot;&amp;#039;&amp;#039;(See also ...)&amp;#039;&amp;#039;&amp;quot;-type parenthetical [[MOS:CROSSREF|Wikipedia crossreferences]] to other Wikipedia pages, provided by the {{tlx|crossreference}} template and its progeny.  These are [[WP:SELFREF|unprintworthy Wikipedia self-references]].&lt;br /&gt;
* Hatnotes inside definitions in [[Wikipedia:Manual of Style/Glossaries|template-formatted glossaries]], provided by the {{tlx|ghat}} template. These are printworthy, as they refer to content on the same page.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
; Basic usage:&lt;br /&gt;
 {{tlx|hatnote inline|{{var|text}}}}&lt;br /&gt;
&lt;br /&gt;
; All parameters:&lt;br /&gt;
 {{tlx|hatnote inline|{{var|text}}|extraclasses{{=}}{{var|class1 class2}}|selfref{{=}}yes|category{{=}}no}}&lt;br /&gt;
&lt;br /&gt;
The meta-template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[Wikipedia:Cheatsheet|Wikipedia markup]].&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
This template accepts the following parameters:&lt;br /&gt;
* {{para|1}} or {{para|text}} or {{para|content}} – The inline hatnote&amp;#039;s text (required). While the explicit naming of this parameter with {{para|1}}, {{para|text}}, or {{para|content}} is not required, it is always safest to use it this way, since any {{kbd|{{=}}}} character in the input text will break the template if the parameter is unnamed.&lt;br /&gt;
* {{para|class}} or {{para|extraclasses}} – Any extra CSS classes to be added. This should not normally be used.&lt;br /&gt;
* {{para|selfref|no}} – If set to {{kbd|no}} (or {{kbd|n}}, {{kbd|false}}, {{kbd|0}}, etc.) removes the default CSS class &amp;lt;code&amp;gt;selfref&amp;lt;/code&amp;gt;, used to denote unprintworthy self-references to Wikipedia {{crossref|(see [[Template:Selfref]] for more information)}}.  This option should not be used to indicate a non-selfref on cross-article links, only links within the same article (and the derived shorthand templates {{tlx|See above}} and {{tlx|See below}} do this automatically). The parameter alias {{para|printworthy|yes}} (or with any other value, like {{kbd|y}}, {{kbd|true}}, {{kbd|1}}, etc.) has the same effect as {{para|selfref|no}}.  Note that attempting to manually supply a &amp;quot;this is a selfref&amp;quot; value with {{para|selfref|yes}} or {{para|printworthy|no}} will not have the desired effect (which is the default anyway); {{em|the meta-template is set to selfref by default}}, since most uses are self-references (only those within the same article as the template are not). This could actually be fixed by use of {{tlx|YesNo}}, but it&amp;#039;s maybe more hassle than it&amp;#039;s worth.&lt;br /&gt;
* {{para|category}} – If set to {{kbd|no}} (or {{kbd|n}}, {{kbd|false}}, {{kbd|0}}, etc.), suppresses the error-tracking category ([[:Category:Hatnote templates with errors]]). This only has an effect if the first positional parameter (the hatnote text) is omitted. This should not normally be used.&lt;br /&gt;
* {{para|inline}} – Defaults to {{kbd|yes}}; you never need to set that. If set to {{kbd|no}} (or {{kbd|n}}, {{kbd|false}}, {{kbd|0}}, etc.), it is a special-use parameter, which turns off the conversion of the Hatnote module code&amp;#039;s {{tag|div|o}} into a {{tag|span|o}}, so it becomes a {{tag|div|o}} again.  By default, this will simply produce the same output as {{tlx|Hatnote}}.  The only use for this is when a template using {{tlx|Hatnote inline}} as its meta-template (e.g. {{tlx|Crossreference}} has [[WP:TemplateStyles]] and a custom class that do something different with it in block mode than would happen if it were a regular hatnote (e.g., by removing the hatnote indentation).  So, obviously this is not normally used, and it requires setup to use it to do anything practical.&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
&lt;br /&gt;
The meta-template places an HTML {{tag|span}} container around the text entered as its first, required parameter, upon which it provides standardized formatting (italicized in most displays, and only stylistically, not as semantic emphasis); it also uses CSS classes to isolate the contained code to make sure that it is interpreted correctly and can be acted upon independently of true article content.&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;span class=&amp;quot;hatnote&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;{{var|hatnote text}}&amp;lt;nowiki&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is the same class used by the {{tag|div|o}}-based {{tlx|hatnote}} template, the block display of which is controlled by a separate &amp;lt;code&amp;gt;div.hatnote&amp;lt;/code&amp;gt; directive in [[Mediawiki:Common.css]].&lt;br /&gt;
&lt;br /&gt;
The output is produced by [[Module:Hatnote inline]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Hatnote templates documentation]], for all the block-format hatnotes&lt;br /&gt;
&lt;br /&gt;
=== Templates based on this meta-template ===&lt;br /&gt;
* {{tl|Crossreference}} (a.k.a. {{tl|Crossref}}, {{tl|Xref}}) &amp;amp;ndash; Template for inline crossreferences to (usually) other Wikipedia pages (unprintworthy in most cases)&lt;br /&gt;
* {{tl|Ghat}} &amp;amp;ndash; Hatnote template for use in [[MOS:GLOSSARIES|template-structured glossaries]] (printworthy)&lt;br /&gt;
* {{tl|See above}} and {{tl|See below}} &amp;amp;ndash; some more specific templates than {{tl|Crossreference}} for use on same page only (printworthy)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
[[Category:Cross-reference templates]]&lt;br /&gt;
[[Category:Hatnote templates| ]]&lt;br /&gt;
[[Category:Inline hatnote templates| ]]&lt;br /&gt;
[[Category:Inline templates| ]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Sm8900</name></author>
	</entry>
</feed>