Jump to content

Template:Find page text

From Elite Dangerous Wiki
Revision as of 23:48, 11 August 2025 by Wikipedia>Pppery (Move to Module:String, since the transclusion count of Module:String2 is hovering around the point where I want to consider full protecting due to risk level)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Find page text/doc" to edit its documentation if it is available. (How does this work?)

Wrapper for findpagetext function in Module:String.

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 river or River. The last example finds {{coord or {{Coord. The penultimate example finds a wiki-link.

See also