La documentación para este módulo puede ser creada en Módulo:Iconos/doc

local p = {}

local iconTip = {
	["habilidad"]         = "Habilidad",
	["ca"]                = "Clase de armadura",
	["escudobronce"]      = "Clase de armadura",
	["ácido"]             = "Ácido",
	["acción"]            = "Puntos de acción",
	["pa"]                = "Puntos de acción",
	["amber"]             = "Hecho sin corroborar",
	["munición"]          = "Munición",
	["android"]           = "Android OS|platform",
	["apple"]             = "Apple iOS|platform",
	["ar"]                = "All Roads",
	["bancoarmadura"]     = "Banco de trabajo para armadura",
	["átomo"]             = "Átomo",
	["ataque"]            = "Ataque",
	["mira"]              = "Ataque",
	["arma grande"]       = "Arma Grande, ataque directo",
	["big gun"]           = "Arma Grande, ataque directo",
	["arma más grande"]   = "Arma Grande, área de efecto",
	["bigger gun"]        = "Arma Grande, área de efecto",
	["espada"]            = "Arma blanca de hoja",
	["blade"]             = "Arma blanca de hoja",
	["sangrado"]          = "Sangrado",
	["desafilada"]        = "Arma blanca desafilada",
	["blunt"]             = "Arma blanca desafilada",
	["efecto extra"]      = "Efecto extra",
	["jefe"]              = "Personaje de nivel alto",
	["bronce"]            = "Bronce",
	--["bugged unav"]       = "Bugged",
	["caravana"]          = "Juega caravana",
	["cartas"]            = "Cartas",
	["centquímica"]       = "Central química",
	["compañero"]         = "Compañero",
	["confianza"]         = "Confianza",
	["fogón"]             = "Fogón",
	["artesanía"]         = "Artesanía",
	["elaboración"]       = "Artesanía",
	["craft"]             = "Artesanía",
	["daño crit"]         = "Daño crítico",
	["crit"]              = "Daño crítico",
	["efecto crit"]       = "Efecto crítico",
	["cruz"]              = "No",
	["no"]                = "No",
	["cortado"]           = "Contenido cortado",
	["omitido"]           = "Contenido cortado",
	["d20"]               = "Fallout Pen and Paper d20",
	["dpa"]               = "Daño por punto de acción",
	["daño/pa"]           = "Daño por punto de acción",
	["daño"]              = "Daño",
	["muerto"]            = "Muerto",
	["defensa"]           = "Defensa",
	["rd"]                = "Resistencia al daño",
	["escudoplata"]       = "Resistencia al daño",
	["ud"]                = "Umbral de daño",
	["escudooro"]         = "Umbral de daño",
	["detec"]             = "Detección",
	["detección"]         = "Detección",
	["ojo"]               = "Detección",
	["diálogo"]           = "Diálogo",
	["dial"]              = "Diálogo",
	["no me gusta"]       = "No me gusta",
	["distancia"]         = "Distancia",
	["rango"]             = "Distancia",
	["doctor"]            = "Doctor",
	["dps"]               = "Daño por segundo",
	["efecto"]            = "Efecto",
	["eléctrico"]         = "Eléctrico",
	["pem"]               = "Ataque de pulso electromagnético",
	["emp"]               = "Ataque de pulso electromagnético",
	["energía"]           = "Energía",
	["esclavizable"]      = "Puede ser esclavizado",
	["esencial"]          = "Esencial",
	["experiencia"]       = "Puntos de experiencia",
	["exp"]               = "Puntos de experiencia",
	["molinoexplo"]       = "Molino de explosivos",
	["explosión"]         = "Explosión",
	["facebook"]          = "Facebook",
	["bf"]                = "Biblia de Fallout",
	["fb"]                = "Biblia de Fallout",
	["fbg"]               = "Fallout: The Board Game",
	["fbgnc"]             = "Fallout: New California",
	["film"]              = "Fallout (película)",
	["fuego"]             = "Fuego",
	["puño"]              = "Puño",
	["fnv"]               = "Fallout: New Vegas",
	["fnvcs"]             = "Courier's Stash",
	["fnvdm"]             = "Dead Money",
	["fnvgra"]            = "Gun Runners' Arsenal",
	["fnvhh"]             = "Honest Hearts",
	["fnvlr"]             = "Lonesome Road (compemento)",
	["fnvowb"]            = "Old World Blues (compemento)",
	["fnvww"]             = "Yermo Salvaje",
	["fnvys"]             = "Yermo Salvaje",
	["ys"]                = "Yermo Salvaje",
	["ww"]                = "Yermo Salvaje",
	["yermo salvaje"]     = "Yermo Salvaje",
	["fo"]                = "Fallout",
	["fo1"]               = "Fallout",
	["fo2"]               = "Fallout 2",
	["fo3"]               = "Fallout 3",
	["fo3bs"]             = "Broken Steel",
	["fo3mz"]             = "Mothership Zeta",
	["fo3oa"]             = "Operation: Anchorage",
	["fo3pl"]             = "Point Lookout (complemento)",
	["fo3tp"]             = "The Pitt",
	["fo4"]               = "Fallout 4",
	["fo4aut"]            = "Automatron (complemento)",
	["fo4cc"]             = "Creation Club",
	["llavero01fo4"]      = "Llavero de 4 llaves",
	["llavero02fo4"]      = "Llavero de 5 llaves",
	["llavero03fo4"]      = "Llavero de 5 llaves",
	["fo4cw"]             = "Contraptions Workshop",
	["fo4fh"]             = "Far Harbor (complemento)",
	["tarjetagenfo4"]     = "Tarjeta genérica",
	["holofo4"]           = "Holodisco",
	["llave01fo4"]        = "Llavero Quantum",
	["llave02fo4"]        = "Llavero de cohete espacial de juguete",
	["llave03fo4"]        = "Llavero del Vault Boy",
	["notafo4"]           = "Nota",
	["fo4nw"]             = "Nuka-World (complemento)",
	["tarjetarefugiofo4"] = "Tarjeta de acceso del Refugio",
	["fo4vr"]             = "Fallout 4 VR",
	["fo4vw"]             = "Vault-Tec Workshop",
	["fo4ww"]             = "Wasteland Workshop",
	["fo76"]              = "Fallout 76",
	["fo76wa"]            = "Wild Appalachia",
	["fo76nw"]            = "Nuclear Winter",
	["fo76wl"]            = "Wastelanders",
	["fo76lr"]            = "La carrera legendaria",
	["fo76ow"]            = "Un yermo para todos",
	["fo76fs"]            = "Acero fracturado",
	["fobos"]             = "Fallout: Brotherhood of Steel",
	["fobos2"]            = "Fallout: Brotherhood of Steel 2",
	["procalim"]          = "Procesadora de alimentos",
	["fos"]               = "Fallout Shelter",
	["fot"]               = "Fallout Tactics",
	["fot2"]              = "Fallout Tactics 2",
	["fow"]               = "Fallout: Warfare",
	["fox"]               = "Fallout Extreme",
	["freir"]             = "Freir",
	["frost"]             = "Freir",
	["fww"]               = "Fallout: Wasteland Warfare",
	["fwwrpg"]            = "Fallout: Wasteland Warfare Roleplaying Game",
	["gamerscore"]        = "Gamerscore",
	["gas"]               = "Gas",
	["oro"]               = "Oro",
	["verde"]             = "Dato fiable",
	["green"]             = "Dato fiable",
	["granada"]           = "Granada",
	["grenade"]           = "Granada",
	["grupo"]             = "Grupo",
	["arma"]              = "Arma",
	["pistola"]           = "Arma",
	["odio"]              = "Odio",
	["curación"]          = "Ritmo de curación",
	["ritmo de curación"] = "Ritmo de curación",
	["vida"]              = "Puntos de vida",
	["corazón"]           = "Puntos de vida",
	["hp"]                = "Puntos de vida",
	["pv"]                = "Puntos de vida",
	["imagen"]            = "Imagen",
	["info"]              = "Información",
	["instagram"]         = "Instagram",
	["ios"]               = "Apple iOS|platform",
	["jes"]               = "J.E. Sawyer's Fallout RPG",
	["reparación"]        = "Reparaciones provisionales",
	["provisional"]       = "Reparaciones provisionales",
	["prov"]              = "Reparaciones provisionales",
	["jury"]              = "Reparaciones provisionales",
	["láser"]             = "Láser",
	["nivel"]             = "Nivel",
	["lh"]                = "Lionheart",
	["me gusta"]          = "Me gusta",
	["linkedin"]          = "Linkedin",
	["amor"]              = "Amor",
	["mac"]               = "Macintosh Classic o Mac OS X|platform",
	["macclassic"]        = "Macintosh Classic (≤ MacOS 9)|platform",
	["recámara"]          = "Capacidad de recámara",
	["rec"]               = "Capacidad de recámara",
	["mag"]               = "Capacidad de recámara",
	["cuerpo a cuerpo"]   = "Cuerpo a cuerpo",
	["melee"]             = "Cuerpo a cuerpo",
	["mencionado"]        = "Mencionado",
	["mentioned"]         = "Mencionado",
	["mercader"]          = "comerciante",
	["comerciante"]       = "comerciante",
	["mina"]              = "Mina",
	["mine"]              = "Mina",
	["mod"]               = "Con modificaciones",
	["myspace"]           = "Myspace",
	["neutral"]           = "Neutral",
	["caraneutral"]       = "Neutral",
	["nukamix"]           = "Puesto Nuka-Mixer",
	["opcional"]          = "Opcional",
	["estservo"]          = "Estación de servoarmadura",
	["juegopb"]           = "Juego de Pip-Boy",
	["pc"]                = "PC|platform",
	["probabilidad"]      = "Probabilidad",
	["porciento"]         = "Probabilidad",
	["plasma"]            = "Plasma",
	["platino"]           = "Platino",
	["veneno"]            = "Veneno",
	["ps3"]               = "Playstation 3|platform",
	["ps4"]               = "Playstation 4|platform",
	["pv13"]              = "Project V13",
	["fool"]              = "Project V13",
	["interrogación"]     = "Signo de interrogación",
	["radiación"]         = "Radiación",
	["rareza"]            = "Rareza",
	["rarity"]            = "Rareza",
	["tasa"]              = "Tasa",
	["rojo"]              = "Declaración no fiable o incorrecta",
	["red"]               = "Declaración no fiable o incorrecta",
	["repara"]            = "Repara",
	["repite"]            = "Repite",
	["requerido"]         = "Requerido",
	["rifle"]             = "Rifle",
	["bancobot"]          = "Banco de trabajo para robots",
	["semi-requerido"]    = "A veces o en una ocación requerido",
	["semi"]              = "A veces o en una ocación requerido",
	["secuencia"]         = "Secuencia",
	["escopeta"]          = "Escopeta",
	["shotgun"]           = "Escopeta",
	["sic"]               = "Faltas de ortografía, puntuación y/o gramaticales en el juego",
	["plata"]             = "Plata",
	["pam"]               = "Subfusil ametrallador",
	["smg"]               = "Subfusil ametrallador",
	["sonido"]            = "Sonido",
	["reaparece"]         = "Reaparecido",
	["dispersión"]        = "Dispersión",
	["disp"]              = "Dispersión",
	["switch"]            = "Nintendo Switch|platform",
	["tar"]               = "Project V13",
	["vistomarrón"]       = "Temporario",
	["temp"]              = "Temporario",
	["texto"]             = "Texto",
	["torn"]              = "TORN",
	["tumblr"]            = "Tumblr",
	["twitch"]            = "Twitch",
	["twitter"]           = "Twitter",
	["desarmado"]         = "Desarmado",
	["unarmed"]           = "Desarmado",
	["vb"]                = "Van Buren",
	["bancoarma"]         = "Banco de trabajo para armas",
	["peso"]              = "Peso",
	["wiki"]              = "El Refugio",
	["windows"]           = "Windows Phone|platform",
	["taller"]            = "Taller",
	["xbox360"]           = "Xbox 360|platform",
	["xboxone"]           = "Xbox One|platform",
	["valor"]             = "Valor",
	["pe"]                = "Puntos de experiencia",
	["sí"]                = "Sí",
	["visto"]             = "Sí",
	["durabilidad"]       = "Durabilidad",
	["pregunta"]          = "Signo de interrogación",
}

