<?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%3ASelf-reference%2Fdoc</id>
	<title>Template:Self-reference/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%3ASelf-reference%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Self-reference/doc&amp;action=history"/>
	<updated>2026-05-09T07:03:50Z</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:Self-reference/doc&amp;diff=40551&amp;oldid=prev</id>
		<title>imported&gt;ClydeFranklin: ClydeFranklin moved page Template:Self reference/doc to Template:Self-reference/doc: Match base title</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Self-reference/doc&amp;diff=40551&amp;oldid=prev"/>
		<updated>2023-04-01T16:47:56Z</updated>

		<summary type="html">&lt;p&gt;ClydeFranklin moved page &lt;a href=&quot;/mediawiki/index.php/Template:Self_reference/doc&quot; class=&quot;mw-redirect&quot; title=&quot;Template:Self reference/doc&quot;&gt;Template:Self reference/doc&lt;/a&gt; to &lt;a href=&quot;/mediawiki/index.php/Template:Self-reference/doc&quot; title=&quot;Template:Self-reference/doc&quot;&gt;Template:Self-reference/doc&lt;/a&gt;: Match base title&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Distinguish|Template:Self-reference cleanup|Template:No self link}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{High-use|2060}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE, AND INTERWIKIS TO WIKIDATA. --&amp;gt;&lt;br /&gt;
{{Never substitute}}&lt;br /&gt;
The {{tlf|Self-reference}} template generates a [[WP:HAT|hatnote]] that will &amp;#039;&amp;#039;not&amp;#039;&amp;#039; appear in any [[WP:Reusing Wikipedia content|reuse of Wikipedia article content]], including the [[Wikipedia:Keyboard_shortcuts#List_of_access_keys|printable version]] of an article. The template&amp;#039;s intended purpose is to display information that is relevant only to a reader viewing the article directly within Wikipedia. Such information might include a [[WP:DAB|disambiguation]] statement that points to a [[WP:H|Wikipedia help]] page or an instruction to editors. (In [[WP:Glossary|Wikipedia terminology]], these are forms of self-reference.)&lt;br /&gt;
&lt;br /&gt;
Unlike many hatnote templates, {{tlf|Self-reference}} has no preset text, link generation, or formatting other than italics. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Self-reference|Foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; simply returns &amp;#039;&amp;#039;Foo&amp;#039;&amp;#039;. Many hatnote templates that &amp;#039;&amp;#039;do&amp;#039;&amp;#039; contain helpful preset text and linking, such as {{t|for}} and {{t|about}}, support a {{para|selfref}} parameter that gives them the same functionality as {{tlf|Self-reference}}, making them better options in most circumstances.&lt;br /&gt;
&lt;br /&gt;
In most cases, references to the Wikipedia project are discouraged, and the valid uses for this template are rare. Consultation of the list of [[Wikipedia:Self-references to avoid|Self-references to avoid]] is advisable.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
In most cases, {{tlf|Self-reference}} is used to create a disambiguation link to a page in the &amp;quot;Wikipedia:&amp;quot; namespace from article-space; for instance, the page [[Objectivity (disambiguation)]] could have a self-referential &amp;quot;[[WP:HATNOTE|hatnote]]&amp;quot; link at the top: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Self-reference|For Wikipedia&amp;#039;s policy on avoiding bias, see [[Wikipedia:Neutral point of view]].}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
When using {{tlf|Self-reference}} in this way, use the following format:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Self-reference|The self-referential notice to display, including [[MOS:LINK|links]].}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which produces:&lt;br /&gt;
{{Self-reference|The self-referential notice to display, including [[MOS:LINK|links]].}}&lt;br /&gt;
italicized (Wikipedia house style for self-referential notes), and both preceded and followed by a linebreak.&lt;br /&gt;
&lt;br /&gt;
For inline use (in body text, mid-sentence, and {{em|not}} in hatnotes), without the indentation and line breaking, use {{tlx|Self-reference inline}}:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Self-reference inline|the self-referential text to display, including [[MOS:LINKS|links]]}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which produces: {{Self-reference inline|the self-referential text to display, including [[MOS:LINKS|links]]}} (illustrated here on the same line as other content).&lt;br /&gt;
&lt;br /&gt;
Template {{tnull|Self-reference}} also has the parameter {{para||inline}}:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Self-reference|the self-referential text to display, including [[MOS:LINKS|links]]|inline}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
However, {{as of |alt=as of early 2019|2019|01|post=,}} it does not always function properly, and may cause a line break under some circumstances.&lt;br /&gt;
&lt;br /&gt;
=== Unprintworthy content ===&lt;br /&gt;
Rarely, there is other, non-self-referential content which shouldn&amp;#039;t appear in mirrors, print editions, or other off-Wikipedia reuses of Wikipedia content, and which shouldn&amp;#039;t be italicized as a self-reference.&lt;br /&gt;
&lt;br /&gt;
It is preferable to mark such unprintworthy content with the {{tl|Unprintworthy inline}} template (which includes the &amp;lt;code&amp;gt;noprint&amp;lt;/code&amp;gt; CSS class, but not the &amp;lt;code&amp;gt;plainlinks&amp;lt;/code&amp;gt; class, since links in such content will not be internal self-references). Although not all [[WP:Mirrors and forks|mirror sites]] do so, the content in question can be removed by reusers of WP content, without any reformatting, by ignoring or removing content marked up by this template, or more accurately by the &amp;lt;code&amp;gt;selfreference&amp;lt;/code&amp;gt; CSS class that it (and some other templates) use.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note: The following syntax has been obsolete since 2008, and if you see it, replace it as described below.&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
There was a {{em|deprecated}}, pre-2008 legacy usage of {{tlf|Selfref}} that was used for such unprintworthy cases, and pre-dates the {{tl|Unprintworthy inline}} template.  This is to simply end the template with a pipe character &amp;amp;ndash; &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;:&lt;br /&gt;
{{dc2|1=&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Selfref|the unprintworthy text to display without self-ref styling|}}&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
This method cannot be depended upon. For one thing, many editors would interpret the ending pipe as an error and remove it, turning the template into an indented self-ref hatnote! It also has not been used since 2008. Any remaining uses of it should be replaced with {{tl|Self-reference inline}} (if real a self-references) or {{tl|Unprintworthy inline}} (if simply unprintworthy).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
{|border=1 class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code !! Page on Wikipedia !! Page on [some] mirrors&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Self-reference|For the Wikipedia Sandbox, see [[WP:SAND]]}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;The Wikipedia Sandbox is a page on Wikipedia. {{Self-reference|(You can edit it by clicking &amp;quot;edit&amp;quot; on the page.)|inline}} It has been edited many times.&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| {{Self-reference|For the Wikipedia Sandbox, see [[WP:SAND]]}}&lt;br /&gt;
&lt;br /&gt;
The Wikipedia Sandbox is a page on Wikipedia. {{Self-reference|(You can edit it by clicking &amp;quot;edit&amp;quot; on the page.)|inline}} It has been edited many times.&lt;br /&gt;
| The Wikipedia Sandbox is a page on Wikipedia. It has been edited many times.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Wikipedia:Self-references to avoid]]&lt;br /&gt;
* {{tl|Self-reference inline}}&lt;br /&gt;
* {{tl|Crossreference}}, for an inline (not block-level) &amp;quot;(See also ...)&amp;quot;&lt;br /&gt;
* {{tl|Self-reference link}}, for the opposite case when you want a link to the Wikipedia: namespace that &amp;#039;&amp;#039;does&amp;#039;&amp;#039; show in mirrors without breaking (for instance when writing an article about Wikipedia or something connected to it).&lt;br /&gt;
* {{tl|Printworthy self-reference}} – for cases of self-references that are printworthy and may or may not be desired by reusers of WP content, depending upon whether they are mirroring or just using single articles&lt;br /&gt;
* {{tl|Unprintworthy inline}} – for unprintworthy inline material that isn&amp;#039;t technically a self-reference&lt;br /&gt;
* [[Wikipedia:Hatnote]]&lt;br /&gt;
{{Navbox hatnote templates|state=collapsed}}&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia self-reference templates]]&amp;lt;!--For both forms of this template.--&amp;gt;&lt;br /&gt;
[[Category:Disambiguation and redirection templates]]&amp;lt;!--For frequent use atop DAB pages; it&amp;#039;s not actually a DAB/redir template, per se.--&amp;gt;&lt;br /&gt;
[[Category:Wikipedia page-section templates]]&amp;lt;!--For hatnote usage only.--&amp;gt;&lt;br /&gt;
[[Category:Cross-reference templates]]&amp;lt;!--For the inline usage.--&amp;gt;&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;ClydeFranklin</name></author>
	</entry>
</feed>