Module:Break
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This is a Lua version of the {{break}} template. Please see the template page for documentation.
-- This module implements {{break}}
local p = {}
function p.main( frame )
local num = frame.args[1] or ''
num = tonumber( num )
if not num or num < 1 or math.floor( num ) ~= num or num == math.huge then
num = 1
end
return mw.ustring.rep( '<br />', num )
end
return p