local gameIcon = {
	["habilidad"]         = "Icon ability.png",
	["ca"]                = "Icon shield bronze.png",
	["escudobronce"]      = "Icon shield bronze.png",
	["ácido"]             = "Icon acid.png",
	["acción"]            = "Icon action.png",
	["pa"]                = "Icon action.png",
	["amber"]             = "Icon amber.png",
	["munición"]          = "icon ammo.png",
	["android"]           = "icon android.png",
	["apple"]             = "icon appleios.png",
	["ios"]               = "icon appleios.png",
	["bancoarmadura"]     = "Fo4 Armor Work Icon.png",
	["átomo"]             = "Icon Fo76 Atom.png",
	["ataque"]            = "Icon attack.png",
	["mira"]              = "Icon attack.png",
	["arma grande"]       = "Icon heavy weapon.png",
	["big gun"]           = "Icon heavy weapon.png",
	["arma más grande"]   = "Icon big gun.png",
	["bigger gun"]        = "Icon big gun.png",
	["espada"]            = "Icon blade.png",
	["blade"]             = "Icon blade.png",
	["sangrado"]          = "Icon bleed.png",
	["desafilada"]        = "Icon blunt.png",
	["blunt"]             = "Icon blunt.png",
	["efecto extra"]      = "Icon bonus effect.png",
	["jefe"]              = "FoS Boss.png",
	["bronce"]            = "Bronze.png",
	--["bugged unav"]     = "Radroach.png",
	["caravana"]          = "Icon cards.png",
	["cartas"]            = "Icon cards.png",
	["centquímica"]       = "Fo4 Chem Work Icon.png",
	["compañero"]         = "Icon companion.png",
	["confianza"]         = "Icon confidence.png",
	["fogón"]             = "Fo4 Cook Work Icon.png",
	["artesanía"]         = "Icon crafting.png",
	["elaboración"]       = "Icon crafting.png",
	["craft"]             = "Icon crafting.png",
	["daño crit"]         = "Icon critical damage.png",
	["crit"]              = "Icon critical damage.png",
	["efecto crit"]       = "Icon crit effect.png",
	["cruz"]              = "Icon cross.png",
	["no"]                = "Icon cross.png",
	["cortado"]           = "Icon cut.png",
	["omitido"]           = "Icon cut.png",
	["daño"]              = "Icon damage.png",
	["dpa"]               = "Icon dap.png",
	["daño/pa"]           = "Icon dap.png",
	["muerto"]            = "Icon dead.png",
	["defensa"]           = "Icon shield silver.png",
	["rd"]                = "Icon shield silver.png",
	["escudoplata"]       = "Icon shield silver.png",
	["ud"]                = "Icon shield gold.png",
	["escudooro"]         = "Icon shield gold.png",
	["detec"]             = "Icon eye.png",
	["detección"]         = "Icon eye.png",
	["ojo"]               = "Icon eye.png",
	["diálogo"]           = "Icon dialogue.png",
	["dial"]              = "Icon dialogue.png",
	["no me gusta"]       = "Dislike.svg",
	["distancia"]         = "Icon range.png",
	["rango"]             = "Icon range.png",
	["doctor"]            = "Icon doctor.png",
	["dps"]               = "Icon dps.png",
	["efecto"]            = "Icon effect.png",
	["eléctrico"]         = "Icon electrical.png",
	["pem"]               = "Icon EMP.png",
	["emp"]               = "Icon EMP.png",
	["energía"]           = "Icon electrical.png",
	["esclavizable"]      = "Icon cage.png",
	["esencial"]          = "Icon essential.png",
	["experiencia"]       = "Icon XP.png",
	["exp"]               = "Icon XP.png",
	["molinoexplo"]       = "Icon fo4cw builder.png",
	["explosión"]         = "Icon explosion.png",
	["facebook"]          = "FacebookIcon.png",
	["fuego"]             = "Icon fire.png",
	["puño"]              = "Icon fist.png",
	["film"]              = "Film.png",
	["bf"]                = "gametitle-FB.png",
	["fb"]                = "gametitle-FB.png",
	["fbg"]               = "gametitle-FBG.png",
	["fbgnc"]             = "gametitle-FBGNC.png",
	["d20"]               = "gametitle-D20.png",
	["ar"]                = "gametitle-AR.png",
	["fnv"]               = "gametitle-FNV.png",
	["fnvcs"]             = "gametitle-FNV CS.png",
	["fnvdm"]             = "gametitle-FNV DM.png",
	["fnvgra"]            = "gametitle-FNV GRA.png",
	["fnvhh"]             = "gametitle-FNV HH.png",
	["fnvlr"]             = "gametitle-FNV LR.png",
	["fnvowb"]            = "gametitle-FNV OWB.png",
	["fo"]                = "gametitle-FO1.png",
	["fo1"]               = "gametitle-FO1.png",
	["fo2"]               = "gametitle-FO2.png",
	["fo3"]               = "gametitle-FO3.png",
	["fo3bs"]             = "gametitle-FO3 BS.png",
	["fo3mz"]             = "gametitle-FO3 MZ.png",
	["fo3oa"]             = "gametitle-FO3 OA.png",
	["fo3pl"]             = "gametitle-FO3 PL.png",
	["fo3tp"]             = "gametitle-FO3 TP.png",
	["fo4"]               = "gametitle-FO4.png",
	["fo4aut"]            = "gametitle-FO4 AUT.png",
	["fo4cc"]             = "gametitle-FO4 CC.png",
	["fo4cw"]             = "gametitle-FO4_CW.png",
	["fo4fh"]             = "gametitle-FO4_FH.png",
	["fo4nw"]             = "gametitle-FO4_NW.png",
	["fo4vr"]             = "gametitle-FO4VR.png",
	["fo4vw"]             = "gametitle-FO4 VW.png",
	["fo4ww"]             = "gametitle-FO4 WW.png",
	["fo76"]              = "gametitle-FO76.png",
	["fo76wa"]            = "gametitle-FO76 WA.png",
	["fo76nw"]            = "gametitle-FO76 NW.png",
	["fo76wl"]            = "gametitle-FO76 WL.png",
	["fo76lr"]            = "gametitle-FO76 LR.png",
	["fo76ow"]            = "gametitle-FO76 One Wasteland.png",
	["fo76fs"]            = "gametitle-FO76 Fractured Steel.png",
	["fobos"]             = "gametitle-FOBOS.png",
	["fobos2"]            = "gametitle-FOBOS2.png",
	["fool"]              = "PV13.png",
	["fos"]               = "gametitle-FOS.png",
	["fot"]               = "gametitle-FOT.png",
	["fot2"]              = "gametitle-FOT2.png",
	["fow"]               = "gametitle-FOW.png",
	["fox"]               = "gametitle-FOX.png",
	["fww"]               = "gametitle-FWW.png",
	["fwwrpg"]            = "gametitle-FWWRPG.png",
	["lh"]                = "gametitle-LH.png",
	["jes"]               = "gametitle-JES.png",
	["tar"]               = "gametitle-TAR.jpg",
	["torn"]              = "gametitle-TORN.png",
	["vb"]                = "gametitle-VB.png",
	["wiki"]              = "gametitle-Wiki.png",
	["pv13"]              = "PV13.png",
	["fnvww"]             = "Perk wild wasteland.png",
	["fnvys"]             = "Perk wild wasteland.png",
	["ys"]                = "Perk wild wasteland.png",
	["ww"]                = "Perk wild wasteland.png",
	["yermo salvaje"]     = "Perk wild wasteland.png",
	["llavero01fo4"]      = "icon Fo4 chain01.png",
	["llavero02fo4"]      = "icon Fo4 chain02.png",
	["llavero03fo4"]      = "icon Fo4 chain03.png",
	["tarjetagenfo4"]     = "icon Fo4 gen keycard.png",
	["holofo4"]           = "icon Fo4 holotape.png",
	["llave01fo4"]        = "icon Fo4 key01.png",
	["llave02fo4"]        = "icon Fo4 key02.png",
	["llave03fo4"]        = "icon Fo4 key03.png",
	["notafo4"]           = "icon Fo4 note.png",
	["tarjetarefugiofo4"] = "icon Fo4 vaultid.png",
	["procalim"]          = "Icon fo4cw builder.png",
	["freir"]             = "Icon effect.png",
	["frost"]             = "Icon effect.png",
	["gamerscore"]        = "Gamerscore.svg",
	["gas"]               = "Icon gas.png",
	["oro"]               = "Gold.png",
	["verde"]             = "Icon green.png",
	["green"]             = "Icon green.png",
	["granada"]           = "Icon grenade.png",
	["grenade"]           = "Icon grenade.png",
	["grupo"]             = "Icon group.png",
	["arma"]              = "Icon gun.png",
	["pistola"]           = "Icon gun.png",
	["odio"]              = "Hate.svg",
	["curación"]          = "Icon healing.png",
	["ritmo de curación"] = "Icon healing.png",
	["vida"]              = "Icon heart.png",
	["corazón"]           = "Icon heart.png",
	["hp"]                = "Icon heart.png",
	["pv"]                = "Icon heart.png",
	["imagen"]            = "Icon image.png",
	["info"]              = "Icon info.png",
	["instagram"]         = "Instagram icon.jpg",
	["reparación"]        = "JuryRigging.png",
	["provisional"]       = "JuryRigging.png",
	["prov"]              = "JuryRigging.png",
	["jury"]              = "JuryRigging.png",
	["láser"]             = "Icon laser.png",
	["nivel"]             = "Icon level.png",
	["me gusta"]          = "Like.svg",
	["linkedin"]          = "Linkedin icon.png",
	["amor"]              = "Love.svg",
	["mac"]               = "Icon mac.png",
	["macclassic"]        = "Icon mac.png",
	["recámara"]          = "Assault carbine extended magazines.png",
	["rec"]               = "Assault carbine extended magazines.png",
	["mag"]               = "Assault carbine extended magazines.png",
	["cuerpo a cuerpo"]   = "Icon melee.png",
	["melee"]             = "Icon melee.png",
	["mencionado"]        = "Icon mentioned.png",
	["mentioned"]         = "Icon mentioned.png",
	["mercader"]          = "Icon merchant.png",
	["comerciante"]       = "Icon merchant.png",
	["mina"]              = "Icon mine.png",
	["mine"]              = "Icon mine.png",
	["mod"]               = "Icon plus.png",
	["myspace"]           = "Myspace icon.png",
	["neutral"]           = "Icon neutral.png",
	["caraneutral"]       = "Neutral.svg",
	["nukamix"]           = "Icon Nuka-mixer station.png",
	["opcional"]          = "Icon optional.png",
	["estservo"]          = "Fo4 Power Work Icon.png",
	["juegopb"]           = "Fo4 Pip-Boy game.png",
	["pc"]                = "Icon pc.png",
	["probabilidad"]      = "Icon chance.png",
	["porciento"]         = "Icon chance.png",
	["plasma"]            = "Icon plasma.png",
	["platino"]           = "Plat.png",
	["veneno"]            = "Icon poison.png",
	["ps3"]               = "Icon ps3.png",
	["ps4"]               = "Icon ps4.png",
	["interrogación"]     = "Icon question.png",
	["radiación"]         = "Icon radiation.png",
	["rareza"]            = "Icon rarity.png",
	["rarity"]            = "Icon rarity.png",
	["tasa"]              = "Icon ratio.png",
	["rojo"]              = "Icon red.png",
	["red"]               = "Icon red.png",
	["repara"]            = "Icon repair.png",
	["repite"]            = "Icon repeat.png",
	["requerido"]         = "Icon required.png",
	["rifle"]             = "Icon rifle.png",
	["bancobot"]          = "Icon robot workbench.png",
	["semi-requerido"]    = "Icon semi-required.png",
	["semi"]              = "Icon semi-required.png",
	["secuencia"]         = "Icon sequence.png",
	["escopeta"]          = "Icon shotgun.png",
	["shotgun"]           = "Icon shotgun.png",
	["sic"]               = "Icon sic.png",
	["plata"]             = "Silver.png",
	["pam"]               = "Icon smg.png",
	["smg"]               = "Icon smg.png",
	["sonido"]            = "Icon sound.png",
	["reaparece"]         = "Icon spawn.png",
	["dispersión"]        = "Icon spread.png",
	["disp"]              = "Icon spread.png",
	["switch"]            = "Nintendo Switch icon.png",
	["vistomarrón"]       = "Icon check temp.png",
	["temp"]              = "Icon check temp.png",
	["texto"]             = "Icon text.png",
	["tumblr"]            = "Tumblr Icon.png",
	["twitch"]            = "Twitch icon.png",
	["twitter"]           = "Twitter icon.png",
	["desarmado"]         = "Icon unarmed.png",
	["unarmed"]           = "Icon unarmed.png",
	["bancoarma"]         = "Fo4 Weapon Work Icon.png",
	["peso"]              = "Icon weight.png",
	["windows"]           = "Icon windows.png",
	["taller"]            = "Icon workshop.png",
	["xbox360"]           = "Icon xbox360.png",
	["xboxone"]           = "Icon xboxone.png",
	["valor"]             = "Icon merchant.png",
	["pe"]                = "Icon XP.png",
	["sí"]                = "Icon check.png",
	["visto"]             = "Icon check.png",
	["durabilidad"]       = "Icon repair.png",
	["pregunta"]          = "Icon question.png",
}

