跳转到内容

Template:Find page text

本页使用了标题或全文手工转换
维基百科,自由的百科全书
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]


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.

本模板於2024年5月26日 (日) 01:38 (UTC)通過議案Special:Diff/82782106設立。

參數[编辑]

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.

範例[编辑]

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.

參見[编辑]