<?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_page_text%2Fdoc</id>
	<title>Template:Find page text/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_page_text%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Find_page_text/doc&amp;action=history"/>
	<updated>2026-11-01T15:29:39Z</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_page_text/doc&amp;diff=112322&amp;oldid=prev</id>
		<title>Wikipedia&gt;Pppery: Move to Module:String</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Find_page_text/doc&amp;diff=112322&amp;oldid=prev"/>
		<updated>2025-08-11T23:47:25Z</updated>

		<summary type="html">&lt;p&gt;Move to &lt;a href=&quot;/wiki/Module:String&quot; title=&quot;Module:String&quot;&gt;Module:String&lt;/a&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;
{{High-use}}&lt;br /&gt;
{{lua|Module:String}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
Wrapper for findpagetext function in [[Module:String]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Template:Find page text&amp;#039;&amp;#039;&amp;#039; returns the position of a piece of text in the wikitext source of a page.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
The template takes up to four parameters:&lt;br /&gt;
* {{para|1}} or {{para|text}} is the text to be searched for.&lt;br /&gt;
* Optional parameter {{para|title}} is the page title, defaults to the current page.&lt;br /&gt;
* Optional parameter {{para|plain}} is either true for a plain search (default), or false for a [[mw:Extension:Scribunto/Lua_reference_manual#Patterns|Lua pattern]] search.&lt;br /&gt;
* Optional parameter {{para|nomatch}} is the value returned when no match is found; default is nothing.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
* {{tlx|Find page text |Youghiogheny}} → {{Find page text |Youghiogheny}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}Youghiogheny}} → {{Find page text |text=Youghiogheny}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}Youghiogheny |nomatch{{=}}0}} → {{Find page text |text=Youghiogheny |nomatch=0}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}Youghiogheny |title{{=}}Boston Bridge |nomatch{{=}}not found}} → {{Find page text |text=Youghiogheny |title=Boston Bridge |nomatch=not found}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}river |title{{=}}Boston Bridge}} → {{Find page text |text=river |title=Boston Bridge}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}river |title{{=}}Boston Bridge |nomatch{{=}}not found}} → {{Find page text |text=river |title=Boston Bridge |nomatch=not found}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}[Rr]iver |title{{=}}Boston Bridge |plain{{=}}false |nomatch{{=}}not found}} → {{Find page text |text=[Rr]iver |title=Boston Bridge |plain=false |nomatch=not found}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}%[%[ |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%[%[ |title=Boston Bridge |plain=f}}&lt;br /&gt;
* {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}&lt;br /&gt;
The search is case-sensitive, so Lua pattern matching is needed to find &amp;lt;code&amp;gt;river&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;River&amp;lt;/code&amp;gt;. The last example finds &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{coord&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Coord&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. The penultimate example finds a wiki-link.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{tl|if in page}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Pppery</name></author>
	</entry>
</feed>