Module:User:Cscott/T408915
Appearance
function main(frame)
local arg1 = frame.args[1] or 'link'
local arg2 = frame.args[2] or ''
-- according to the sanitizer, links must have an itemprop="" otherwise they are not valid or safe in content
if arg2 == 'href' then
return '<'..arg1..' itemprop="foo" href="bar"/>'
elseif arg2 == 'content' then
return '<'..arg1..' itemprop="foo" content="bar"/>'
else
return '<'..arg1..' href="bar"/>'
end
end
return {
main = main,
}