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/Special:MyLanguage/API:Main_page
action=sitematrix (sm)
(main | sitematrix)
- Ez a modul olvasási jogot igényel.
- Forrás: SiteMatrix
- Licenc: GPL-2.0-or-later
Get Wikimedia sites list.
The code (technically dbname/wikiid) is either the language code + project code for content projects or the subdomain + main domain for all the others.
Jellemző paraméterek:
Other general parameters are available.
- smtype
Filter the Site Matrix by type:
- special
- One off and multilingual Wikimedia projects.
- language
- Wikimedia projects under this language code.
- Értékek (elválasztó: | vagy más): language, special
- Alapértelmezett: special|language
- smstate
Filter the Site Matrix by wiki state.
- Értékek (elválasztó: | vagy más): all, closed, fishbowl, nonglobal, private
- Alapértelmezett: all
- smlangprop
Which information about a language to return.
- Értékek (elválasztó: | vagy más): code, dir, localname, name, site
- Alapértelmezett: code|name|site|dir|localname
- smsiteprop
Which information about a site to return.
- Értékek (elválasztó: | vagy más): code, dbname, lang, sitename, url
- Alapértelmezett: url|dbname|code|sitename
- smlimit
Maximum number of results.
- Típus: egész vagy max
- Az értéknek 1 és 5 000 között kell lennie.
- Alapértelmezett: 5000
- smcontinue
Ha további eredmények érhetők el, használd ezt a folytatáshoz. További részletekért lásd: lekérdezések folytatása (mediawiki.org).
Példa:
- Show the site matrix
- api.php?action=sitematrix [megnyitás a homokozóban]