Module:DataCore/test
Jump to navigation
Jump to search
Lua error: Cannot create process: proc_open(/var/www/logs/lua.log): failed to open stream: No such file or directory
Script error: Lua error: Cannot create process: proc_open(/var/www/logs/lua.log): failed to open stream: No such file or directory
local data = mw.loadData('Module:DataCore')
local p = {}
function p.list()
local t = mw.html.create('table')
t:addClass('wikitable sortable')
:tag('tr')
:tag('th'):wikitext('name'):done()
for i,v in ipairs(data) do
mw.log(v.name)
t:newline()
t:tag('tr')
:tag('td')
:wikitext(v.name):done()
end
return t
end
return p