<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AFind_substed_templates_notice%2Fdoc</id>
	<title>Template:Find substed templates notice/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AFind_substed_templates_notice%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Find_substed_templates_notice/doc&amp;action=history"/>
	<updated>2026-11-01T08:21:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Find_substed_templates_notice/doc&amp;diff=126292&amp;oldid=prev</id>
		<title>Wikipedia&gt;Mathglot: Add param &#039;sort&#039; for Cirrus sort order. Add example, and explanation in /* Notes */.</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Find_substed_templates_notice/doc&amp;diff=126292&amp;oldid=prev"/>
		<updated>2026-09-10T21:18:15Z</updated>

		<summary type="html">&lt;p&gt;Add param &amp;#039;sort&amp;#039; for &lt;a href=&quot;https://www.mediawiki.org/wiki/Help:CirrusSearch#Explicit_sort_orders&quot; class=&quot;extiw&quot; title=&quot;mw:Help:CirrusSearch&quot;&gt;Cirrus sort order&lt;/a&gt;. Add example, and explanation in &lt;span class=&quot;autocomment&quot;&gt;Notes: &lt;/span&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;
{{tsh|fstn}}&lt;br /&gt;
{{no subst}}&lt;br /&gt;
{{template rating|beta}}&lt;br /&gt;
Emits a notice intended for Template doc pages with an embedded [[WP:Advanced search|Cirrus link]] to help prospective template users search for [[Wikipedia:Substitution|substed]] examples of the template. Text emitted is configurable.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlc|find substed templates notice}}{{br}}&lt;br /&gt;
{{tlc|fstn|&amp;#039;&amp;#039;Template name&amp;#039;&amp;#039;|sns{{=}}&amp;#039;&amp;#039;search namespace&amp;#039;&amp;#039;|msg{{=}}&amp;#039;&amp;#039;Message&amp;#039;&amp;#039;|lt{{=}}&amp;#039;&amp;#039;anchor&amp;#039;&amp;#039;|after{{=}}&amp;#039;&amp;#039;more text&amp;#039;&amp;#039;|noyears{{=}}yes}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
This template has one positional parameter and six named parameters, all optional:&lt;br /&gt;
&lt;br /&gt;
* {{para|1}} – name of the template, excluding namespace (default: name of the current page; uses [[Help:Magic words#Variables|basepagename]] on /doc pages)&lt;br /&gt;
* {{para|sns}} – search namespace: what namespace to search for the template (default = {{pval|User talk}}; see [[Wikipedia:Namespace|list]])&lt;br /&gt;
*:::the special value {{pval|all}} (i.e., {{para|sns|all}}{{thinspace}}) may be used to search all namespaces simultaneously&lt;br /&gt;
* {{para|ns}} – namespace of the template being searched for; e.g., use {{para|ns|User}} for a userspace template; (default: {{pval|Template}}{{hairspace}})&lt;br /&gt;
* {{para|msg}} – message to display before the [[WP:Advanced search|Cirrus link]] (default = &amp;#039;Find subst count and examples of this template on User talk pages using&amp;#039;)&lt;br /&gt;
* {{para|lt}} – link text to display; (default: &amp;#039;this advanced search link&amp;#039;)&lt;br /&gt;
* {{para|after}} – text to append after the Cirrus link (default = &amp;#039;&amp;#039;&amp;lt;small&amp;gt;&amp;#039;(Patience; this may take a while.)&amp;#039;&amp;lt;/small&amp;gt;&amp;#039;&amp;#039;)&lt;br /&gt;
*:::the special value {{pval|no}} (i.e., {{para|after|no}}{{thinspace}}) may be used to suppress the text after the link.)&lt;br /&gt;
* {{para|noyears}} – set to {{pval|yes}} to disable search-by-year links. See {{slink||Search by year issues}}.&lt;br /&gt;
* {{para|sort}} – [[mw:Help:CirrusSearch#Explicit sort orders|Cirrus sort order]]; (optional; default: {{pval|relevance}})&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{hatnote|Note: example 1 should return no results, as this template is not substed.}}&lt;br /&gt;
* {{tlg|find substed templates notice|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Find substed templates notice|uw-vandalism4|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Find substed templates notice|Notified|sns{{=}}Talk|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|Find substed templates notice|Notified|sns{{=}}Wikipedia|noyears{{=}}yes|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|find substed templates notice|uw-spam4im|msg{{=}}Find examples at|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|fstn|welcome mentee|sort{{=}}last_edit_desc|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|fstn|polltop|msg{{=}}Find examples at|after{{=}}no|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|fstn|RFDNote|msg{{=}}See examples|lt{{=}}here|after{{=}}no|sns{{=}}Help talk|noyears{{=}}y|code=y|_show_result=y}}&lt;br /&gt;
* {{tlg|fstn|welcome-retro|code=y|_show_result=y}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
In most cases, this template should be used with no parameters, unless you are altering the message or link text. The {{slink||Examples}} above use parameter 1 so they can run on this doc page, but normally you would not need it. Param 1, explained [[#Parameters|§&amp;amp;nbsp;above]] as the &amp;quot;name of the template&amp;quot;, is in reality the value of the hidden tag at the end of the template. Since the two are invariably the same, you don&amp;#039;t need to include it, except in very rare cases; see {{slink||False positives and negatives}}.&lt;br /&gt;
&lt;br /&gt;
=== Method ===&lt;br /&gt;
This template cannot find all substed templates. It depends upon a convention used in some templates of having the template name substed onto the page embedded in an [[HTML comment]]. The last example above, for example, depends upon finding the string &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!-- Template:Welcome-retro --&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; substed onto the page. There can be any number of blanks–including none–between the template name and the [[HTML comment]] delimiters at each end, and there can be two, or three hyphens in each delimiter. Templates which are substed but which do not follow this convention cannot be found by this template.&lt;br /&gt;
&lt;br /&gt;
=== Sorting ===&lt;br /&gt;
You can use the optional {{para|sort}} param to alter the [[mw:Help:CirrusSearch#Explicit sort orders|Cirrus sort order]]. For example, using {{para|sort|last_edit_esc}} is an option, but note that it applies to the whole page, not the date of the warning message. Another useful one may be {{pval|title_natural_asc}}, which will order the results in alphabetical order of username; this means all the [[WP:TA|temporary accounts]] will be shown first.&lt;br /&gt;
This sort value may be more useful for templates that are not usually placed on TAs, like [[Wikipedia:Welcoming committee/Welcome templates|Welcome templates]]. The default Cirrus order if you don&amp;#039;t specify a value is {{pval|relevance}}.&lt;br /&gt;
&lt;br /&gt;
=== Performance and timeout ===&lt;br /&gt;
The search link in {{str rep|{{Excerpt|Template:Find substed/doc|Performance and timeout|hat=no|inline=yes}}|This template|this template}}&lt;br /&gt;
&lt;br /&gt;
=== False positives and negatives ===&lt;br /&gt;
{{Excerpt|Template:Find substed/doc|False positives and negatives|hat=no|inline=yes}}&lt;br /&gt;
&lt;br /&gt;
=== Search by year issues ===&lt;br /&gt;
&lt;br /&gt;
Successful display of accurate results using the search-by-year links depends on the appearance of the year as part of the date timestamp included in a [[WP:SIG|signature]] which appears after the hidden template id. This template cannot find substed templates in a given year that contain no signature, or which contain a signature without a timestamp, or which contain extraneous information between the hidden template id and the dated signature. Because pages in [[WP:subject namespace|subject namespaces]] generally contain no signature, it usually does not make sense to display the by-year links when parameter {{para|sns}} is present and specifies any subject namespace, with the exception of noticeboards and other boards like [[WP:Xfd]] in [[Wikipedia:Project namespace|project space]] which typically do contain dated signatures. The search-by-year links are on by default, but may be disabled using {{para|noyears|yes}}.&lt;br /&gt;
&lt;br /&gt;
The search string used to find templates substed in a given year depends on the hidden template name string at the end of the template, and on a signature containing the date following it, in that order, with no intervening newline. A very few templates include both elements but in the reverse order, with the timestamped signature first and the hidden template id afterward. Such templates, such as [[WP:Teahouse/Invitation2]], {{tl|Notified}}, and some auto-sig templates cannot be found for a given year by this template, but they are few. They can still be searched without a year specified, so using {{para|noyears|yes}} is best in these cases.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
{{notelist}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Emits a notice with an embedded Cirrus link to help find substed templates; intended for Template doc pages.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Template&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the template to search for (without the namespace)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;Current pagename&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;sns&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Search namespace&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;what namespace to search for the template in (&amp;#039;all&amp;#039; searches all namespaces)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;User talk&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;msg&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Message&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Message to display before the Cirrus link&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;Find examples of this template substed onto User talk pages using&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;lt&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Link text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Link text to display underlying the Cirrus link&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;this advanced search link&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;after&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;After&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;text to append after the Cirrus link (&amp;#039;no&amp;#039; suppresses the text)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;(Patience; this may take a while.)&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;noyears&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;No years&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;suppress display of by-year search links&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Find substed}}&lt;br /&gt;
* {{tl|Single notice}}&lt;br /&gt;
* {{tl|Templates notice}}&lt;br /&gt;
* [[Wikipedia:Template index/User talk namespace]]&lt;br /&gt;
* [[Wikipedia:Welcoming committee/Welcome templates]]&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
[[Category:Documentation shared content templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Mathglot</name></author>
	</entry>
</feed>