MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"parse": {
"title": "API",
"pageid": 0,
"text": {
"*": "<div class=\"mw-parser-output\"><p><a href=\"/eu4/index.php?title=%E6%A8%A1%E6%9D%BF:Please_leave_this_line_alonr_and_write_below_(this_is_the_coloured_heading)&action=edit&redlink=1\" class=\"new\" title=\"\u6a21\u677f:Please leave this line alonr and write below (this is the coloured heading)\uff08\u9875\u9762\u4e0d\u5b58\u5728\uff09\">\u6a21\u677f:Please leave this line alonr and write below (this is the coloured heading)</a>\n</p><p>{{#categorytreee: test | data-/onclick=alert(\"#categorytree\")}}\n</p>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\"><pre> 123</pre></div>\n<div class=\"poem\">\n<p> poem\n</p>\n</div>\n<div class=\"poem\">\n<p> poem\n</p>\n</div>\n<!-- \nNewPP limit report\nCached time: 20251229125121\nCache expiry: 86400\nReduced expiry: false\nComplications: []\n[SMW] In\u2010text annotation parser time: 0 seconds\nCPU time usage: 0.012 seconds\nReal time usage: 0.020 seconds\nPreprocessor visited node count: 19/1000000\nPost\u2010expand include size: 459/2097152 bytes\nTemplate argument size: 0/2097152 bytes\nHighest expansion depth: 3/40\nExpensive parser function count: 0/100\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 192/5000000 bytes\nExtLoops count: 0\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00% 9.738 1 -total\n100.00% 9.738 1 \u6b27\u9646\u98ce\u4e914:Sandbox\n 13.44% 1.309 1 \u6a21\u677f:Please_leave_this_line_alonr_and_write_below_(this_is_the_coloured_heading)\n-->\n</div>"
},
"langlinks": [],
"categories": [
{
"sortkey": "",
"missing": "",
"*": "\u5b58\u5728\u8bed\u6cd5\u9ad8\u4eae\u9519\u8bef\u7684\u9875\u9762"
}
],
"links": [
{
"ns": 10,
"*": "\u6a21\u677f:Please leave this line alonr and write below (this is the coloured heading)"
}
],
"templates": [
{
"ns": 4,
"exists": "",
"*": "\u6b27\u9646\u98ce\u4e914:Sandbox"
},
{
"ns": 10,
"*": "\u6a21\u677f:Please leave this line alonr and write below (this is the coloured heading)"
}
],
"images": [],
"externallinks": [],
"sections": [],
"parsewarnings": [],
"displaytitle": "API",
"iwlinks": [],
"properties": [
{
"name": "smw-semanticdata-status",
"*": ""
}
]
}
}