Modul:Stadtwikis: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:


function p.Versuch(frame)
function p.Versuch(frame)
t = getAPIdata("https://www.fuerthwiki.de/wiki/api.php?action=query&meta=siteinfo&siprop=statistics&format=json")
urls = {"https://www.fuerthwiki.de/wiki/api.php",
x='<table class="wikitable sortable"><tr>'..
    "https://oesterreichwiki.org/w/api.php"}
   
h='<table class="wikitable sortable"><tr>'..
'<th>Wiki URL</th>'..
'<th>Artikel</th>'..
'<th>Artikel</th>'..
'<th>Bilder</th>'..
'<th>Bilder</th>'..
Zeile 11: Zeile 14:
'<th>Aktive</th>'..
'<th>Aktive</th>'..
'<th>Admins</th>'..
'<th>Admins</th>'..
tabelizeData(t)..
'</tr>'
'</table>'
return x
for i,url in ipairs(urls) do
t = getAPIdata(url.."?action=query&meta=siteinfo&siprop=statistics&format=json")
h=h..tabelizeData(t)
end
h=h..'</table>'
return h
end
end


--function
function tabelizeData(t)
function tabelizeData(t)
h='<tr>'..
h='<tr>'..