Modul:BuildHtmlTag
Aspect

local getArgs = require('Modul:Arguments').getArgs
local p = {}
local function fromArgs(tag, class, id, style, title, content)
return tostring(
mw.html.create(tag)
:attr('id', id)
:attr('title', title)
:cssText(style)
:addClass(class)
:wikitext(content)
)
end
local function fromFrame(frame)
local args = getArgs(frame)
return fromArgs(args[1], args['class'], args['id'], args['style'], args['title'], args['content'])
end
p.fromFrame = fromFrame
p.fromArgs = fromArgs
return p