MediaWiki API 結果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{ "batchcomplete": "", "query": { "pages": { "-1": { "ns": 0, "title": "Main Page", "missing": "" } }, "general": { "mainpage": "\u9996\u9801", "base": "http://science4everyone.net/MediaWiki/index.php?title=%E9%A6%96%E9%A0%81", "sitename": "\u5168\u6c11\u79d1\u5b78\u5e73\u53f0", "logo": "http://science4everyone.net/MediaWiki/resources/assets/logo.png", "generator": "MediaWiki 1.30.0", "phpversion": "7.3.33", "phpsapi": "cgi-fcgi", "dbtype": "mysql", "dbversion": "5.5.28-log", "imagewhitelistenabled": "", "langconversion": "", "titleconversion": "", "linkprefixcharset": "", "linkprefix": "", "linktrail": "/^()(.*)$/sD", "legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+", "invalidusernamechars": "@:", "fixarabicunicode": "", "fixmalayalamunicode": "", "case": "first-letter", "lang": "zh-tw", "fallback": [ { "code": "zh-hant" }, { "code": "zh-hans" }, { "code": "en" } ], "fallback8bitEncoding": "windows-950", "writeapi": "", "maxarticlesize": 2097152, "timezone": "Asia/Taipei", "timeoffset": 0, "articlepath": "/MediaWiki/index.php?title=$1", "scriptpath": "/MediaWiki", "script": "/MediaWiki/index.php", "variantarticlepath": false, "server": "http://science4everyone.net", "servername": "science4everyone.net", "wikiid": "wiki4-wiki_", "time": "2024-05-18T22:18:41Z", "uploadsenabled": "", "maxuploadsize": 104857600, "minuploadchunksize": 1024, "galleryoptions": { "imagesPerRow": 0, "imageWidth": 120, "imageHeight": 120, "captionLength": "", "showBytes": "", "showDimensions": "", "mode": "traditional" }, "thumblimits": [ 120, 150, 180, 200, 250, 300 ], "imagelimits": [ { "width": 320, "height": 240 }, { "width": 640, "height": 480 }, { "width": 800, "height": 600 }, { "width": 1024, "height": 768 }, { "width": 1280, "height": 1024 } ], "favicon": "http://science4everyone.net/favicon.ico", "centralidlookupprovider": "local", "allcentralidlookupproviders": [ "local" ], "interwikimagic": "", "magiclinks": [] } } }