Template:Find page text/doc

Wrapper for findpagetext function in Module:String2.

Template:Find page text returns the position of a piece of text in the wikitext source of a page.

Parameters
The template takes up to four parameters:
 * 1 or text is the text to be searched for.
 * Optional parameter title is the page title, defaults to the current page.
 * Optional parameter plain is either true for a plain search (default), or false for a Lua pattern search.
 * Optional parameter nomatch is the value returned when no match is found; default is nothing.

Examples
The search is case-sensitive, so Lua pattern matching is needed to find  or. The last example finds  or. The penultimate example finds a wiki-link.
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}
 * {{tlx|Find page text |text{{=}}%{%{[Cc]oord |title{{=}}Boston Bridge |plain{{=}}f}} → {{Find page text |text=%{%{coord |title=Boston Bridge |plain=f}}