MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

list=prefixsearch (ps)

main | query | prefixsearch
  • 此模块需要读取权限。
  • 此模块可作为发生器使用。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0+

为页面标题执行前缀搜索。

Despite the similarity in names, this module is not intended to be equivalent to Special:PrefixIndex; for that, see action=query&list=allpages with the apprefix parameter. The purpose of this module is similar to action=opensearch: to take user input and provide the best-matching titles. Depending on the search engine backend, this might include typo correction, redirect avoidance, or other heuristics.

参数:
pssearch

搜索字符串。

这个参数是必须的。
psnamespace

搜索的名字空间。

值(以|分隔):0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、100、101、102、103、104、105、106、107、110、111
默认:0
pslimit

要返回的结果最大数。

不允许超过100个(对于机器人则是200个)。
类型:整数或max
默认:10
psoffset

跳过的结果数。

类型:整数
默认:0
例子:
搜索以meaning开头的页面标题。
api.php?action=query&list=prefixsearch&pssearch=meaning [在沙盒中打开]