Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
list=search (sr)
- За овој модул се потребни права на читање.
- Овој модул може да се користи како создавач.
- Извор: MediaWiki
- Лиценца: GPL-2.0-or-later
Perform a full text search.
- srsearch
Search for page titles or content matching this value. You can use the search string to invoke special search features, depending on what the wiki's search backend implements.
- Овој параметар е задолжителен.
- srnamespace
Пребарување само во овие именски простори.
- Вредности (одделете ги со | или алтернатива): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2300, 2301, 2302, 2303
- To specify all values, use *.
- По основно: 0
- srlimit
Колку вкупно страници да се дадат.
- Тип: цел број или max
- Вредноста мора да изнесува помеѓу 1 и 500.
- По основно: 10
- sroffset
Употребете го ова за да продолжите кога има повеќе расположиви ставки.
- Вид: цел број
- По основно: 0
- srwhat
Which type of search to perform.
- Една од следниве вредности: nearmatch, text, title
- srinfo
Кои метаподатоци да се дадат.
- Вредности (одделете ги со | или алтернатива): rewrittenquery, suggestion, totalhits
- По основно: totalhits|suggestion|rewrittenquery
- srprop
Кои својства да се дадат:
- size
- Adds the size of the page in bytes.
- wordcount
- Adds the word count of the page.
- timestamp
- Adds the timestamp of when the page was last edited.
- snippet
- Adds a snippet of the page, with query term highlighting markup.
- titlesnippet
- Adds the page title, with query term highlighting markup.
- redirecttitle
- Adds the title of the matching redirect.
- redirectsnippet
- Adds the title of the matching redirect, with query term highlighting markup.
- sectiontitle
- Adds the title of the matching section.
- sectionsnippet
- Adds the title of the matching section, with query term highlighting markup.
- isfilematch
- Adds a boolean indicating if the search matched file content.
- categorysnippet
- Adds the matching category name, with query term highlighting markup.
- score
- Застарен. Занемарено.
- hasrelated
- Застарен. Занемарено.
- extensiondata
- Adds extra data generated by extensions.
- Вредности (одделете ги со | или алтернатива): categorysnippet, extensiondata, isfilematch, redirectsnippet, redirecttitle, sectionsnippet, sectiontitle, size, snippet, timestamp, titlesnippet, wordcount, hasrelated, score
- По основно: size|wordcount|timestamp|snippet
- srinterwiki
Include interwiki results in the search, if available.
- Type: boolean (details)
- srenablerewrites
Enable internal query rewriting. Some search backends can rewrite the query into another which is thought to provide better results, for instance by correcting spelling errors.
- Type: boolean (details)
- srsort
Set the sort order of returned results.
- Една од следниве вредности: relevance
- По основно: relevance
- Побарај meaning.
- api.php?action=query&list=search&srsearch=meaning [open in sandbox]
- Побарај го meaning по текстовите.
- api.php?action=query&list=search&srwhat=text&srsearch=meaning [open in sandbox]
- Дај информации за страниците што излегуваат во исходот од пребарувањето на meaning.
- api.php?action=query&generator=search&gsrsearch=meaning&prop=info [open in sandbox]