Module:Clr

From ATLauncher Wiki
Jump to: navigation, search
Lua Logo.svg This is the Lua module for Template:Clr. Below is the documentation for that template.
Description
This template is a shorthand for <div style="clear:both;"></div>.
It moves any content following the template below any objects floating to the left and/or right (TOCs, infoboxes, images, etc..).
Syntax
Type {{clr}} in an article at the point you want the clear.
See also
{{clrl}} and {{clrr}}

local p = {}

function p.makeClr(clear)
	return '<div style="clear:' .. clear .. '; margin:0; padding:0;"></div>'
end

function p.main(frame)
	return p.makeClr("both")
end

return p