MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json。
{
"batchcomplete": "",
"continue": {
"lecontinue": "20240305045546|7336",
"continue": "-||"
},
"query": {
"logevents": [
{
"logid": 7346,
"ns": 120,
"title": "Item:Q326",
"pageid": 1882,
"logpage": 1882,
"params": {},
"type": "create",
"action": "create",
"user": "106.104.96.163",
"anon": "",
"timestamp": "2024-04-14T12:44:14Z",
"comment": "/* wbeditentity-create:2|zh-tw */ \u912d\u4e1e\u921e"
},
{
"logid": 7345,
"ns": 0,
"title": "\u7b2c\u4e5d\u5c46\u5b78\u751f\u806f\u5408\u81ea\u6cbb\u6703\u6703\u9577\u526f\u6703\u9577\u53ca\u5168\u6821\u9078\u5340\u5b78\u751f\u8b70\u54e1\u9078\u8209",
"pageid": 1881,
"logpage": 1881,
"params": {},
"type": "create",
"action": "create",
"user": "223.139.15.237",
"anon": "",
"timestamp": "2024-03-26T12:05:20Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300c{{Infobox Election | election_name = \u7b2c\u4e5d\u5c46\u5b78\u751f\u806f\u5408\u81ea\u6cbb\u6703\u6703\u9577\u526f\u6703\u9577\u9078\u8209 | type = \u7e3d\u7d71 | ongoing = \u662f | previous_election = \u7b2c\u516b\u5c46\u5b78\u751f\u806f\u5408\u81ea\u6cbb\u6703\u6703\u9577\u526f\u6703\u9577\u53ca\u5b78\u751f\u8b70\u54e1\u9078\u8209 | previous_year = 2023 | next_election = \u7b2c\u5341\u5c46\u5b78\u751f\u806f\u5408\u81ea\u6cbb\u6703\u6703\u9577\u526f\u6703\u9577\u53ca\u5168\u6821\u9078\u5340\u5b78\u751f\u8b70\u54e1\u9078\u8209 | next_year = 2025 | election_date = 2024\u5e745\u670829\u65e5 | turnout = -- | image1 = <div style=\"width:95px;\"><span style=\"line-h\u2026\u300d\u7684\u65b0\u9801\u9762"
},
{
"logid": 7344,
"ns": 2,
"title": "\u4f7f\u7528\u8005:Wangyouxiang5290",
"pageid": 0,
"logpage": 0,
"params": {
"userid": 295
},
"type": "newusers",
"action": "create",
"user": "Wangyouxiang5290",
"timestamp": "2024-03-07T08:47:10Z",
"comment": ""
},
{
"logid": 7343,
"ns": 2,
"title": "\u4f7f\u7528\u8005:Wangyouxiang925",
"pageid": 0,
"logpage": 0,
"params": {
"userid": 294
},
"type": "newusers",
"action": "create",
"user": "Wangyouxiang925",
"timestamp": "2024-03-07T08:46:19Z",
"comment": ""
},
{
"logid": 7342,
"ns": 2,
"title": "\u4f7f\u7528\u8005:Lenlai/\u6c99\u76d2",
"pageid": 1880,
"logpage": 1880,
"params": {},
"type": "create",
"action": "create",
"user": "Lenlai",
"timestamp": "2024-03-05T05:06:34Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300c{{Infobox Election |election_name = \u5b78\u751f\u806f\u5408\u81ea\u6cbb\u6703\u7b2c\u4e5d\u5c46\u6703\u9577\u526f\u6703\u9577\u9078\u8209 |turnout = 71.86%\uff08{{decrease}}3.04%\uff09 |type = presidential |ongoing = no |party = |previous_election = \u7b2c\u516b\u5c46\u6703\u9577\u526f\u6703\u9577\u9078\u8209 |previous_year = 2023\u5e74 |next_election = \u7b2c\u5341\u5c46\u6703\u9577\u526f\u6703\u9577\u9078\u8209 |next_year = 2025\u5e74 |reporting = |last_update = |election_date =\u2026\u300d\u7684\u65b0\u9801\u9762"
},
{
"logid": 7341,
"ns": 828,
"title": "\u6a21\u7d44:MultiReplace",
"pageid": 1879,
"logpage": 1879,
"params": {},
"type": "create",
"action": "create",
"user": "Lenlai",
"timestamp": "2024-03-05T05:05:24Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300cp = {} local function MultiReplace(args) \tlocal input = args[1] or \"{{{1}}}\" \tlocal plain = args.plain == \"yes\" \tlocal i = 1 \tlocal changeList = {} \twhile args[i * 2] do \t\tlocal change = {pattern = args[i * 2], repl = args[i * 2 + 1]} \t\tif not change.repl then \t\t\treturn require('Module:Error').error{ \t\t\t\t'MultiReplace\uff1a\u4e0d\u914d\u5bf9\u51b2\u7a81\uff1a<code>' .. (i * 2) .. ' = ' .. change.pattern .. '</code>' \t\t\t} \t\tend \t\tchangeList[i] = change \t\ti = i + 1 \tend \t \tlocal\u2026\u300d\u7684\u65b0\u9801\u9762"
},
{
"logid": 7340,
"ns": 828,
"title": "\u6a21\u7d44:InfoboxImage",
"pageid": 1878,
"logpage": 1878,
"params": {},
"type": "create",
"action": "create",
"user": "Lenlai",
"timestamp": "2024-03-05T05:04:34Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300c-- \u8f93\u5165\uff1a - \u8f38\u5165\uff1a -- image - \u7eaf\u6587\u4ef6\u540d\uff08\u5e26\u6709File:/Image:\u524d\u7f00\u4e0e\u5426\u7686\u53ef\uff09\u6216\u5b8c\u5168\u683c\u5f0f\u5316\u7684\u56fe\u7247\u94fe\u63a5 - \u7d14\u6a94\u6848\u540d\uff08\u5e36\u6709File:/Image:\u5b57\u9996\u8207\u5426\u7686\u53ef\uff09\u6216\u5b8c\u5168\u683c\u5f0f\u5316\u7684\u5716\u7247\u9023\u7d50 -- page - page to display for multipage images (DjVu) -- size - \u663e\u793a\u56fe\u50cf\u5927\u5c0f - \u986f\u793a\u5f71\u50cf\u5927\u5c0f -- maxsize - \u56fe\u50cf\u6700\u5927\u5927\u5c0f - \u5f71\u50cf\u6700\u5927\u5927\u5c0f -- sizedefault - \u5982\u679csize\u53c2\u6570\u7559\u7a7a\uff0c\u9ed8\u8ba4\u663e\u793a\u56fe\u50cf\u5927\u5c0f - \u5982\u679cs\u2026\u300d\u7684\u65b0\u9801\u9762"
},
{
"logid": 7339,
"ns": 828,
"title": "\u6a21\u7d44:If empty",
"pageid": 1877,
"logpage": 1877,
"params": {},
"type": "create",
"action": "create",
"user": "Lenlai",
"timestamp": "2024-03-05T05:03:08Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300clocal p = {} function p.main(frame) \tlocal args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) \t-- For backwards compatibility reasons, the first 8 parameters can be unset instead of being blank, \t-- even though there's really no legitimate use case for this. At some point, this will be removed. \tlocal lowestNil = math.huge \tfor i = 8,1,-1 do \t\tif args[i] == nil then \t\t\targs[i] = '' \t\t\tlowestNil = i \t\te\u2026\u300d\u7684\u65b0\u9801\u9762"
},
{
"logid": 7338,
"ns": 10,
"title": "\u6a21\u677f:Delink question hyphen-minus",
"pageid": 1876,
"logpage": 1876,
"params": {},
"type": "create",
"action": "create",
"user": "Lenlai",
"timestamp": "2024-03-05T05:00:12Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300c{{{{{|safesubst:}}}#invoke:MultiReplace|main|{{{1|}}}|%[%[ *([%?-]) *%]%]|%1|%[%[ *[%?-] *{{{{{|safesubst:}}}!}} *(.-) *%]%]|%1}}<noinclude> {{documentation}} </noinclude>\u300d\u7684\u65b0\u9801\u9762"
},
{
"logid": 7337,
"ns": 10,
"title": "\u6a21\u677f:If empty",
"pageid": 1875,
"logpage": 1875,
"params": {},
"type": "create",
"action": "create",
"user": "Lenlai",
"timestamp": "2024-03-05T04:58:30Z",
"comment": "\u5efa\u7acb\u5167\u5bb9\u70ba\u300c{{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}}</noinclude>\u300d\u7684\u65b0\u9801\u9762"
}
]
}
}