MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

action=opensearch

(main | opensearch)
  • Ez a modul olvasási jogot igényel.
  • Forrás: MediaWiki
  • Licenc: GPL-2.0+

Search the wiki using the OpenSearch protocol.

Paraméterek:
search

Search string.

limit

Találatok maximális száma.

Nem engedélyezett több mint 100 (botoknak 100).
Típus: egész vagy max
Default: 10
namespace

Namespaces to search.

Értékek (elválasztó: |): 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
Default: 0
suggest

Do nothing if $wgEnableOpenSearchSuggest is false.

Típus: logikai (részletek)
redirects

How to handle redirects:

return
Return the redirect itself.
resolve
Return the target page. May return fewer than limit results.

For historical reasons, the default is "return" for format=json and "resolve" for other formats.

A következő értékek egyike: return, resolve
format

The format of the output.

A következő értékek egyike: json, jsonfm, xml, xmlfm
Default: json
warningsaserror

If warnings are raised with format=json, return an API error instead of ignoring them.

Típus: logikai (részletek)
Example:
Find pages beginning with Te.
api.php?action=opensearch&search=Te [open in sandbox]
A lap eredeti címe: „https://hu.opensuse.org/Speciális:ApiHelp