15.082
Bearbeitungen
Keine Bearbeitungszusammenfassung |
K (Entfernte den Schutz von „Modul:Stadtwikis“) |
||
| (6 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 2: | Zeile 2: | ||
local c = require( "Module:Common" ) | local c = require( "Module:Common" ) | ||
function getUrls( | function getUrls() | ||
urls = { | local urls = { | ||
"https://www.fuerthwiki.de/wiki/api.php", | "https://www.fuerthwiki.de/wiki/api.php", | ||
"https://oesterreichwiki.org/w/api.php", | "https://oesterreichwiki.org/w/api.php", | ||
| Zeile 30: | Zeile 30: | ||
local urls = getUrls() | local urls = getUrls() | ||
local results = {} | local results = {} | ||
local stat, info | |||
for i = 1, #urls do | for i = 1, #urls do | ||
local data_stat = mw.ext.externalData.getWebData{ | local data_stat = mw.ext.externalData.getWebData{ | ||
| Zeile 43: | Zeile 45: | ||
} | } | ||
end | end | ||
h='<table class="wikitable sortable"><tr>'.. | local h='<table class="wikitable sortable"><tr>'.. | ||
'<th>Wiki URL</th>'.. | '<th>Wiki URL</th>'.. | ||
'<th>Artikel</th>'.. | '<th>Artikel</th>'.. | ||
| Zeile 62: | Zeile 64: | ||
function tabelizeData(url, s, i) | function tabelizeData(url, s, i) | ||
h='<tr>'.. | h='<tr>'.. | ||
'<td>'..i['base']..'</td>'.. | '<td>'..i['sitename']..'</br>'..i['base']..'</td>'.. | ||
'<td>'..s['articles']..'</td>'.. | '<td>'..s['articles']..'</td>'.. | ||
'<td>'..s['images']..'</td>'.. | '<td>'..s['images']..'</td>'.. | ||
| Zeile 71: | Zeile 73: | ||
'</tr>' | '</tr>' | ||
return h | return h | ||
end | end | ||
return p | return p | ||