MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20250413035443|76",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 86,
                "ns": 0,
                "title": "\u4f26\u6566\u5730\u4e0a\u94c1\u5987\u5973\u53c2\u653f\u7ebf",
                "pageid": 60,
                "logpage": 60,
                "revid": 109,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-05-18T03:55:01Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{\u4fe1\u606f\u6846/\u7ebf\u8def|DLC\u5c01\u56fe=London Overground Suffragette line header.jpg|\u5f00\u53d1\u5546=[[\u591a\u4e50\u5802\u6e38\u620f]]|\u53d1\u884c\u65e5\u671f=2024 \u5e74 03 \u6708 20 \u65e5|\u5546\u5e97\u94fe\u63a5=[https://store.steampowered.com/app/2970550 Steam]<br> [https://store.epicgames.com/zh-CN/p/train-sim-world-5--london-overground-suffragette-line-gospel-oak-barking-riverside Epic \u6e38\u620f\u5546\u57ce]<br> [https://www.xbox.com/zh-CN/games/store/train-sim-world-5-london-overground-suffragette-line-gospel-oak-barking-r\u2026\u201d"
            },
            {
                "logid": 85,
                "ns": 10,
                "title": "Template:\u5bfc\u822a\u76d2/\u7ebf\u8def",
                "pageid": 59,
                "logpage": 59,
                "revid": 105,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-05-17T14:09:33Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{\u5bfc\u822a\u76d2 |name  = \u7ebf\u8def |title = \u7ebf\u8def |navbar = plain |state = mw-collapsed  |group1 = \u5965\u5730\u5229 |list1 = {{\u5bfc\u822a\u76d2|child     |group1 = [[\u6a21\u62df\u706b\u8f66\u4e16\u754c4]]     |list1 = [[\u798f\u62c9\u5c14\u8d1d\u683c\u5dde\u57ce\u5e02\u5feb\u94c1]] \u2022 [[\u8428\u5c14\u8328\u5821 - \u7f57\u68ee\u6d77\u59c6\u94c1\u8def]] \u2022 [[\u585e\u9ed8\u7075\u94c1\u8def]]          |group2 = [[\u6a21\u62df\u706b\u8f66\u4e16\u754c5]]     |list2 = [[\u7c73\u6ed5\u74e6\u5c14\u5fb7\u94c1\u8def]] }}  |group2= \u5fb7\u56fd |list2 = {{\u5bfc\u822a\u76d2|child     |group1 = [[\u6a21\u62df\u706b\u8f66\u4e16\u754c2020]]     |list1 =\u2026\u201d"
            },
            {
                "logid": 84,
                "ns": 10,
                "title": "Template:\u9876\u90e8\u4fe1\u606f\u6846",
                "pageid": 58,
                "logpage": 58,
                "revid": 102,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-05-17T13:34:01Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<includeonly> {{\u4fe1\u606f | type = none | class = infobox-incompleted | color = #{{#if:{{{bordercolor|}}}|{{{bordercolor|}}}|}} | leftimage = {{#if:{{{\u56fe\u7247|}}}|[[File:{{{\u56fe\u7247|}}}|{{#ifeq:{{{width|}}}||99px|{{{width|}}}px}}|{{#if:{{{link|}}}|link={{{link|}}}|link=}}]]}} | text-style = color:{{#if:{{{color|}}}|{{{color|}}}|}};{{{text-style|}}} | text = <big>'''<big>{{{\u6807\u9898|'''\u6a21\u62df\u706b\u8f66\u4e16\u754c\u4e2d\u6587\u7ef4\u57fa\u6b22\u8fce\u60a8\u53c2\u4e0e\u5b8c\u5584{{#if:{{{\u6587\u7ae0|}}}|{{{\u6587\u7ae0|}}}|\u2026\u201d"
            },
            {
                "logid": 83,
                "ns": 10,
                "title": "Template:\u4fe1\u606f",
                "pageid": 57,
                "logpage": 57,
                "revid": 101,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-05-17T13:29:47Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<includeonly><div class=\"infoBox {{{class|}}}\" style=\"{{#ifeq:{{{type|}}}|middle|display:flow-root;}}{{#switch:{{{type|none}}}|middle|none={{#if:{{{width|}}}|width:{{{width}}};}}}}max-width:100%;border-left: 10px solid {{{color|#1e90ff}}};\"><div class=\"infoBoxContent\" {{#if:{{{backgroundColor|}}}|style=\"border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};\"}}>{{#if:{{{title|}}}|<div class=\"infoBoxTitle\" style=\"{{{title-style|}}}\">{{{title}}\u2026\u201d"
            },
            {
                "logid": 82,
                "ns": 10,
                "title": "Template:\u4fe1\u606f.css",
                "pageid": 56,
                "logpage": 56,
                "params": {
                    "oldmodel": "wikitext",
                    "newmodel": "sanitized-css"
                },
                "type": "contentmodel",
                "action": "change",
                "user": "Imxiaoanag",
                "timestamp": "2025-05-17T13:29:10Z",
                "comment": ""
            },
            {
                "logid": 81,
                "ns": 10,
                "title": "Template:\u4fe1\u606f.css",
                "pageid": 56,
                "logpage": 56,
                "revid": 99,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-05-17T13:28:33Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c.infoBox {     max-width: 100%;     border-left: 10px solid #1e90ff; /* \u9ed8\u8ba4\u5de6\u4fa7\u8fb9\u6846\u989c\u8272 */     background-color: var(--color-surface-2);     border-radius: 8px;     box-shadow: var(--box-shadow-card);     margin: 1.6rem 0;     overflow: hidden;     display: flex;     align-items: center; /* \u4f7f\u5185\u5bb9\u5782\u76f4\u5c45\u4e2d */ }  .infoBox[style*=\"display:flow-root\"] {     display: flow-root; }  .infoBoxContent {     padding: 1.5rem;     background-color: inherit;\u2026\u201d"
            },
            {
                "logid": 80,
                "ns": 828,
                "title": "Module:Topbar/ombox.css",
                "pageid": 55,
                "logpage": 55,
                "revid": 95,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-04-13T04:05:10Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* {{pp|small=y}} */ .ombox { \tmargin: 4px 0; \tborder-collapse: collapse; \tborder: 1px solid #a2a9b1;    /* Default \"notice\" gray */ \tbackground-color: #f8f9fa; \tbox-sizing: border-box; }  /* For the \"small=yes\" option. */ .ombox.mbox-small { \tfont-size: 88%; \tline-height: 1.25em; }  .ombox-speedy { \tborder: 2px solid #b32424;    /* Red */ \tbackground-color: #fee7e6;    /* Pink */ }  .ombox-delete { \tborder: 2px solid #b32424;    /* Red */ }  .ombox-content {\u2026\u201d"
            },
            {
                "logid": 79,
                "ns": 10,
                "title": "Template:\u4fb5\u6743\u901a\u544a",
                "pageid": 54,
                "logpage": 54,
                "revid": 94,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-04-13T04:00:48Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c{{#invoke:Topbar|main|text=\u672c\u9875\u9762\u6d89\u5acc\u4fb5\u6743\uff0c\u6682\u505c\u7f16\u8f91\u3002}}  <includeonly>[[\u5206\u7c7b:\u5e26\u6709\u9876\u90e8\u4fe1\u606f\u6846\u7684\u9875\u9762]]</includeonly>\u201d"
            },
            {
                "logid": 78,
                "ns": 828,
                "title": "Module:Topbar",
                "pageid": 53,
                "logpage": 53,
                "revid": 93,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Imxiaoanag",
                "timestamp": "2025-04-13T03:56:00Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201clocal p = {} function p.main(frame) \tlocal box = mw.html.create() \t:tag('table') \t:css('margin', '0 10%') \t:addClass('mw-parser-output') \t:addClass('mbox') \tlocal row = box:tag('tr') \tlocal imageLeftCell = row:tag('td'):addClass('mbox-image'):css('padding', '2px 0 2px 0.5em') \timageLeftCell:tag('div'):css('width', '52px'):wikitext(frame.args.image or '[[File:Deutsche Bahn AG Logo.png|52px|link=|alt=]]') \tlocal textCell = row:tag('td'):addClass('mbox-text'):css(\u2026\u201d"
            },
            {
                "logid": 77,
                "ns": 828,
                "title": "Module:SafeCate",
                "pageid": 0,
                "logpage": 50,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "Imxiaoanag",
                "timestamp": "2025-04-13T03:55:16Z",
                "comment": "\u5185\u5bb9\u4e3a\uff1a\u201clocal module = {}  local function _isvalid(value) \treturn value ~= nil and type(value) == \"string\" and mw.text.trim(value) ~= \"\" end  function module.main(frame) \tlocal strict = frame \tlocal parent = frame:getParent() \tif not _isvalid(frame.args[1]) then \t\tif not (parent and _isvalid(parent.args[1])) then return end \t\tlocal title = parent:getTitle() \t\tif title == \"T\u2026\u201d\uff0c\u552f\u4e00\u8d21\u732e\u8005\u662f\u201c[[Special:Contributions/Imxiaoanag|Imxiaoanag]]\u201d\uff08[[User talk:Imxiaoanag|\u8ba8\u8bba]]\uff09"
            }
        ]
    }
}