Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
list=prefixsearch (ps)
- За овој модул се потребни права на читање.
- Овој модул може да се користи како создавач.
- Извор: MediaWiki
- Лиценца: GPL-2.0+
Perform a prefix search for page titles.
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
Search string.
- Овој параметар е задолжителен.
- psnamespace
Namespaces to search.
- Вредности (одделете ги со |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- To specify all values, use *.
- По основно: 0
- pslimit
Maximum number of results to return.
- Не се допушта повеќе од 500 (5.000 за ботови).
- Тип: цел број или max
- По основно: 10
- psoffset
Употребете го ова за да продолжите кога има повеќе расположиви ставки.
- Тип: цел број
- По основно: 0
Пример:
- Search for page titles beginning with meaning.
- api.php?action=query&list=prefixsearch&pssearch=meaning [open in sandbox]