MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=messagecollection (mc)
- このモジュールは読み取りの権限を必要とします。
- このモジュールはジェネレーターとして使用できます。
- ソース: 翻訳
- ライセンス: GPL-2.0-or-later
翻訳に関する MessageCollection のクエリを実行。
パラメーター:
Other general parameters are available.
- mcgroup
メッセージ群。
- この変数は必須です。
- mclanguage
言語コード。
- 既定: en
- mclimit
表示するメッセージ件数(絞り込み後)
- 型: 整数または max
- 値は1以上5,000以下です。
- 既定: 500
- mcoffset
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- 既定値: (空)
- mcfilter
Message collection filters. Use ! to negate condition. For example !fuzzy means list only all non-fuzzy messages. Filters are applied in the order given.
- fuzzy
- Messages with fuzzy tag.
- optional
- Messages which should be translated only if changes are necessary.
- ignored
- Messages which are never translated.
- hastranslation
- Messages which have a translation regardless if it is fuzzy or not.
- translated
- Messages which have a translation which is not fuzzy.
- changed
- Messages which have been translated or changed since last export.
- reviewer:N
- Messages where the user number N is among reviewers.
- last-translator:N
- Messages where the user number N is the last translator.
- 複数の値は | または代わりの文字で区切ってください。
- 値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
- 既定: !optional|!ignored
- mcprop
Which properties to get:
- definition
- Message definition.
- translation
- Current translation (without !!FUZZY!! string if any, use the tags to check for outdated or broken translations).
- tags
- Message tags, like optional, ignored and fuzzy.
- properties
- Message properties, like status, revision, last-translator. Can vary between messages.
- revision
- 廃止予定です。 Use mcprop=properties.
- 値 (| または別の文字列で区切る): definition、properties、tags、translation、revision
- 既定: definition|translation
例:
- サポートする言語一覧
- api.php?action=query&meta=siteinfo&siprop=languages [サンドボックスで開く]
- 「group-Example」メッセージ群における必須メッセージ定義の一覧
- api.php?action=query&list=messagecollection&mcgroup=page-Example [サンドボックスで開く]
- 「group-Example」メッセージ群にタグ付けされたフィンランド語の選択メッセージの一覧
- api.php?action=query&list=messagecollection&mcgroup=page-Example&mclanguage=fi&mcprop=definition|translation|tags&mcfilter=optional [サンドボックスで開く]
- 「group-Example」メッセージ群における翻訳の最近の更新の詳細
- api.php?action=query&generator=messagecollection&gmcgroup=page-Example&gmclanguage=nl&prop=revisions [サンドボックスで開く]