「モジュール:Break」の版間の差分

提供:S-bou Wiki
ナビゲーションに移動 検索に移動
ja>K-iczn
(en:Module:Break 15:22, 20 November 2013‎(UTC)より)
 
(1版 をインポートしました)
 
(相違点なし)

2021年10月23日 (土) 02:42時点における最新版

このモジュールについての説明文ページを モジュール: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