Módulo:TipoAColor
Apariencia
La documentación para este módulo puede ser creada en Módulo:TipoAColor/doc
local p = {}
function p.convert( frame )
return p.convertImpl(frame.args[1])
end
function p.convertImpl(type)
local types = {
['do'] = '808080',
desplazarse = '800080',
comprar = '008080',
ciudad = '0000FF',
beber = '000000',
comer = 'D2691E',
ir = 'A52A2A',
listado = '228B22',
otro = '228B22',
ver = '4682B4',
dormir = '000080',
alrededores = '800000',
view = '4169E1',
}
local result = types[type]
if result then
return result
end
-- Deprecated usage - trace it
types = {
black = '000000',
blue = '0000FF',
brown = 'A52A2A',
chocolate = 'D2691E',
forestgreen = '228B22',
gold = 'FFD700',
gray = '808080',
grey = '808080',
lime = '00FF00',
magenta = 'FF00FF',
maroon = '800000',
mediumaquamarine = '66CDAA',
navy = '000080',
orange = 'FFA500',
plum = 'DDA0DD',
purple = '800080',
red = 'FF0000',
royalblue = '4169E1',
silver = 'C0C0C0',
steelblue = '4682B4',
teal = '008080',
}
local result = types[type]
if result then
return result -- .. '[[category:Fixme TypeToColor]]'
end
return 'C0C0C0' -- .. '[[category:Fixme TypeToColor Unknown]]'
end
return p