Module:TestKetho
Jump to navigation
Jump to search
Documentation for this module may be created at Module:TestKetho/doc
local data = mw.loadData("Module:TestKetho/Data")
local m = {}
function m.test(f)
-- local tbl = {"hello", "world"}
-- local a, b = unpack(tbl)
-- return string.format("%s, %s", a, b)
-- local varType = type(data)
-- local size = #data
-- local a, b = unpack(data)
-- local c, d = data[1], data[2]
-- return string.format("%s, %s, %s, %s, %s, %s", varType, size, tostring(a), tostring(b), tostring(c), tostring(d))
-- return mw.html:getAttr("theme-fandomdesktop-light")
-- local div = mw.html.create( 'div' )
-- div
-- :attr( 'id', 'testdiv' )
-- :css( 'width', '100%' )
-- :wikitext( 'Some text' )
-- :tag( 'hr' )
-- return tostring( div )
local t = {
mw.site.currentVersion or "currentVersion",
mw.site.scriptPath or "scriptPath",
mw.site.server or "server",
mw.site.siteName or "siteName",
mw.site.stylePath or "stylePath",
-- mw.site.namespaces or "",
-- mw.site.stats or "",
}
return "*. "..table.concat(t, "\n*. ")
end
return m