MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "logevents": [
            {
                "logid": 8,
                "ns": 10,
                "title": "\u6a21\u677f:SidebarColumns",
                "pageid": 7,
                "logpage": 7,
                "revid": 15,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:43:56Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<div style=\"   width: 66%;   float: {{{position|right}}};   border: 2px solid #000;   background-color: #ececee;   padding: 10px;   box-sizing: border-box;   margin: 0 0 10px 10px; \"> '''{{{title|\u8fb9\u680f\u6807\u9898}}}'''  <div style=\"   display: flex;   flex-wrap: wrap;   margin-top: 5px;   gap: 10px; \">   <!-- \u52171 -->   <div style=\"flex: 1 1 30%;\">     {{{col1|}}}   </div>   <!-- \u52172 -->   <div style=\"flex: 1 1 30%;\">     {{{col2|}}}   </div>   <!-- \u52173 -->   <di\u2026\u201d"
            },
            {
                "logid": 7,
                "ns": 10,
                "title": "\u6a21\u677f:SidebarContainer",
                "pageid": 6,
                "logpage": 6,
                "revid": 12,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:37:48Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<div style=\"   width: 32%;   float: {{{position|right}}};   border: 2px solid #000;  /* \u9ed1\u8272\u8fb9\u6846 */   background-color: #ececee; /* \u6de1\u84dd\u8272\u80cc\u666f */   padding: 10px;   margin: 0 0 10px 10px;   box-sizing: border-box; \"> '''{{{title|\u8fb9\u680f\u6807\u9898}}}''' <div style=\"margin-top: 5px;\"> {{{content|\u8fd9\u91cc\u653e\u5185\u5bb9}}} </div> </div>  <div style=\"clear: both;\"></div>\u201d"
            },
            {
                "logid": 6,
                "ns": 6,
                "title": "\u6587\u4ef6:255px-Gamelogo-vintagestory.png",
                "pageid": 5,
                "logpage": 5,
                "revid": 7,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:15:53Z",
                "comment": "\u8fd9\u4e2a\u662f\u590d\u53e4\u7269\u8bed\u5b98\u65b9\u6e38\u620flogo\uff0c\u7248\u6743\u5f52\u590d\u53e4\u7269\u8bed\u6240\u6709\uff0c\u6765\u6e90\u8def\u5f84\uff1ahttps://wiki.vintagestory.at/Main_Page"
            },
            {
                "logid": 5,
                "ns": 6,
                "title": "\u6587\u4ef6:255px-Gamelogo-vintagestory.png",
                "pageid": 5,
                "logpage": 5,
                "revid": 7,
                "params": {
                    "img_sha1": "eei3dw2tc7ku472g4yqbafmo9nfmy5e",
                    "img_timestamp": "2026-03-27T04:15:53Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:15:53Z",
                "comment": "\u8fd9\u4e2a\u662f\u590d\u53e4\u7269\u8bed\u5b98\u65b9\u6e38\u620flogo\uff0c\u7248\u6743\u5f52\u590d\u53e4\u7269\u8bed\u6240\u6709\uff0c\u6765\u6e90\u8def\u5f84\uff1ahttps://wiki.vintagestory.at/Main_Page"
            },
            {
                "logid": 4,
                "ns": 10,
                "title": "\u6a21\u677f:CC-by-sa-2.5",
                "pageid": 4,
                "logpage": 4,
                "revid": 6,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:15:39Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c\u60a8\u53ef\u4ee5\u81ea\u7531\u5730\uff1a      \u5171\u4eab \u2014 \u5728\u4efb\u4f55\u5a92\u4ecb\u4ee5\u4efb\u4f55\u5f62\u5f0f\u590d\u5236\u3001\u53d1\u884c\u672c\u4f5c\u54c1     \u6f14\u7ece \u2014 \u4fee\u6539\u3001\u8f6c\u6362\u6216\u4ee5\u672c\u4f5c\u54c1\u4e3a\u57fa\u7840\u8fdb\u884c\u521b\u4f5c     \u53ea\u8981\u4f60\u9075\u5b88\u8bb8\u53ef\u534f\u8bae\u6761\u6b3e\uff0c\u8bb8\u53ef\u4eba\u5c31\u65e0\u6cd5\u6536\u56de\u4f60\u7684\u8fd9\u4e9b\u6743\u5229\u3002  \u60df\u987b\u9075\u5b88\u4e0b\u5217\u6761\u4ef6\uff1a      \u7f72\u540d \u2014 \u60a8\u5fc5\u987b\u7ed9\u51fa\u9002\u5f53\u7684\u7f72\u540d\uff0c\u63d0\u4f9b\u6307\u5411\u672c\u8bb8\u53ef\u534f\u8bae\u7684\u94fe\u63a5\uff0c\u540c\u65f6\u6807\u660e\u662f\u5426\uff08\u5bf9\u539f\u59cb\u4f5c\u54c1\uff09\u4f5c\u4e86\u4fee\u6539\u3002\u60a8\u53ef\u4ee5\u7528\u4efb\u4f55\u5408\u7406\u7684\u65b9\u5f0f\u6765\u7f72\u540d\uff0c\u4f46\u2026\u201d"
            },
            {
                "logid": 3,
                "ns": 8,
                "title": "MediaWiki:Licenses",
                "pageid": 3,
                "logpage": 3,
                "revid": 5,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:12:13Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c* Unknown_copyright|I don't know exactly * Free licenses: ** MW-screenshot|MediaWiki screenshot ** PD|PD: public domain ** CC-by-sa-2.5|Creative Commons Attribution ShareAlike 2.5  ** GPL|GPL: GNU General Public License ** LGPL|LGPL: GNU Lesser General Public License * Non-free license (exception): ** Wikimedia_screenshot|Wikimedia images\u201d"
            },
            {
                "logid": 2,
                "ns": 10,
                "title": "\u6a21\u677f:Messagebox",
                "pageid": 2,
                "logpage": 2,
                "revid": 2,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "HansJack",
                "timestamp": "2026-03-27T04:06:11Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<div style=\"   background-color: {{{bgcol|#f5f0e5}}};   border: {{{border|5px solid black}}};   padding: 15px;   border-radius: 5px;   width: {{{width|100%}}};   display: flex;   gap: 15px;   align-items: flex-start; \">   {{#if:{{{image|}}}|     [[File:{{{image}}}|{{{imagesize|64px}}}|left]]   }}   <div style=\"flex: 1;\">     <h3 style=\"margin-top: 0;\">{{{title|}}}</h3>     <p style=\"margin: 0;\">{{{text|}}}</p>   </div> </div>\u201d"
            },
            {
                "logid": 1,
                "ns": 0,
                "title": "\u9996\u9875",
                "pageid": 1,
                "logpage": 1,
                "revid": 1,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "MediaWiki default",
                "timestamp": "2026-03-25T15:08:13Z",
                "comment": ""
            }
        ]
    }
}