Module:LoadDataError2
Documentation for this module may be created at Module:LoadDataError2/doc
er = {};
local er_data2 = mw.loadData( 'Module:LoadDataError/Data2' );
function er.test( frame )
local str = "== With mw.loadData ==\n";
local count = 0
str = str .. #er_data2 .. " ";
for k, v in pairs( er_data2 ) do
str = str .. #v .. " ";
for k2, v2 in pairs( v ) do
if type( v2 ) == 'table' then
str = str .. #v2 .. " ";
for k3, v3 in pairs( v2 ) do
if type( v3 ) == 'table' then
str = str .. #v3 .. " ";
for k4, v4 in pairs( v3 ) do
count = count + 1;
end
else
count = count + 1;
end
end
else
count = count + 1;
end
end
end
return str .. count;
end
return er;