MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/API

action=sitematrix (sm)

(main | sitematrix)
  • このモジュールは読み取りの権限を必要とします。
  • Source: SiteMatrix
  • License: GPL-2.0+

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.

パラメーター:
smtype

Filter the Site Matrix by type:

special
One off and multilingual Wikimedia projects.
language
Wikimedia projects under this language code.
値 (|もしくは別の文字列で区切る): speciallanguage
既定値: special|language
smstate

Filter the Site Matrix by wiki state:

値 (|もしくは別の文字列で区切る): allclosedprivatefishbowlnonglobal
既定値: all
smlangprop

Which information about a language to return.

値 (|もしくは別の文字列で区切る): codenamesitelocalname
既定値: code|name|site|localname
smsiteprop

Which information about a site to return.

値 (|もしくは別の文字列で区切る): urldbnamecodesitename
既定値: url|dbname|code|sitename
smlimit

結果の最大数。

No more than 5,000 (5,000 for bots) allowed.
Type: integer or max
既定値: 5000
smcontinue

When more results are available, use this to continue.

例:
サイトのマトリックスを表示
api.php?action=sitematrix [サンドボックスで開く]