local p = {}
function p.test()
-- Try to access the database through Scribunto's PHP bridge
local methods = {}
if mw.site then
for k, v in pairs(mw.site) do
if type(v) == "function" then
methods[#methods+1] = k
end
end
end
return "mw.site methods: " .. table.concat(methods, ", ")
end
return p