MediaWiki API 结果

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

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

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

{
    "batchcomplete": "",
    "query": {
        "gadgets": [
            {
                "id": "NotifCountTitle",
                "metadata": {
                    "settings": {
                        "rights": [],
                        "skins": [],
                        "actions": [],
                        "category": ""
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-NotifCountTitle.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "UTCLiveClock",
                "metadata": {
                    "settings": {
                        "rights": [],
                        "skins": [],
                        "actions": [],
                        "category": ""
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-UTCLiveClock.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [
                            "mediawiki.util"
                        ],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "Purgecache",
                "metadata": {
                    "settings": {
                        "rights": [
                            "purge"
                        ],
                        "skins": [],
                        "actions": [],
                        "category": ""
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-Purgecache.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "TippyRef",
                "metadata": {
                    "settings": {
                        "rights": [],
                        "skins": [],
                        "actions": [],
                        "category": ""
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-TippyRef.js"
                        ],
                        "styles": [
                            "MediaWiki:Gadget-TippyRef.css"
                        ],
                        "datas": [],
                        "dependencies": [
                            "ext.gadget.tippy"
                        ],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "detectmobilebrowsers",
                "metadata": {
                    "settings": {
                        "rights": [],
                        "skins": [],
                        "actions": [],
                        "hidden": "",
                        "category": ""
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-detectmobilebrowsers.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "ElevateLeadingSection",
                "metadata": {
                    "settings": {
                        "rights": [],
                        "skins": [],
                        "actions": [],
                        "default": "",
                        "category": ""
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-ElevateLeadingSection.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [
                            "jquery.makeCollapsible"
                        ],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "Wikiplus",
                "metadata": {
                    "settings": {
                        "rights": [
                            "autoconfirmed"
                        ],
                        "skins": [],
                        "actions": [],
                        "category": "\u7f16\u8f91\u589e\u5f3a"
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-Wikiplus.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [],
                        "peers": [],
                        "messages": []
                    }
                }
            },
            {
                "id": "md5hasher",
                "metadata": {
                    "settings": {
                        "rights": [],
                        "skins": [],
                        "actions": [],
                        "default": "",
                        "hidden": "",
                        "category": "Interfaces"
                    },
                    "module": {
                        "scripts": [
                            "MediaWiki:Gadget-md5hasher.js"
                        ],
                        "styles": [],
                        "datas": [],
                        "dependencies": [],
                        "peers": [],
                        "messages": []
                    }
                }
            }
        ]
    }
}