Fire Emblem Heroes Wiki
Advertisement
Template-info Documentation
Template-info Documentation

Get colors, mostly for FandomMobile fallback.

Functions[]

  • getText(color): return color text to use in style attribute.
-- 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}
Advertisement