MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

meta=allmessages (am)

main | query | allmessages
  • 此模块需要读取权限。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0+

返回来自该网站的消息。

参数:
ammessages

要输出的消息。*(默认)表示所有消息。

通过“|”隔开各值。 值的最高数字是50(对于机器人则是500)。
默认:*
amprop

要获取的属性。

值(以|分隔):default
amenableparser

Set to enable parser, will preprocess the wikitext of message (substitute magic words, handle templates, etc.).

类型:布尔值(详细信息
amnocontent

If set, do not include the content of the messages in the output.

类型:布尔值(详细信息
amincludelocal

Also include local messages, i.e. messages that don't exist in the software but do exist as a MediaWiki: page. This lists all MediaWiki: pages, so it will also list those that aren't really messages such as Common.js.

类型:布尔值(详细信息
amargs

要替代进消息的参数。

通过“|”隔开各值。 值的最高数字是50(对于机器人则是500)。
amfilter

只返回名称包含此字符串的消息。

amcustomised

只返回在此定制情形下的消息。

以下值中的一个:all、modified、unmodified
默认:all
amlang

返回这种语言的信息。

amfrom

从此消息开始返回消息。

amto

返回消息至此消息为止。

amtitle

Page name to use as context when parsing message (for amenableparser option).

amprefix

返回带有该前缀的消息。

例子:
显示以ipb-开始的消息。
api.php?action=query&meta=allmessages&amprefix=ipb-
显示德语版的augustmainpage消息。
api.php?action=query&meta=allmessages&ammessages=august|mainpage&amlang=de