MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=messagecollection (mc)

(main | query | messagecollection)
  • This module requires read rights.
  • This module can be used as a generator.
  • Source: Translate
  • License: GPL-2.0-or-later

Query MessageCollection about translations.

Parameters:
mcgroup

กลุ่มข้อความ

This parameter is required.
mclanguage

รหัสภาษา

Default: en
mclimit

How many messages to show (after filtering).

No more than 5,000 (5,000 for bots) allowed.
Type: integer or max
Default: 500
mcoffset

เมื่อมีผลลัพธ์เพิ่มเติมพร้อมใช้งาน ใช้ตัวเลือกนี้เพื่อดำเนินการต่อ

Default: (empty)
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.
Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
Default: !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
Deprecated! Use mcprop=properties.
Values (separate with | or alternative): definition, translation, tags, revision, properties
Default: definition|translation
Examples:
รายชื่อภาษาที่รองรับ
api.php?action=query&meta=siteinfo&siprop=languages [open in sandbox]
List of non-optional message definitions for the group "page-Example"
api.php?action=query&list=messagecollection&mcgroup=page-Example [open in sandbox]
List of optional messages in Finnish with tags for the group "page-Example"
api.php?action=query&list=messagecollection&mcgroup=page-Example&mclanguage=fi&mcprop=definition|translation|tags&mcfilter=optional [open in sandbox]
More information about latest translation revisions for the group "page-Example"
api.php?action=query&generator=messagecollection&gmcgroup=page-Example&gmclanguage=nl&prop=revisions [open in sandbox]
ดึงข้อมูลจาก "https://wiki.thnic.or.th/th/พิเศษ:ApiHelp"