Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/API
meta=messagegroups (mg)
- Этот модуль требует прав на чтение.
- Источник: Перевести
- Лицензия: GPL-2.0-or-later
Получить информацию о группах сообщений.
Учтите, что параметр uselang влияет на вывод языкозависимых частей.
- mgdepth
When using the tree format, limit the depth to this many levels. Value 0 means that no subgroups are shown. If the limit is reached, the output includes a "groupcount" value, which states the number of direct children.
- Тип: целое число
- По умолчанию: 100
- mgfilter
Only return messages with IDs that match one or more of the inputs given (case-insensitive, separated by pipes, * wildcard).
- Разделяйте значения с помощью | или альтернативного разделителя. Максимально разрешённое количество значений — 50 (500 для ботов).
- По умолчанию: (пусто)
- mgformat
In the tree format message groups can exist in multiple places in the tree.
- Одно из следующих значений: flat, tree
- По умолчанию: flat
- mgiconsize
Preferred size of rasterised group icon.
- Тип: целое число
- По умолчанию: 64
- mgprop
What translation-related information to get:
- id
- Include ID of the group.
- label
- Include label of the group.
- description
- Include description of the group.
- class
- Include class name of the group.
- namespace
- Include namespace of the group. Not all groups belong to a single namespace.
- exists
- Include self-calculated existence property of the group.
- icon
- Include URLs to icon of the group.
- priority
- Include priority status like discouraged.
- prioritylangs
- Include preferred languages. If not set, this returns false.
- priorityforce
- Include priority status - is the priority languages setting forced.
- workflowstates
- Include the workflow states for the message group.
- Значения (разделённые с помощью | или альтернативного разделителя): id, label, description, class, namespace, exists, icon, priority, prioritylangs, priorityforce, workflowstates
- По умолчанию: id|label|description|class|exists
- mgroot
When using the tree format, instead of starting from top level start from the given message group, which must be an aggregate message group. When using flat format only the specified group is returned.
- По умолчанию: (пусто)
- Показать группы сообщений
- api.php?action=query&meta=messagegroups [открыть в песочнице]