Jump to content

Module:User:Poster Nutbag/SandboxModule

From Wikipedia, the free encyclopedia

local p = {}

-- Function to generate spinning line HTML/CSS
function p.generateSpinningLine(frame)
    local frequency = tonumber(frame.args[1]) or 0.25 -- Default frequency if not provided
    local angle = 360 * frequency
    local html = mw.html.create('div')
        :addClass('spinning-line')
        :css('transform', 'rotate(' .. angle .. 'deg);')
        :done()
    
    return tostring(html)
end

return p