MediaWiki API 结果

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

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

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

{
    "error": {
        "code": "internal_api_error_MWUnknownContentModelException",
        "info": "[596c6293c0db6802cb4e787b] Exception caught: The content model 'wikibase-item' is not registered on this wiki. See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.",
        "errorclass": "MWUnknownContentModelException",
        "*": "MWUnknownContentModelException at /var/www/html/includes/content/ContentHandler.php(265)\n#0 /var/www/html/includes/Revision/RevisionStore.php(1470): ContentHandler::getForModelID(string)\n#1 /var/www/html/includes/Revision/RevisionStore.php(1636): MediaWiki\\Revision\\RevisionStore->loadSlotContent(MediaWiki\\Revision\\SlotRecord, NULL, NULL, NULL, integer)\n#2 [internal function]: MediaWiki\\Revision\\RevisionStore->MediaWiki\\Revision\\{closure}(MediaWiki\\Revision\\SlotRecord)\n#3 /var/www/html/includes/Revision/SlotRecord.php(307): call_user_func(Closure, MediaWiki\\Revision\\SlotRecord)\n#4 /var/www/html/includes/Revision/RevisionRecord.php(175): MediaWiki\\Revision\\SlotRecord->getContent()\n#5 /var/www/html/includes/api/ApiFeedContributions.php(177): MediaWiki\\Revision\\RevisionRecord->getContent(string)\n#6 /var/www/html/includes/api/ApiFeedContributions.php(148): ApiFeedContributions->feedItemDesc(MediaWiki\\Revision\\RevisionStoreRecord)\n#7 /var/www/html/includes/api/ApiFeedContributions.php(112): ApiFeedContributions->feedItem(stdClass)\n#8 /var/www/html/includes/api/ApiMain.php(1593): ApiFeedContributions->execute()\n#9 /var/www/html/includes/api/ApiMain.php(531): ApiMain->executeAction()\n#10 /var/www/html/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()\n#11 /var/www/html/api.php(87): ApiMain->execute()\n#12 {main}"
    }
}