MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "expandtemplates": {
            "*": "Because \"prop\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "expandtemplates": {
        "*": "[[:\u6a21\u677f:Please leave this line alonr and write below (this is the coloured heading)]]\n\n{{#categorytreee: test | data-/onclick=alert(\"#categorytree\")}}\n\n<syntaxhighlight data- onclick=\"alert(&quot;tag:syntaxhighlight&quot;)\"> 123 </syntaxhighlight>\n\n<poem data- onclick=\"alert &quot;poem&quot;\"> poem </poem>\n\n<poem data-&gt;&lt;/div&gt;&lt;script&gt;alert(123)&lt;/script&gt;=\"1\"> poem </poem>"
    }
}