Module:Gradient

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 22:29, 29 April 2021 by Vish (talk | contribs)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Gradient/doc

local p = {}

local gradientData = mw.loadData( 'Module:Gradient/data' )

function p.main( frame )
    local gradientText = frame.args[1]

	if gradientText == "" then
        return "{{BackGradient}}"
    else
        return gradientData[gradientText] or gradientText or ""
    end
    
end

return p