MediaWiki API 结果

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

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

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

{
    "problemreportsgetform": {
        "result": "<b class=\"xtop\"><b class=\"xb1\"></b><b class=\"xb2\"></b><b class=\"xb3\"></b><b class=\"xb4\"></b></b><div class=\"r_boxContent\">\n\n<form name=\"reportProblem\" id=\"reportProblem\" method=\"post\" action=\"\">\n\n<input type=\"hidden\" name=\"pr_ns\" value=\"0\" />\n\n<div class=\"reportProblemText\"><p>Most pages on this wiki are editable, and you are welcome to edit the page and correct mistakes yourself!\nIf you need help doing that, see <a href=\"/wiki/Help:Editing\" title=\"Help:Editing\">how to edit</a> and <a href=\"/w/index.php?title=Help:Revert&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"Help:Revert\uff08\u9875\u9762\u4e0d\u5b58\u5728\uff09\">how to revert vandalism</a>.\n</p><p>To contact staff or to report copyright problems, please see <a href=\"http://www.shoutwiki.com/wiki/Special:Contact\" class=\"extiw\" title=\"s:Special:Contact\">ShoutWiki's \"contact us\" page</a>.\n</p><p>Software bugs can be reported on <a class=\"external text\" href=\"https://phabricator.shoutwiki.com\">Phabricator</a>.\nReports made here will be <a href=\"/wiki/Special:ProblemReports\" title=\"Special:ProblemReports\">displayed on the wiki</a>.\n</p></div>\n\n<label for=\"pr_reporter\" class=\"floaty\">\u7528\u6237\u540d\uff1a</label>\n<input id=\"pr_reporter\" name=\"pr_reporter\" type=\"text\" value=\"\" class=\"floaty\" />\n<br class=\"floaty\" />\n\n<label for=\"pr_title\" class=\"floaty\">Title of the page:</label>\n<input name=\"pr_title\" id=\"pr_title\" type=\"text\" value=\"San Francisco\" disabled=\"disabled\" class=\"floaty\" />\n<br class=\"floaty\" />\n\n<label for=\"pr_email\" class=\"floaty\" title=\"visible only to staff\">Email:</label>\n<input id=\"pr_email\" name=\"pr_email\" title=\"visible only to staff\" type=\"text\" value=\"\" class=\"floaty\" />\n<br class=\"floaty\" />\n\n<label for=\"pr_cat\" class=\"floaty\">Subject:</label>\n<select id=\"pr_cat\" class=\"floaty\" style=\"padding:1px 2px\" name=\"pr_cat\">\n\t<option value=\"-\" selected=\"selected\">-- Please select problem type --</option>\n\n<option value=\"0\">there is a spam link here</option><option value=\"1\">this page has been vandalised</option><option value=\"2\">this content is incorrect</option><option value=\"3\">there is a bug in the wiki software</option><option value=\"4\">other</option>\n\n</select>\n<br class=\"floaty\" />\n\n<label for=\"pr_summary\" class=\"floaty\">Message:</label>\n<textarea name=\"pr_summary\" id=\"pr_summary\" rows=\"3\" cols=\"15\"></textarea>\n\n<br class=\"floaty\" />\n\n<div id=\"pr_browser\"></div>\n\n<div style=\"text-align:center; clear: both; padding: 15px 0 5px 0\">\n\t<input type=\"submit\" value=\"\u554f\u984c\u56de\u5831\" id=\"pr_submit\" style=\"font-weight: bolder\" />\n\t<input type=\"button\" value=\"\u53d6\u6d88\" id=\"pr_cancel\" style=\"margin-left: 30px\" />\n</div>\n\n</form><div style=\"clear: both\"></div></div><b class=\"xbottom\"><b class=\"xb4\"></b><b class=\"xb3\"></b><b class=\"xb2\"></b><b class=\"xb1\"></b></b>"
    }
}