Bürokraten, Oberflächenadministratoren, SMW-Administratoren, SMW-Kuratoren, SMW-Editoren, Oversighter, Administratoren, Widget-Bearbeiter
215.197
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 4: | Zeile 4: | ||
--local http = require("mw.http") | --local http = require("mw.http") | ||
--local json = require("mw.text").jsonDecode | --local json = require("mw.text").jsonDecode | ||
function p. | function p.Trennenen(frame) | ||
local urls = {"https://www.fuerthwiki.de/wiki/api.php", | local urls = {"https://www.fuerthwiki.de/wiki/api.php", | ||
"https://oesterreichwiki.org/w/api.php", | "https://oesterreichwiki.org/w/api.php", | ||
| Zeile 25: | Zeile 25: | ||
-- "https://wuerzburgwiki.de/w/api.php", | -- "https://wuerzburgwiki.de/w/api.php", | ||
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ||
return | |||
end | |||
function Versuch(frame) | |||
ep_stat = "?action=query&meta=siteinfo&siprop=statistics&format=json" | ep_stat = "?action=query&meta=siteinfo&siprop=statistics&format=json" | ||
ep_info = "?action=query&meta=siteinfo&format=json" | ep_info = "?action=query&meta=siteinfo&format=json" | ||
local urls = { | |||
"https://www.fuerthwiki.de/wiki/api.php", | |||
"https://www.tuepedia.de/api.php" | |||
} | |||
local results = {} | local results = {} | ||
for i = 1, #urls do | for i = 1, #urls do | ||
| Zeile 42: | Zeile 46: | ||
} | } | ||
end | end | ||
local output = {} | |||
for i, pair in ipairs(results) do | |||
--local a = pair.A and pair.A.query and pair.A.query.statistics and pair.A.query.statistics.edits or "?" | |||
--local b = pair.B and pair.B.query and pair.B.query.statistics and pair.B.query.statistics.edits or "?" | |||
--table.insert(output, string.format("Zeile %d: A = %s, B = %s", i, a, b)) | |||
mw.log("Stats: " .. mw.dumpObject(pair)) | |||
end | |||
return tableToString(results) --table.concat(output, "<br>") | |||
end | end | ||
Bearbeitungen