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": "https://www.hktrpg.com/wiki/index.php/%E9%A6%96%E9%A0%81",
"sitename": "HKTRPG - TRPG\u767e\u79d1",
"logo": "https://www.hktrpg.com/tool/wiki.png",
"generator": "MediaWiki 1.38.2",
"phpversion": "7.3.33",
"phpsapi": "apache2handler",
"dbtype": "mysql",
"dbversion": "5.5.68-MariaDB",
"langconversion": "",
"linkconversion": "",
"titleconversion": "",
"linkprefixcharset": "",
"linkprefix": "",
"linktrail": "/^()(.*)$/sD",
"legaltitlechars": " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
"invalidusernamechars": "@:",
"fixarabicunicode": "",
"fixmalayalamunicode": "",
"case": "first-letter",
"lang": "zh-hant",
"fallback": [
{
"code": "zh-hans"
},
{
"code": "en"
}
],
"fallback8bitEncoding": "windows-950",
"writeapi": "",
"maxarticlesize": 2097152,
"timezone": "UTC",
"timeoffset": 0,
"articlepath": "/wiki/index.php/$1",
"scriptpath": "/wiki",
"script": "/wiki/index.php",
"variantarticlepath": false,
"server": "https://www.hktrpg.com",
"servername": "www.hktrpg.com",
"wikiid": "zzwiki",
"time": "2024-05-18T20:02:02Z",
"uploadsenabled": "",
"maxuploadsize": 6291456,
"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
},
{
"width": 2560,
"height": 2048
}
],
"favicon": "https://www.hktrpg.com/favicon.ico",
"centralidlookupprovider": "local",
"allcentralidlookupproviders": [
"local"
],
"interwikimagic": "",
"magiclinks": [],
"categorycollation": "uppercase",
"mobileserver": "https://www.hktrpg.com",
"citeresponsivereferences": ""
}
}
}