Test lua
		
		
		
		Jump to navigation
		Jump to search
		
Documentation for this module may be created at Module:Test lua/doc
local p = {}
function p.fn(frame)
    local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame
    local success, json = pcall(mw.text.jsonDecode, origArgs[0])
  local ret = mw.visualdata.query( "School class", "[[class::+]]"  )
   return mw.dumpObject(ret) 
 -- return '<pre>' .. mw.dumpObject(json) .. '</pre>'
end
-- =p.fn({"add\ndfdd","b","c","text"})
return p