Module:ValueColor/El

local p = {} local get_args = require('Module:Arguments').getArgs

local i18n = { error = { no_input = 'Input missing', }, }

function p.main(frame) local args = get_args(frame, {   wrappers = {      'Template:ValueColor'    }  }) return p._main(args) end

-- Color text function p.colortext(frame) local args = getArgs(frame, {   wrappers = {      'Template:ValueColor'    }  }) local colortext = {

["aghs"] = '4B69FF', ["shard"] = 'A50F79', ["aghshard"] = '4D7455', ["aghstal"] = '4D7455', ["shardtal"] = '4D7455', ["gold"] = 'DAA520', ["xp"] = '70B04A', ["10tal"] = 'CF6A32', ["15tal"] = 'CF6A32', ["20tal"] = 'CF6A32', ["25tal"] = 'CF6A32', } return p._colortext(args) end

-- Tooltip text function p.tooltext(frame) local args = getArgs(frame, {   wrappers = {      'Template:ValueColor'    }  })

local tooltext = {

["aghs"] = 'With Aghanim\'s Scepter', ["shard"] = 'With Aghanim\'s Shard', ["aghshard"] = 'With Aghanim\'s Scepter and Aghanim\'s Shard', ["aghstal"] = 'With Aghanim\'s Scepter and Talent', ["shardtal"] = 'With Aghanim\'s Shard and Talent', ["gold"] = 'Bounty', ["xp"] = 'Experience', ["10tal"] = 'With level 10 Talent', ["15tal"] = 'With level 15 Talent', ["20tal"] = 'With level 20 Talent', ["25tal"] = 'With level 25 Talent',

} return p._tooltext(args) end

return p