这是测试站点!!!!

不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!

模块:续标识

来自Limbo Wiki
AtomTheory​(留言 | 贡献)2026年10月13日 (二) 16:41的版本 (创建页面,内容为“local p = {} function p.main(frame) local args = frame.args local repeatCount = tonumber(args[1]) if not repeatCount or repeatCount < 1 or repeatCount ~= math.floor(repeatCount) then repeatCount = 1 end if repeatCount > 100 then repeatCount = 100 end local scale = tonumber(args[2]) if not scale or scale <= 0 then scale = 1 end local unit = '<span class="xz-wrap" role="img" aria-label="续标识…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

此模块的文档可以在模块:续标识/doc创建

local p = {}

function p.main(frame)
    local args = frame.args

    local repeatCount = tonumber(args[1])
    if not repeatCount or repeatCount < 1 or repeatCount ~= math.floor(repeatCount) then
        repeatCount = 1
    end
    if repeatCount > 100 then
        repeatCount = 100
    end

    local scale = tonumber(args[2])
    if not scale or scale <= 0 then
        scale = 1
    end

    local unit = '<span class="xz-wrap" role="img" aria-label="续标识:一只卡通手快速点按红色圆柱按钮">'
        .. '<span class="xz-btn-rect"></span>'
        .. '<span class="xz-base"></span>'
        .. '<span class="xz-connector"></span>'
        .. '<span class="xz-btn-bottom"></span>'
        .. '<span class="xz-btn-top"></span>'
        .. '<span class="xz-finger"><span class="xz-finger-inner">☚</span></span>'
        .. '</span>'

    local body = string.rep(unit, repeatCount)

    if scale ~= 1 then
        return '<span class="xz-outer" style="font-size:' .. scale .. 'em;">' .. body .. '</span>'
    end

    return body
end

return p