模块:PChart
来自异世界百科
此模块的文档可以在模块:PChart/doc创建
local p = {}
function p.rader(frame)
local size = frame.args.size or "200x200"
local max = frame.args.max or "5"
local names = frame.args.names or "Data"
local float = frame.args.float or nil
local values = frame.args.values or ""
local html = ""
if(float ~= nil or float == "center" or #float == 0) then
html = html .. "<div class=\"float" .. float .. "\">"
end
html = html ..
frame:extensionTag("pRadar", "," .. names .. "\n" .. values, {
size = size,
ymax = max,
filled = "",
striped = "",
})
if(float ~= nil or float == "center" or #float == 0) then
html = html .. "</div>"
end
return html
end
return p