Modul:Atribut HTML
require('strict')
local p = {}
local getArgs = require('Modul: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