Get colors, mostly for FandomMobile fallback.
Functions[]
- getText(color): return color text to use in
style
attribute.
The above documentation is transcluded from Module:Color/doc. (edit | history)
The above documentation is transcluded from Module:Color/doc. (edit | history)
-- A table of colors, must be in sync with [[MediaWiki:Fandomdesktop.css]]
local colors = {
['th-color1'] = '#408bca'
}
local getText = function (color)
return string.format('background-color:var(--%s,%s)', color, colors[color])
end
return require 'Module:MakeMWModule'.makeMWModule {getText = getText}