local iconSize = {
	["small"]             = "x10px",
	["medium"]            = "x14px",
	["normal"]            = "x14px",
	["big"]               = "x20px",
	["pequeño"]           = "x10px",
	["mediano"]           = "x14px",
	["normal"]            = "x14px",
	["grande"]            = "x20px",
}

function trim(s)
	-- from PiL2 20.4
	return (s:gsub("^%s*(.-)%s*$", "%1"))
end

function p.Icons(frame)
	local iconList = mw.text.split(frame.args[1], ",")
	local parserError = ""
	local iconSetting
	if frame.args[2] ~= nil and string.len(frame.args[2]) > 0 then
		iconSetting = tostring(frame.args[2])
		if iconSize[iconSetting] ~= nil then
			iconSetting = iconSize[iconSetting]
		end
	else
		iconSetting = iconSize["medium"]
	end

	local iconLinks
	if frame.args[3] ~= nil then
		iconLinks = mw.text.split(frame.args[3], "|")
	end

	local tipOverride
	if frame.args[4] ~= nil then
		tipOverride = mw.text.split(frame.args[4], "|")
	end

	local n = 1
	local result = ""

	while n <= table.getn(iconList) do
		newIcon = (iconList[n])
		newIcon = newIcon:lower()
		newIcon = trim(newIcon)
		if gameIcon[newIcon] ~= nil then
			currentIcon = gameIcon[newIcon]
			if tipOverride ~= nil and tipOverride[n] ~= nil  and string.len(tipOverride[n]) > 0 then
				currentTip = tipOverride[n]
			else
				if iconLinks ~= nil and iconLinks[n] ~= nil and string.len(iconLinks[n]) > 0 then
					currentTip = iconLinks[n]
				else
					splitTip = mw.text.split(iconTip[newIcon], "|")
					currentTip = splitTip[1]
				end
			end
		else
			currentIcon = "Icon question.png"
			currentTip = "Nombre de icono no reconocido"
			result = result .. "[[Categoría:Módulos con parámetros inválidos]]"
		end

		result = result .. '<span class="va-icon" title="' .. currentTip .. '">'
		result = result .. '[' .. '[File:' .. currentIcon .. '|' .. iconSetting
		if iconLinks ~= nil and iconLinks[n] ~= nil and iconLinks[n] ~= "" then
			result = result .. '|link=' .. iconLinks[n]
		else
			result = result .. '|link='
		end
		if currentTip ~= nil then
			result = result .. '|' .. currentTip
		end

		result = result .. ']]</span>'
		if n < table.getn(iconList) then
			result = result .. " "
		end
		n = n + 1
	end

	return result .. parserError
