Documentation for this module may be created at Module:Todo/doc
local p = {}
p.main = function ( frame )
if frame.args == nil then
return 'No args provided'
end
local args = frame.args
local sup = mw.html.create( 'sup' )
sup:attr( 'class', 'todo' )
local em = sup:tag( 'em' )
em:wikitext( mw.text.nowiki( '[' ), '[[todo]]' )
if args.comment ~= nil and args.comment ~= '' then
em:wikitext( ' – ' .. args.comment )
end
em:wikitext( mw.text.nowiki( ']' ) )
return tostring( sup )
end
return p