Module:B

--Not used with permission from LoL Wiki https://leagueoflegends.fandom.com/wiki/Module:Color hahah local p = {} local lib = require('Module:A') local keywordcolor = { {"physical attack",       "orange"}, {"physical atk",          "orange"}, {"phy atk",               "orange"}, {"physical damage",       "#EB3434"}, {"phy dmg",               "#EB3434"}, {"physical penetration",  "#FF9494"}, {"physical lifesteal",    "#cf136a"}, {"ppen",                  "#FF9494"}, {"physical defense",      "#870000"}, {"attack speed",          "#c8ff00"}, {"atk spd",               "#c8ff00"}, {"aspd",                  "#c8ff00"}, {"pdef",                  "#870000"}, {"pd",                    "#EB3434"}, {"dash",                  "#4D5D53"}, {"blink",                 "#4D5D53"}, {"mobility",              "#4D5D53"}, {"projectile",            "#224870"}, {"spell vamp",            "#8DBBC1"}, {"skill name",            "#5c5994"}, {"magic power",           "turquoise"}, {"magic damage",          "#AA3BFF"}, {"magic defense",         "#510087"}, {"mdef",                  "#510087"}, {"md",                    "#AA3BFF"}, {"magic penetration",     "#CA94FF"}, {"mpen",                  "#CA94FF"}, {"mp",                    "turquoise"}, {"magical lifesteal",     "#38369A"}, {"magic lifesteal",       "#38369A"}, {"true damage",           "#474747"}, {"td",                    "#A1A1A1"}, {"health",                "#4DFF36"}, {"hp",                    "#4DFF36"}, {"invulnerable",          "#45C4A0"}, {"heal",                  "#4DFF36"}, {"shield",                "#B3D186"}, {"cc",                    "#C70244"}, {"crowd control",         "#C70244"}, {"control immune",        "#2a4d18"}, {"control immunity",      "#2a4d18"}, {"cc immune",             "#2a4d18"}, {"cc remove",             "#4e9258"}, {"control remove",        "#4e9258"}, {"dmg immune",            "#d66f6f"}, {"dmg reduc",             "#a85656"}, {"damage reduction",      "#a85656"}, {"cooldown",              "#90b7e8"}, {"cd",                    "#90b7e8"}, {"enhanced",              "#4287F5"}, {"form",                  "#FF5D3D"}, {"mana",                  "blue"}, {"energy",                "#E8E26F"}, {"rage",                  "#ff1500"}, {"crit",                  "#FFA230"}, {"critical",              "#FFA230"}, {"critical damage",       "#AD6449"}, {"crit dmg",              "#AD6449"}, {"movement speed",        "#BFB419"}, {"ms",                    "#BFB419"}, {"slow",                  "#BFB419"}, {"vision",                "#ba29c4"}, {"reveal",                "#ba29c4"}, {"stealth",               "#bababa"}, {"conceal",               "#bababa"}, {"invisible",             "#bababa"}, {"xp",                    "#883FD1"}, {"gold",                  "#BD9D00"} }

function p.keyword(frame) local args; if frame.args == nil then args = lib.arguments(frame) else args = lib.arguments(frame.args) end for _, color in ipairs(keywordcolor) do        result = mw.ustring.find(mw.ustring.lower(args[1]), color[1]) if result ~= nil then return mw.text.nowiki(color[2]) end end return "inherit" end

return p