Module:HTML attribute
Appearance
Documentation for this module may be created at Module:HTML attribute/doc
require('strict')
local p = {}
local getArgs = require('Module:Arguments').getArgs
function p._attribute(args)
local attribs = {}
for k, v in pairs(args) do
table.insert(attribs, k .. '="' .. v .. '"')
end
return table.concat(attribs, ' ')
end
function p.attribute(frame)
return p._attribute(getArgs(frame))
end
return p