Difference between revisions of "Module:Break"
From ERPC Wiki Archive
m (Changed protection level of Module:Break: High-risk Lua module: allow template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 19:11, 20 March 2017
Documentation for this module may be created at Module:Break/doc
-- 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