end

function p.platforms(frame)
	local icons = mw.text.split(frame.args[1], ",")
	local iconCount = 1
	local platformCheck = ""
	local result = ""

	while iconCount <= table.getn(icons) do
		currentIcon = iconTip[string.lower(icons[iconCount])]
		platformCheck = mw.text.split(currentIcon, "|")
		if platformCheck[2] ~= nil then
			result = result .. '<span style="display: none;">' .. "[[Tiene una plataforma::"
			result = result .. platformCheck[1] .. ']]</span>'
			result = result .. '<span class="va-icon" title="' .. platformCheck[1] .. '">'
			result = result .. "[".."[Archivo:" .. gameIcon[string.lower(icons[iconCount])] .. "|x14px|link=]]"
			result = result .. '</span>'
			if iconCount < table.getn(icons) then
				result = result .. "&nbsp;"
			end
		end
		iconCount = iconCount + 1
    end
	if result == "" then
		result = '<sup>[Requieren plataformas]</sup>[[Categoría:Requieren plataformas]]'
	end

	return result
end

function p.Test(frame)
	local iconList = mw.text.split(frame.args[1], ",")
	local parserError = ""
	local iconSetting
	if frame.args[2] ~= nil and string.len(frame.args[2]) > 0 then
		iconSetting = tostring(frame.args[2])
		if iconSize[iconSetting] ~= nil then
			iconSetting = iconSize[iconSetting]
		end
	else
		iconSetting = iconSize["medium"]
	end

	local iconLinks
	if frame.args[3] ~= nil then
		iconLinks = mw.text.split(frame.args[3], ",")
	end

	local tipOverride
	if frame.args[4] ~= nil then
		tipOverride = mw.text.split(frame.args[4], ",")
	end

	local n = 1
	local result = ""

	while n <= table.getn(iconList) do
		newIcon = string.lower(iconList[n])
		if gameIcon[newIcon] ~= nil then
			currentIcon = gameIcon[newIcon]
			if tipOverride ~= nil and tipOverride[n] ~= nil  and string.len(tipOverride[n]) > 0 then
				currentTip = tipOverride[n]
			else
				if iconLinks ~= nil and iconLinks[n] ~= nil and string.len(iconLinks[n]) > 0 then
					currentTip = iconLinks[n]
				else
					splitTip = mw.text.split(iconTip[newIcon], "|")
					currentTip = splitTip[1]
				end
			end
		else
			currentIcon = "Icon question.png"
			currentTip = "Nombre de icono no reconocido"
			result = result .. "[[Categoría:Módulos con parámetros inválidos]]"
		end

		result = result .. 'Current tip: <span title="' .. currentTip .. '">' .. currentTip .. "</span>: " .. string.len(currentTip) .. '\n'

		result = result .. ']]</span>'
		if n < table.getn(iconList) then
			result = result .. " "
		end
		n = n + 1
	end

    return result .. parserError
end

function p.documentation()
	keys = {}
	for k in pairs(gameIcon) do
		table.insert(keys, k)
	end

	table.sort(keys)
	result = '{| class="va-table va-table-full"\n|-\n !prefix!!Icon!!prefix!!Icon!!prefix!!Icon\n|-\n'
	set = 1
	for k,v in ipairs(keys) do

		result = result .. "||'''" .. v .. "'''"
		result = result .. "||[[Archivo:" .. gameIcon[v] .. "|25px]]"

		if set == 3 then
			result = result .. "\n|-\n"
		end

		if set < 3 then
			set = set + 1
		else
			set = 1
		end
	end

	result = result .. "\n|}"

	return result

end

return p
El contenido de la comunidad está disponible bajo CC-BY-SA a menos que se indique lo contrario.