Module:VisualData: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 4: Line 4:
local debugInfo = "'''Test Module:VisualData'''"  
local debugInfo = "'''Test Module:VisualData'''"  
     local query = frame.args[1]
      
    local params = {}
    for k, v in pairs(frame.args) do
        if k ~= 1 then
            table.insert(params, k .. "=" .. v)
        end
    end


    local success, result = pcall(function()
     return debugInfo
        return mw.ext.visualdata.query(query, params)
    end)
 
    if not success then
        return "Error: " .. tostring(result)
    end
 
     return debugInfo .. result
end
end


return
return

Revision as of 14:26, 31 May 2024

Documentation for this module may be created at Module:VisualData/doc

local p = {}

function p.query(frame)
	
	local debugInfo = "'''Test Module:VisualData'''" 
    

    return debugInfo
end

return