MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20251215030454|648",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 660,
                "ns": 8,
                "title": "MediaWiki:Mobile.css",
                "pageid": 645,
                "logpage": 645,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-19T07:51:29Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u653e\u7f6e\u7684CSS\u5c06\u5e94\u7528\u4e8e\u79fb\u52a8\u7248\u7f51\u7ad9 */ /* \u7f51\u7ad9\u516c\u544a\u7684 CSS - \u79fb\u52a8\u7aef\u548c\u684c\u9762\u7aef\u901a\u7528 */  #siteNoticeScroll {     width: 100%;     height: 25px;     line-height: 25px;     overflow: hidden;     text-align: center;     margin-bottom: 0.25em;     position: relative; }  #siteNoticeScroll ul {     height: 25px;     line-height: 25px;     margin: 0;     padding: 0;     list-style: none;     -webkit-transition: margin-left 0.73s ease-in-out;     -m\u2026\u201d"
            },
            {
                "logid": 659,
                "ns": 8,
                "title": "MediaWiki:Mobile.js",
                "pageid": 644,
                "logpage": 644,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-19T07:50:36Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u7684\u4efb\u4f55JavaScript\u5c06\u4e3a\u4f7f\u7528\u79fb\u52a8\u7248\u7f51\u7ad9\u7684\u7528\u6237\u52a0\u8f7d */ (function() {     'use strict';          // \u521d\u59cb\u5316\u516c\u544a\u6eda\u52a8     function initSiteNoticeScroll() {         var self = $('#siteNoticeScroll');         if (!self.length || !self[0]) return;                  var ul = self.find('ul:first');         if (!ul.length) return;                  var lis = ul.find('li');         if (lis.length <= 1) return; // \u5982\u679c\u53ea\u6709\u4e00\u4e2a\u6216\u6ca1\u6709\u9879\u76ee\u2026\u201d"
            },
            {
                "logid": 658,
                "ns": 6,
                "title": "\u6587\u4ef6:Logo.png",
                "pageid": 643,
                "logpage": 643,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:39:38Z",
                "comment": ""
            },
            {
                "logid": 657,
                "ns": 6,
                "title": "\u6587\u4ef6:Logo.png",
                "pageid": 643,
                "logpage": 643,
                "params": {
                    "img_sha1": "edlom2ekxcmzottfvmt1t3ejdzt0z9e",
                    "img_timestamp": "2025-12-15T03:39:38Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "Admin",
                "timestamp": "2025-12-15T03:39:38Z",
                "comment": ""
            },
            {
                "logid": 654,
                "ns": 10,
                "title": "\u6a21\u677f:\u9996\u9875/styles.css",
                "pageid": 642,
                "logpage": 642,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:29:41Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */ .mainpage_row { \tdisplay: flex; \tflex-direction: row; \tflex-flow: row wrap; \tjustify-content: space-between; \tpadding: 0; \tgap: 10px; \tmargin-top: 10px; \tmargin-bottom: 10px; /* eliminated by margin collapse on adjacent rows */ } .mainpage_box { \tflex: 1; \tmin-width: 210px; \tborder: 1px solid #a2a9b1; \tpadding: 0 10px 10px 10px; \tbox-shadow: 0 2px 2px rgba( 0, 0, 0, 0.2 );\u2026\u201d"
            },
            {
                "logid": 653,
                "ns": 8,
                "title": "MediaWiki:Gadget-scrollUpButton.js",
                "pageid": 641,
                "logpage": 641,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:07:54Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/**  * Copyright (c) 2021-present, \u5b89\u5fc6.  *  * @author \u5b89\u5fc6 [[zh:U:\u5b89\u5fc6]]  * @file scrollUpButton.js  * @license GPL v3  */ $(function scrollUpButton() {   var $window = $(window);   var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';   if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1')) {     scrollButtonIcon = '//upload.wikimedia.org/wikipedia/com\u2026\u201d"
            },
            {
                "logid": 652,
                "ns": 8,
                "title": "MediaWiki:Gadget-Edittools.js",
                "pageid": 640,
                "logpage": 640,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:07:18Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/**  * EditTools support: add a selector, change <a> into buttons.  * The special characters to insert are defined at [[MediaWiki:Edittools]].  *  * @author Arnomane, 2006 (on the commons.wikimedia.org/wiki/MediaWiki:Edittools.js)  * @author Kaganer, 2007 (adapting to www.mediawiki.org)  * @author Krinkle, 2012  * @source www.mediawiki.org/wiki/MediaWiki:Gadget-Edittools.js  * @revision 2019-12-17  */ /*jslint browser: true*/ /*global jQuery, mediaWiki*/ (funct\u2026\u201d"
            },
            {
                "logid": 651,
                "ns": 8,
                "title": "MediaWiki:Gadgets-definition",
                "pageid": 639,
                "logpage": 639,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:06:42Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c== editing-gadgets == * Edittools[ResourceLoader|default|actions=edit]|Edittools.js == \u4e0a\u4e0b\u6309\u94ae == * scrollUpButton[ResourceLoader|default]|scrollUpButton.js\u201d"
            },
            {
                "logid": 650,
                "ns": 8,
                "title": "MediaWiki:Sitenotice",
                "pageid": 638,
                "logpage": 638,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:06:17Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c- <p style=\"font-size: 16px; color: red;\" align=\"center\">\u70bc\u77f3\u5c31\u662f\u6570\u636e\u5b89\u5168\uff01</p> <div id=\"siteNoticeScroll\"> <ul> <li>\u6211\u4eec\u76ee\u524d\u6709{{NUMBEROFPAGES}}\u4e2a\u9875\u9762\uff0c{{NUMBEROFUSERS}}\u4e2a\u7528\u6237\uff0c{{NUMBEROFEDITS}}\u6b21\u7f16\u8f91\u3002</li> <li id=\"userPrompt\"></li> </ul> </div>\u201d"
            },
            {
                "logid": 649,
                "ns": 8,
                "title": "MediaWiki:Common.css",
                "pageid": 637,
                "logpage": 637,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Admin",
                "timestamp": "2025-12-15T03:05:28Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c/* \u8fd9\u91cc\u653e\u7f6e\u7684CSS\u5c06\u5e94\u7528\u4e8e\u6240\u6709\u76ae\u80a4 */ /* \u7f51\u7ad9\u516c\u544a\u7684css */ #siteNoticeScroll {     width: 100%;     height: 25px;     line-height: 25px;     overflow: hidden;     text-align: center;     margin-bottom: 0.25em; }  #siteNoticeScroll ul {     height: 25px;     line-height: 25px;     -webkit-transition: margin .73s ease-in-out;     -moz-transition: margin .73s ease-in-out;     transition: margin .73s ease-in-out; }  #siteNoticeScroll li {     height:\u2026\u201d"
            }
        ]
    }
}