راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

meta=messagegroups (mg)

(main | query | messagegroups)
  • این پودمان نیازمند اختیارات خواندن است.
  • منبع: ترجمه
  • مجوز: GPL-2.0-or-later

بازگردانی اطلاعات درباره گروه‌های پیام

Note that the uselang parameter affects the output of language dependent parts.

پارامترها:
Other general parameters are available.
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).

Separate values with | or alternative.
حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیت‌های بالاتر را دارند).
پیش‌فرض: (خالی)
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.
sourcelanguage
Include the source language for the message group.
مقدارهای (جداشده با | یا جایگزین‌های آن): class، description، exists، icon، id، label، namespace، priority، priorityforce، prioritylangs، sourcelanguage، 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.

پیش‌فرض: (خالی)
mglanguageFilter

Only return message groups that can be translated to the given language.

پیش‌فرض: (خالی)