Module:Break

From CannaQAWiki
Revision as of 03:18, 26 February 2015 by Shawndouglas (talk | contribs) (1 revision imported: Attempting import of LIMSwiki modules Archive list–Yesno/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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