Jump to content

Module:TextFormat

From Wikipedia

Documentation for this module may be created at Module:TextFormat/doc

local p = {}

function p.italicize(frame)
	local para2 = frame.args[2]
    if para2 == 'true' or para2 == 'yes' then
    	return '<i>' .. string.reverse(frame.args[1]) .. '</i>'
    else
    	return '<i>' .. frame.args[1] .. '</i>'
    end
end
function p.bold(frame)
	return '<b>' .. frame.args[1] .. '</b>'
end
function p.oblique(frame)
	return '<span style="font-style: oblique;">' .. frame.args[1] .. '</span>'
end

return p