L'Abri
Advertisement
L'Abri
3 747
pages

Modèle pour afficher de petites icônes.

Utilisation

{{Icône|nom de l'icône}}

Afin de mettre à jour les icônes disponibles, le module Icon nécessite un nouveau paramètre dans les listes iconTip (default tooltip) et gameIcon (icon filename).

Paramètres

Requis
<unnamed 1>
Quelle icône devrait être affichée. Les icônes multiples peuvent être listées en les séparant par une virgule. ({{Icône|FO1,FO2,FO3}})
Optionnel
(défaut: "x14px")
<unnamed 2>
Spécifie la taille de l'icône. Celle-ci peut être paramétrée par un préréglage, ou donnée directement sous forme de valeur en pixels (même syntaxe que pour spécifier la taille d'une image).

Les préréglages sont :

  • petit: Les icônes seront affichées à 10px de hauteur.
  • medium/normal: Les icônes seront affichées à 14px de hauteur.
  • gros: Les icônes seront affichées à 20px de hauteur.
Optionnel
lien
La page vers laquelle le lien doit pointer (sans clôturer avec "[[]]"). Si l'infobulle n'est pas spécifiée, c'est également utilisé en tant que texte d'infobulle.
Optionnel
infobulle
Le texte d'infobulle affiché lors d'un survol de l'icône. Surcharge le texte par défaut de l'icône.

Icônes disponibles

prefix Icon prefix Icon prefix Icon
AR Gametitle-AR.png FB Gametitle-FB.png FILM Film.png
FJP Gametitle-FBG.png FJPNC Gametitle-FBGNC.png FJPWW Gametitle-FBGWW.png
FJPabri109 FBG Vault 109 icon.svg FJPabri84 FBG Vault 84 icon.svg FJPagenda FBG Agenda icon.svg
FJPagilité FBG A icon.svg FJPagressivité FBG Aggressive icon.svg FJParme FBG Weapon icon.svg
FJParmure FBG Armor icon.svg FJPasset FBG Asset icon.svg FJPbutin FBG Loot icon.svg
FJPchance FBG L icon.svg FJPcharisme FBG C icon.svg FJPcolonie FBG Settlement icon.svg
FJPcompagnon FBG Companion icon.svg FJPcoup FBG Hit icon.svg FJPcréature FBG Critter icon.svg
FJPdangeureux FBG Dangerous icon.svg FJPdistance FBG Ranged icon.svg FJPendurance FBG E icon.svg
FJPforce FBG S icon.svg FJPhumain FBG Human icon.svg FJPintelligence FBG I icon.svg
FJPliberté FBG Freedom icon.svg FJPmonstre FBG Monster icon.svg FJPmortBCJcoups FBG Die ABL Hits.png
FJPmortel FBG Deadly icon.svg FJPperception FBG P icon.svg FJPquête FBG Quest objective.svg
FJPradiation FBG Radiation icon.svg FJPretraite FBG Retreat icon.svg FJProbot FBG Robot icon.svg
FJPsecurité FBG Defender icon.svg FJPsupermutant FBG Super Mutant icon.svg FJPtenue FBG Apparel icon.svg
FJPterresdésolées FBG Wasteland icon.svg 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 FO1st FO1st.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
FO4abriID Icon Fo4 vaultid.png FO4chaine01 Icon Fo4 chain01.png FO4chaine02 Icon Fo4 chain02.png
FO4clé01 Icon Fo4 key01.png FO4clé02 Icon Fo4 key02.png FO4clé03 Icon Fo4 key03.png
FO4clégen Icon Fo4 gen keycard.png FO4holo Icon Fo4 holotape.png FO4note Icon Fo4 note.png
FO76 Gametitle-FO76.png FO76FW Gametitle-FO76 FW.png FO76LL Titrejeu-FO76 LL.png
FO76LR Gametitle-FO76 LR.png FO76NW Gametitle-FO76 NW.png FO76OW Gametitle-FO76 One Wasteland.png
FO76SD Titrejeu-FO76 SD.png FO76SR Gametitle-FO76 Steel Reign.png FO76TP Gametitle-FO76 TP.png
FO76TS Gametitle-FO76 TS.png FO76WA Gametitle-FO76 WA.png FO76WL Titrejeu-FO76 WL.png
FOBOS Gametitle-FOBOS.png FOBOS2 Gametitle-FOBOS2.png FOD20 Gametitle-D20.png
FOS Gametitle-FOS.png FOSO Gametitle-FOSO.png FOT Gametitle-FOT.png
FOT2 Gametitle-FOT2.png FOW Gametitle-FOW.png FOWW Gametitle-FWW.png
FOX Gametitle-FOX.png FPB Gametitle-FPB.png FWW Gametitle-FWW.png
FWWRPG Gametitle-FWWRPG.png JES Gametitle-JES.png LH Gametitle-LH.png
OMACP Penny Arcade.gif PV13 PV13.png TAR Gametitle-TAR.jpg
TORN Gametitle-TORN.png VB Gametitle-VB.png WIKI Gametitle-Wiki.png
acide Icon acid.png adore Love.svg agi FO76 A.png
aime Like.svg aimepas Dislike.svg alcool FO76 Alcohol Icon.svg
aléatoire FO76 ui roleplay team.png ambre Icon amber.png android Icon android.png
apparition Icon spawn.png apple Icon appleios.png aptlégendaire FO76 Perk coin.png
arme FO76 iconwheel pistol.png armelourde Icon heavy weapon.png armelourdeaoe Icon big gun.png
asservissable Icon cage.png atarmes Fo4 Weapon Work Icon.png atarmures Fo4 Armor Work Icon.png
atelier Icon workshop.png atelierpublic Icon Public Workshop.png atome FO76 Atom Currency 2.png
atrobot Icon robot workbench.png attaque Icon attack.png aucunéchange Icon NoTrade.png
boisson FO76 Drink Icon.svg boîteàsandwich FO76 Lunchbox Icon.svg bronzeca Icon shield bronze.png
ca Icon shield bronze.png cac Icon melee.png cadencedetir FO76 UI icon Ammo custom.png
camp FO76 ui extra team.png capachargeur Assault carbine extended magazines.png capacité Icon ability.png
caps Caps.png caravan Icon cards.png cartes Icon cards.png
cerveau Brain icon.png cha FO76 L.png chance FO76 ui roleplay team.png
chef FoS Boss.png chr FO76 C.png compagnon NW icon ally.png
confiance Icon confidence.png contondante Icon blunt.png coupé Icon cut.png
cryo Icon cryo.png crédit Credits icon.png dgtcrit Icon critical damage.png
dial Icon dialogue.png dispersion Icon spread.png distance Icon range.png
docteur Icon doctor.png dpa Icon dap.png dps Icon dps.png
dur Icon limitedtime.png défense Icon shield silver.png dégâts Icon damage.png
détection Icon eye.png déteste Hate.svg effet Icon effect.png
effetbonus Icon bonus effect.png effetcrit Icon crit effect.png end FO76 E.png
essentiel Icon essential.png explosion Icon explosion.png fabrexpl Icon fo4cw builder.png
fabrication Icon crafting.png facebook FacebookIcon.png feminin Female-gender-sign.png
feu Icon fire.png fnvww Icon wildwasteland.png for FO76 S.png
froid Icon effect.png fusil Icon rifle.png gamerscore Gamerscore.svg
gaz Icon gas.png gratuit ATX FREE.png grenade FO76 iconwheel grenade.png
groupe Icon group.png haché Fire axe icon color.png iem Icon EMP.png
image Icon image.png indifférent Neutral.svg infos Icon info.png
instagram Instagram icon.jpg int FO76 I.png inutilisé Icon unused.png
jce FO76 ui casual team.png jcj FO76 ui workshopraid team.png jeupb Fo4 Pip-Boy game.png
jeux FO76 ui roleplay team.png jury FO76 vaultboy licensedplumber 01.png lame Icon blade.png
laser Icon laser.png lieu FO76 ui exploration team.png limitée YOU SHOULD BUY THIS.png
lingot Fo76 Icon Gold Bullion.png linkedin Linkedin icon.png légendaire Icon legendary.png
mac Icon mac.png macclassic Icon mac.png maladie Icon disease.png
marchand FO76 ui trading team.png masculin Male-gender-sign.png mentionné Icon mentioned.png
mine FO76 iconwheel minefrag.png mitraille FO76 Scrip.png mod Icon plus.png
mort Icon dead.png munitions Icon ammo.png munitions2 Icon ammo01.png
mutation FO76 Mutation Icon.svg muté FO76 vaultboy dna.png myspace Myspace icon.png
neutre Icon neutral.png niveau Icon level.png non Icon cross.png
note Icon Fo4 note.png nourriture Fallout 76 Food Icon.svg nouveau ATX NEW.png
nukamix Icon Nuka-mixer station.png nw FO76NW Vault 51 icon.png opquotidiennes FO76 ui dailyops team.png
optionnel Icon optional.png oui Icon check.png oui1 Icon CheckYellowShadowed.png
ouitemp Icon check temp.png pa Icon ap.png pc Icon pc.png
pe Icon XP.png per FO76 P.png plasma Icon plasma.png
pm Icon smg.png poids FO76 icon weight.png poing Icon fist.png
poison Icon poison.png poison2 Poison Icon.png pompe Icon shotgun.png
portée Icon range.png poscuis Fo4 Cook Work Icon.png pourcentage FO76 ui roleplay team.png
prnour Icon fo4cw builder.png prochainement Mbox upcoming.png présent FO76 Present Icon.png
ps3 Icon ps3.png ps4 Icon ps4.png pv Icon heart.png
quête FO76 ui icon quest.png radiations Icon radiation.png raidabri Vault Raids.png
rareté Icon rarity.png ratio Icon ratio.png rd Icon shield silver.png
requis Icon required.png rouge Icon red.png réparable FO76 ui workshop team.png
répétable Icon repeat.png saignement Icon bleed.png saisonnier FO76 Quest Old Man Winter.png
sansarmes Icon unarmed.png score FO76 scoresprite seasons.png scout FO76 Pioneer Scouts.png
sd Icon shield gold.png seau Icon FO76 mole miner pail.png semirequis Icon semi-required.png
sic Icon sic.png soda FO76 Soda Icon.svg soins Icon healing.png
son Icon sound.png starmass Fo4 Power Work Icon.png stchim Fo4 Chem Work Icon.png
stimpak FO76 Stimpak Icon.svg subchim FO76 Chems Icon.svg survie FO76 icon roadmap survival.png
switch Nintendo Switch icon.png séquence Icon sequence.png temporaire Icon limitedtime.png
texte Icon text.png thé FO76 Drink Tea Icon.svg tropheeargent Silver.png
tropheebronze Bronze.png tropheeor Gold.png tropheeplatine Plat.png
tumblr Tumblr Icon.png twitch Twitch icon.png twitter Twitter icon.png
vaulttec Icon vaulttec.png vert Icon green.png vt Icon vaulttec.png
wild wasteland Icon wildwasteland.png windows Icon windows.png ww Icon wildwasteland.png
xbox360 Icon xbox360.png xboxone Icon xboxone.png électrique Icon electrical.png
énergie Icon electrical.png étoile Icon legendary.png évènement FO76 icon map event.png
évènementpublic FO76 icon map public event.png

De plus, toutes les abréviations gérées par {{Abr}} peuvent être utilisée pour afficher une icône correspondante à un jeu.


local p = {}
 
local iconTip = {
    -- Plateformes
    ["android"]              = "SE Android|plateforme",
    ["windows"]              = "Windows Phone|plateforme",
    ["apple"]                = "Apple iOS|plateforme",
    ["switch"]               = "Nintendo Switch|plateforme",
    ["pc"]                   = "PC|plateforme",
    ["mac"]                  = "Macintosh Classic ou Mac OS X|plateforme",
    ["macclassic"]           = "Macintosh Classic (≤ MacOS 9)|plateforme",
    ["xbox360"]              = "Xbox 360|plateforme",
    ["xboxone"]              = "Xbox One|plateforme",
    ["ps3"]                  = "PlayStation 3|plateforme",
    ["ps4"]                  = "PlayStation 4|plateforme",

    -- Publications
    ["AR"]                   = "All Roads",
    ["FB"]                   = "Fallout Bible",
    ["OMACP"]                = "One Man, and a Crate of Puppets",
    ["survie"]               = "Mode survie",

    -- Jeux distribués
    ["FO1"]                  = "Fallout",
    ["FO2"]                  = "Fallout 2",
    ["FO3"]                  = "Fallout 3",
    ["FO3BS"]                = "Broken Steel (extension)",
    ["FO3MZ"]                = "Mothership Zeta (extension)",
    ["FO3OA"]                = "Operation: Anchorage (extension)",
    ["FO3PL"]                = "Point Lookout (extension)",
    ["FO3TP"]                = "The Pitt (extension)",
    ["FNV"]                  = "Fallout: New Vegas",
    ["FNVCS"]                = "Courier Stash (extension)",
    ["FNVDM"]                = "Dead Money (extension)",
    ["FNVGRA"]               = "Arsenal des Gun Runners (extension)",
    ["FNVHH"]                = "Honest Hearts (extension)",
    ["FNVLR"]                = "Lonesome Road (extension)",
    ["FNVOWB"]               = "Old World Blues (extension)",
    ["fnvww"]                = "Wild Wasteland",
    ["wild wasteland"]       = "Wild Wasteland",
    ["ww"]                   = "Wild Wasteland",
    ["FO4"]                  = "Fallout 4",
    ["FO4AUT"]               = "Automatron (extension)",
    ["FO4CC"]                = "Creation Club",
    ["FO4CW"]                = "Contraptions Workshop",
    ["FO4FH"]                = "Far Harbor (extension)",
    ["FO4NW"]                = "Nuka-World (extension)",
    ["FO4VR"]                = "Fallout 4 VR",
    ["FO4VW"]                = "Vault-Tec Workshop",
    ["FO4WW"]                = "Wasteland Workshop",
    ["FO1st"]                = "Fallout 1st",
    ["FO76"]                 = "Fallout 76",
    ["FO76WA"]               = "Wild Appalachia (extension)",  
    ["FO76NW"]               = "Nuclear Winter (extension)",
    ["FO76WL"]               = "Wastelanders (extension)",
    ["FO76LR"]               = "La course légendaire",
    ["FO76OW"]               = "Terres désolées pour tous",
    ["FO76SD"]               = "Aube d'Acier",
    ["FO76LL"]               = "Paré à tout",
    ["FO76SR"]               = "Règne d'Acier",
    ["FO76FW"]               = "Fallout Worlds",
    ["FO76TS"]               = "Contes du Firmament",
    ["FO76TP"]               = "Expeditions: The Pitt",
    ["FOBOS"]                = "Fallout: Brotherhood of Steel",
    ["FOBOS2"]               = "Fallout: Brotherhood of Steel 2",
    ["FOS"]                  = "Fallout Shelter",
    ["FOSO"]                 = "Fallout Shelter Online",
    ["FOT"]                  = "Fallout Tactics",
    ["FOT2"]                 = "Fallout Tactics 2",
    ["A76"]                  = "Abri 76",
    ["raidabri"]             = "Raids d'Abri",
    ["jeu"]                  = "Gameplay",
    
    -- Jeux annulés
    ["A76"]                  = "FO76 Vault 76 icon.png", 
    ["VB"]                   = "Van Buren",
    ["TORN"]                 = "Jeu TORN",
    ["PV13"]                 = "Projet V13",
    ["TAR"]                  = "Projet V13",
    ["FOX"]                  = "Fallout Extreme",

    -- Autres projets
    ["JES"]                  = "Jeu de Rôle Fallout de J.E. Sawyer",
    ["LH"]                   = "Lionheart",
    ["FOD20"]                = "Fallout Pen and Paper d20",
    ["FILM"]                 = "Fallout (Le Film)",
    ["FJP"]                  = "Fallout: Le jeu de plateau",
    ["FJPNC"]                = "Fallout: New California (extension)",
    ["FOWW"]                 = "Fallout: Wasteland Warfare",
    ["FWW"]                  = "Fallout: Wasteland Warfare",
    ["FWWRPG"]               = "Fallout: Wasteland Warfare Roleplaying Game",

    -- Réseaux sociaux
    ["facebook"]             = "Facebook",
    ["instagram"]            = "Instagram",
    ["linkedin"]             = "Linkedin",
    ["myspace"]              = "Myspace",
    ["tumblr"]               = "Tumblr",
    ["twitch"]               = "Twitch",
    ["twitter"]              = "Twitter",

    -- Réactions
    ["adore"]                = "Adore",
    ["aime"]                 = "Apprécie",
    ["aimepas"]              = "N'apprécie pas",
    ["déteste"]              = "Déteste",
    ["indifférent"]          = "Indifférent",

    -- Artisanat
    ["atelier"]              = "Atelier",
    ["atelierpublic"]        = "Atelier public",
    ["atarmes"]              = "Atelier d'armes",
    ["atarmures"]            = "Atelier d'armures",
    ["atrobot"]              = "Atelier de robotique",
    ["fabrication"]          = "Fabrication",
    ["poscuis"]              = "Poste de cuisine",
    ["stchim"]               = "Station de chimie",
    ["starmass"]             = "Station d'armure assistée",
    ["nukamix"]              = "Station de Nuka Mixer",
    ["prnour"]               = "Processeur de nourriture",
    ["fabrexpl"]             = "Fabrique d'explosifs",
    ["brico"]                = "Bricolage",

    -- Gameplay
    ["niveau"]               = "Niveau",
    ["pa"]                   = "Points d'action",
    ["pe"]                   = "Points d'expérience",
    ["pv"]                   = "Points de vie",
    ["dégâts"]               = "Dégâts",
    ["dgtcrit"]              = "Dégâts critiques",
    ["effetcrit"]            = "Effet critique",
    ["effetbonus"]           = "Effet bonus",
    ["dpa"]                  = "Dégâts par Point d'Action",
    ["saignement"]           = "Saignement",
    ["poids"]                = "Poids",
    ["munitions"]            = "Munitions",
    ["munitions2"]           = "Munitions",
    ["soins"]                = "Régénération de santé",
    ["dispersion"]           = "Dispersion",
    ["dps"]                  = "Dégâts par seconde",       
    ["effet"]                = "Effet",
    ["radiations"]           = "Radiations",
    ["atome"]                = "Atome",
    ["distance"]             = "Distance",
    ["détection"]            = "Détection",
    ["capachargeur"]         = "Capacité du chargeur",
    ["portée"]               = "Portée",
    ["rareté"]               = "Rareté",
    ["ratio"]                = "Ratio",
    ["poison"]               = "Poison",
    ["poison2"]              = "Poison2",
    ["présent"]              = "Présent",
    ["froid"]                = "Froid",
    ["acide"]                = "Acide",
    ["attaque"]              = "Attaque",
    ["chance"]               = "Chance",
    ["ca"]                   = "Classe d'armure",
    ["rd"]                   = "Résistance aux dégâts",
    ["sd"]                   = "Seuil de dégâts",
    ["dur"]                  = "Durée",
    ["capacité"]             = "Capacité",
    ["explosion"]            = "Explosion",
    ["feu"]                  = "Feu",
    ["cadencedetir"]         = "Cadence de tir",
    ["poing"]                = "Poing",
    ["gaz"]                  = "Gaz",
    ["défense"]              = "Défense",
    ["aptlégendaire"]        = "Aptitude légendaire",
    ["opquotidiennes"]       = "Opérations quotidiennes",
    ["nw"]                   = "Battle-royale Nuclear Winter",
    ["score"]                = "S.C.O.R.E.",
    ["mitraille"]            = "Mitraille légendaire",
    ["per"]                  = "Perception",
    ["for"]                  = "Force",
    ["agi"]                  = "Agilité",
    ["chr"]                  = "Charisme",
    ["end"]                  = "Endurance",
    ["int"]                  = "Intelligence",
    ["cha"]                  = "Chance",
    ["maladie"]              = "Maladie",
    ["muté"]                 = "Mutation",
    ["mutation"]             = "Mutation",
    ["évènement"]            = "Évènement",
    ["évènementpublic"]      = "Évènement public",
    ["jce"]                  = "JcE",
    ["jcj"]                  = "JcJ",
    ["légendaire"]           = "Légendaire",
    ["aléatoire"]            = "Chance aléatoire",
    ["saisonnier"]           = "Contenu saisonnier",
    ["inutilisé"]            = "Inutilisé",
    ["prochainement"]        = "Prochainement",
    ["cerveau"]              = "Appris par défaut",
    ["étoile"]               = "Légendaire",
    ["subchim"]              = "Substances chimiques",

    -- Type d'arme
    ["arme"]                 = "Arme à feu",
    ["armelourde"]           = "Armes lourdes, attaque directe",
    ["armelourdeaoe"]        = "Armes lourdes, zone d'effet",
    ["lame"]                 = "Arme de mêlée tranchante",
    ["contondante"]          = "Arme de mêlée contondante",
    ["sansarmes"]            = "Sans armes",
    ["cac"]                  = "Corps à corps",
    ["fusil"]                = "Fusil",
    ["pompe"]                = "Fusil à pompe",
    ["pm"]                   = "Pistolet-mitrailleur",
    ["laser"]                = "Laser",
    ["plasma"]               = "Plasma",
    ["électrique"]           = "Électrique",
    ["énergie"]              = "Énergie",
    ["grenade"]              = "Grenade",
    ["mine"]                 = "Mine",
    ["iem"]                  = "IEM",
    ["cryo"]                 = "Cryo",

    -- Personnages
    ["chef"]                 = "Personnage Haut Niveau",
    ["caravan"]              = "Joue au Caravan",
    ["cartes"]               = "Cartes",
    ["compagnon"]            = "Compagnon",
    ["confiance"]            = "Confiance",
    ["docteur"]              = "Docteur",
    ["feminin"]              = "Féminin",
    ["marchand"]             = "Marchand",
    ["masculin"]             = "Masculin",
    ["groupe"]               = "Groupe",
    ["FNVWW"]                = "Wild Wasteland",
    ["scout"]                = "Scouts pionniers",
    
    -- Fallout: Le jeu de plateau (icônes)
    ["FJPmonstre"]		     = "Monstre",
    ["FJPagenda"]		     = "Influence / Agenda",
    ["FJPagressivité"]	     = "Agressivité",
    ["FJPagilité"]		     = "Agilité",
    ["FJPtenue"]		     = "Tenue",
    ["FJParmure"]		     = "Armure",
    ["FJPasset"]		     = "Asset",
    ["FJPcharisme"]		     = "Charisme",
    ["FJPcompagnon"]	     = "Compagnon",
    ["FJPcréature"]		     = "Créature",
    ["FJPdangereux"]	     = "Dangereux",
    ["FJPmortel"]		     = "Mortel",
    ["FJPendurance"]	     = "Endurance",
    ["FJPliberté"]		     = "Liberté",
    ["FJPcoup"]			     = "Coup",
    ["FJPhumain"]		     = "Humain",
    ["FJPintelligence"]      = "Intelligence",
    ["FJPbutin"]	         = "Butin",
    ["FJPchance"]		     = "Chance",
    ["FJPperception"]	     = "Perception",
    ["FJPquête"]		     = "Action de quête",
    ["FJPradiation"]	     = "Radiation",
    ["FJPdistance"]		     = "À distance",
    ["FJPretraite"]		     = "Retraite",
    ["FJProbot"]		     = "Robot",
    ["FJPmortBCJcoups"]	     = "Mort SVAV : bras, corps, jambes, 2 coups",
    ["FJPsecurité"]		     = "Sécurité",
    ["FJPcolonie"]	         = "Colonie",
    ["FJPforce"]		     = "Force",
    ["FJPsupermutant"]	     = "Super Mutant",
    ["FJPabri84"]		     = "Abri 84",
    ["FJPabri109"]		     = "Abri 109",
    ["FJPterresdésolées"]	 = "Terres désolées",
    ["FJParme"]		         = "Arme",

    -- Objets
    ["alcool"]               = "Alcool",
    ["boîteàsandwich"]       = "Boîte à sandwich",
    ["stimpak"]              = "Stimpak",
    ["mod"]                  = "Avec mods",
    ["FO4chaine01"]          = "Porte-clés quatre",
    ["FO4chaine02"]          = "Porte-clés cinq",                
    ["FO4clégen"]            = "Clé générique",
    ["FO4holo"]              = "Holobande",
    ["FO4clé01"]             = "Clé Quantum",
    ["FO4clé02"]             = "Clé du jouet fusée",
    ["FO4clé03"]             = "Clé Vault Boy",
    ["FO4note"]              = "Note",
    ["FO4abriID"]            = "Carte d'identification d'Abri",
    ["jeupb"]                = "Jeu Pip-Boy",
    ["lingot"]               = "Lingot d'or",
    ["camp"]                 = "Camp",
    ["caps"]                 = "Caps",
    ["vaulttec"]             = "Vault-Tec",
    ["vt"]                   = "Vault-Tec",
    ["lieu"]                 = "Lieu",
    ["note"]                 = "Note",
    ["seau"]                 = "Seau de taupe minière",
    ["nourriture"]           = "Nourriture",
    ["boisson"]              = "Boisson",
    ["thé"]                  = "Thé",
    ["soda"]                 = "Soda",
    ["crédit"]               = "Crédits du Creation Club",

    -- Conditions
    ["requis"]               = "Requis",
    ["semirequis"]           = "Parfois requis ou requis au moins une fois",
    ["optionnel"]            = "Optionnel",
    ["gratuit"]              = "Gratuit",

    -- État
    ["mort"]                 = "Décédé",
    ["temporaire"]           = "Temporaire",
    ["oui"]                  = "Validé",
    ["oui1"]                 = "Validé",
    ["ouitemp"]              = "Validé temporairement",
    ["non"]                  = "Non",
    ["aucunéchange"]         = "Aucun échange",
    ["vert"]                 = "Fait fiable",
    ["ambre"]                = "Fait non corroboré",
    ["rouge"]                = "Fait peu fiable ou incorrect",
    ["question"]             = "Point d'interrogation",
    ["mentionné"]            = "Mentionné",
    ["répétable"]            = "Répétable",
    ["réparable"]            = "Réparable",
    ["neutre"]               = "Neutre",
    ["essentiel"]            = "Essentiel",
    ["asservissable"]        = "Peut être assujetti",
    ["limitée"]              = "Édition limitée",
    ["nouveau"]              = "Nouveau",
    ["quête"]                = "Quête",

    -- Intra Wiki
    ["WIKI"]                 = "L'Abri",
    ["son"]                  = "Son",
    ["apparition"]           = "Apparition",
    ["texte"]                = "Texte",
    ["séquence"]             = "Séquence",
    ["sic"]                  = "Épellation, ponctuation et/ou grammaire dans le jeu",
    ["coupé"]                = "Contenu coupé",
    ["haché"]                = "Haché",
    ["dial"]                 = "Dialogue",
    ["image"]                = "Image",
    ["infos"]                = "Informations",

    -- Succès
    ["gamerscore"]           = "Gamerscore",
    ["tropheebronze"]        = "Trophée Bronze",
    ["tropheeargent"]        = "Trophée Argent",
    ["tropheeor"]            = "Trophée Or",
    ["tropheeplatine"]       = "Trophée Platine",

    ["jury"]                 = "Jury Rigging"
}
 
local gameIcon = {
    ["capacité"]        = "Icon ability.png",
    ["bronzeca"]        = "Icon shield bronze.png",
    ["acide"]           = "Icon acid.png",
    ["pa"]              = "Icon ap.png",
    ["ambre"]           = "Icon amber.png",
    ["munitions"]       = "icon ammo.png",
    ["munitions2"]      = "Icon ammo01.png",
    ["android"]         = "icon android.png",
    ["apple"]           = "icon appleios.png",
    ["AR"]              = "gametitle-AR.png",
    ["atarmures"]       = "Fo4 Armor Work Icon.png",
    ["atome"]           = "FO76 Atom Currency 2.png",
    ["attaque"]         = "Icon attack.png",
    ["armelourde"]      = "Icon heavy weapon.png",
    ["armelourdeaoe"]   = "Icon big gun.png",
    ["lame"]            = "Icon blade.png",
    ["saignement"]      = "Icon bleed.png",
    ["contondante"]     = "Icon blunt.png",
    ["cryo"]            = "Icon cryo.png",
    ["effetbonus"]      = "Icon bonus effect.png",
    ["chef"]            = "FoS Boss.png",
    ["cerveau"]         = "Brain icon.png",
    ["tropheebronze"]   = "Bronze.png",
    ["caravan"]         = "Icon cards.png",
    ["cartes"]          = "Icon cards.png",
    ["chance"]          = "FO76 ui roleplay team.png",
    ["oui"]             = "Icon check.png",
    ["oui1"]            = "Icon CheckYellowShadowed.png",
    ["ouitemp"]         = "Icon check temp.png",
    ["stchim"]          = "Fo4_Chem_Work_Icon.png",
    ["compagnon"]       = "NW icon ally.png",
    ["confiance"]       = "Icon confidence.png",
    ["poscuis"]         = "Fo4_Cook_Work_Icon.png",
    ["fabrication"]     = "Icon crafting.png",
    ["effetcrit"]       = "Icon crit effect.png",
    ["dgtcrit"]         = "Icon critical damage.png",
    ["non"]             = "Icon cross.png",
    ["aucunéchange"]    = "Icon NoTrade.png",
    ["attaque"]         = "Icon attack.png",
    ["coupé"]           = "Icon cut.png",
    ["FOD20"]           = "gametitle-D20.png",
    ["dégâts"]          = "Icon damage.png",
    ["dpa"]             = "Icon dap.png",
    ["mort"]            = "Icon dead.png",
    ["défense"]         = "Icon shield silver.png",
    ["détection"]       = "Icon eye.png",
    ["dial"]            = "Icon dialogue.png",
    ["aimepas"]         = "Dislike.svg",
    ["distance"]        = "Icon range.png",
    ["docteur"]         = "Icon doctor.png",
    ["dps"]             = "Icon dps.png",
    ["ca"]              = "Icon shield bronze.png",
    ["rd"]              = "Icon shield silver.png",
    ["sd"]              = "Icon shield gold.png",
    ["dur"]             = "Icon limitedtime.png",
    ["effet"]           = "Icon effect.png",
    ["électrique"]      = "Icon electrical.png",
    ["iem"]             = "Icon EMP.png",
    ["énergie"]         = "Icon electrical.png",
    ["asservissable"]   = "Icon cage.png",
    ["essentiel"]       = "Icon essential.png",
    ["per"]             = "FO76 P.png",
    ["for"]             = "FO76 S.png",
    ["agi"]             = "FO76 A.png",
    ["chr"]             = "FO76 C.png",
    ["end"]             = "FO76 E.png",
    ["int"]             = "FO76 I.png",
    ["cha"]             = "FO76 L.png",
    ["maladie"]         = "Icon disease.png",
    ["muté"]            = "FO76 vaultboy dna.png",
    ["mutation"]        = "FO76 Mutation Icon.svg",
    ["pe"]              = "Icon XP.png",
    ["fabrexpl"]        = "Icon fo4cw builder.png",
    ["explosion"]       = "Icon explosion.png",
    ["facebook"]        = "FacebookIcon.png",
    ["FB"]              = "gametitle-FB.png",
    ["FJP"]             = "gametitle-FBG.png",
    ["FJPNC"]           = "gametitle-FBGNC.png",
    ["FJPWW"]           = "gametitle-FBGWW.png",
    ["FILM"]            = "Film.png",
    ["feu"]             = "Icon fire.png",
    ["cadencedetir"]    = "FO76 UI icon Ammo custom.png",
    ["poing"]           = "Icon fist.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",
    ["fnvww"]           = "Icon wildwasteland.png",
    ["wild wasteland"]  = "Icon wildwasteland.png",
    ["ww"]              = "Icon wildwasteland.png",
    ["scout"]           = "FO76 Pioneer Scouts.png",
    ["FJPagenda"]		= "FBG Agenda icon.svg",
    ["FJPagressivité"]	= "FBG Aggressive icon.svg",
    ["FJPagilité"]		= "FBG A icon.svg",
    ["FJPtenue"]		= "FBG Apparel icon.svg",
    ["FJParmure"]		= "FBG Armor icon.svg",
    ["FJPasset"]		= "FBG Asset icon.svg",
    ["FJPcharisme"]		= "FBG C icon.svg",
    ["FJPcompagnon"]	= "FBG Companion icon.svg",
    ["FJPcréature"]		= "FBG Critter icon.svg",
    ["FJPdangeureux"]	= "FBG Dangerous icon.svg",
    ["FJPmortel"]		= "FBG Deadly icon.svg",
    ["FJPendurance"]	= "FBG E icon.svg",
    ["FJPliberté"]		= "FBG Freedom icon.svg",
    ["FJPcoup"]			= "FBG Hit icon.svg",
    ["FJPhumain"]		= "FBG Human icon.svg",
    ["FJPintelligence"] = "FBG I icon.svg",
    ["FJPbutin"]		= "FBG Loot icon.svg",
    ["FJPchance"]		= "FBG L icon.svg",
    ["FJPmonstre"]		= "FBG Monster icon.svg",
    ["FJPperception"]	= "FBG P icon.svg",
    ["FJPquête"]		= "FBG Quest objective.svg",
    ["FJPradiation"]	= "FBG Radiation icon.svg",
    ["FJPdistance"]		= "FBG Ranged icon.svg",
    ["FJPretraite"]		= "FBG Retreat icon.svg",
    ["FJPmortBCJcoups"]	= "FBG Die ABL Hits.png",
    ["FJProbot"]		= "FBG Robot icon.svg",
    ["FJPsecurité"]		= "FBG Defender icon.svg",
    ["FJPcolonie"]	    = "FBG Settlement icon.svg",
    ["FJPforce"]		= "FBG S icon.svg",
    ["FJPsupermutant"]	= "FBG Super Mutant icon.svg",
    ["FJPabri84"]		= "FBG Vault 84 icon.svg",
    ["FJPabri109"]		= "FBG Vault 109 icon.svg",
    ["FJPterresdésolées"] = "FBG Wasteland icon.svg",
    ["FJParme"]		    = "FBG Weapon icon.svg",
    ["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",
    ["FO4chaine01"]     = "icon Fo4 chain01.png",
    ["FO4chaine02"]     = "icon Fo4 chain02.png",
    ["FO4CW"]           = "gametitle-FO4_CW.png",
    ["FO4FH"]           = "gametitle-FO4_FH.png",
    ["FO4clégen"]       = "icon Fo4 gen keycard.png",
    ["FO4holo"]         = "icon Fo4 holotape.png",
    ["FO4clé01"]        = "icon Fo4 key01.png",
    ["FO4clé02"]        = "icon Fo4 key02.png",
    ["FO4clé03"]        = "icon Fo4 key03.png",
    ["FO4note"]         = "icon Fo4 note.png",
    ["FO4NW"]           = "gametitle-FO4_NW.png",
    ["FO4abriID"]       = "icon Fo4 vaultid.png",
    ["FO4VR"]           = "gametitle-FO4VR.png",
    ["FO4VW"]           = "gametitle-FO4_VW.png",
    ["FO4WW"]           = "gametitle-FO4_WW.png",
    ["FO1st"]           = "FO1st.png",
    ["FO76"]            = "gametitle-FO76.png",
    ["FO76WA"]          = "gametitle-FO76 WA.png",
    ["FO76NW"]          = "gametitle-FO76 NW.png",
    ["FO76WL"]          = "Titrejeu-FO76 WL.png",
    ["FO76LR"]          = "gametitle-FO76 LR.png",
    ["FO76OW"]          = "gametitle-FO76 One Wasteland.png",
    ["FO76SD"]          = "Titrejeu-FO76 SD.png",
    ["FO76LL"]          = "Titrejeu-FO76 LL.png",
    ["FO76SR"]          = "gametitle-FO76 Steel Reign.png",
    ["FO76FW"]          = "gametitle-FO76 FW.png",
    ["FO76TS"]          = "gametitle-FO76 TS.png",
    ["FO76TP"]          = "gametitle-FO76 TP.png",
    ["FOBOS"]           = "gametitle-FOBOS.png",
    ["FOBOS2"]          = "gametitle-FOBOS2.png",
    ["prnour"]          = "Icon fo4cw builder.png",
    ["FOS"]             = "gametitle-FOS.png",
    ["FOSO"]            = "gametitle-FOSO.png",
    ["FOT"]             = "gametitle-FOT.png",
    ["FOT2"]            = "gametitle-FOT2.png",
    ["FOW"]             = "gametitle-FOW.png",
    ["FOX"]             = "gametitle-FOX.png",
    ["FPB"]             = "gametitle-FPB.png",
    ["froid"]           = "Icon effect.png",
    ["FWW"]             = "gametitle-FWW.png",
    ["FOWW"]            = "gametitle-FWW.png",
    ["FWWRPG"]          = "gametitle-FWWRPG.png",
    ["feminin"]         = "Female-gender-sign.png",
    ["masculin"]        = "Male-gender-sign.png",
    ["gamerscore"]      = "Gamerscore.svg",
    ["gaz"]             = "Icon gas.png",
    ["tropheeor"]       = "Gold.png",
    ["lingot"]          = "Fo76 Icon Gold Bullion.png",
    ["vert"]            = "Icon green.png",
    ["grenade"]         = "FO76 iconwheel grenade.png",
    ["groupe"]          = "Icon group.png",
    ["pourcentage"]     = "FO76 ui roleplay team.png",
    ["arme"]            = "FO76 iconwheel pistol.png",
    ["déteste"]         = "Hate.svg",
    ["soins"]           = "Icon healing.png",
    ["haché"]           = "Fire axe icon color.png",
    ["pv"]              = "Icon heart.png",
    ["image"]           = "Icon image.png",
    ["infos"]           = "Icon info.png",
    ["instagram"]       = "Instagram icon.jpg",
    ["JES"]             = "gametitle-JES.png",
    ["jury"]            = "FO76 vaultboy licensedplumber 01.png",
    ["laser"]           = "Icon laser.png",
    ["niveau"]          = "Icon level.png",
    ["LH"]              = "gametitle-LH.png",
    ["aime"]            = "Like.svg",
    ["linkedin"]        = "Linkedin icon.png",
    ["adore"]           = "Love.svg",
    ["temporaire"]      = "Icon limitedtime.png",
    ["mac"]             = "Icon mac.png",
    ["macclassic"]      = "Icon mac.png",
    ["capachargeur"]    = "Assault carbine extended magazines.png",
    ["cac"]             = "Icon melee.png",
    ["mentionné"]       = "Icon mentioned.png",
    ["marchand"]        = "FO76 ui trading team.png",
    ["aléatoire"]       = "FO76 ui roleplay team.png",
    ["saisonnier"]      = "FO76 Quest Old Man Winter.png",
    ["inutilisé"]       = "Icon unused.png",
    ["prochainement"]   = "mbox upcoming.png",
    ["mine"]            = "FO76 iconwheel minefrag.png",
    ["alcool"]          = "FO76 Alcohol Icon.svg",
    ["boîteàsandwich"]  = "FO76 Lunchbox Icon.svg",
    ["stimpak"]         = "FO76 Stimpak Icon.svg",
    ["mod"]             = "Icon plus.png",
    ["myspace"]         = "Myspace icon.png",
    ["neutre"]          = "Icon neutral.png",
    ["indifférent"]     = "Neutral.svg",
    ["non"]             = "Icon cross.png",
    ["nukamix"]         = "Icon Nuka-mixer station.png",
    ["optionnel"]       = "Icon optional.png",
    ["OMACP"]           = "Penny Arcade.gif",
    ["évènement"]       = "FO76 icon map event.png",
    ["évènementpublic"] = "FO76 icon map public event.png",
    ["starmass"]        = "Fo4_Power_Work_Icon.png",
    ["jeupb"]           = "Fo4_Pip-Boy game.png",
    ["pc"]              = "Icon pc.png",
    ["plasma"]          = "Icon plasma.png",
    ["tropheeplatine"]  = "Plat.png",
    ["poison"]          = "Icon poison.png",
    ["poison2"]         = "Poison Icon.png",
    ["présent"]         = "FO76 Present Icon.png",
    ["ps3"]             = "Icon ps3.png",
    ["ps4"]             = "Icon ps4.png",
    ["PV13"]            = "PV13.png",
    ["jce"]             = "FO76 ui casual team.png",
    ["jcj"]             = "FO76 ui workshopraid team.png",
    ["légendaire"]      = "Icon legendary.png",
    ["étoile"]          = "Icon legendary.png",
    ["subchim"]         = "FO76 Chems Icon.svg",
    ["survie"]          = "FO76 icon roadmap survival.png",
    ["radiations"]      = "Icon radiation.png",
    ["portée"]          = "Icon range.png",
    ["rareté"]          = "Icon rarity.png",
    ["aptlégendaire"]   = "FO76 Perk coin.png",
    ["opquotidiennes"]  = "FO76 ui dailyops team.png",
    ["ratio"]           = "Icon ratio.png",
    ["rouge"]           = "Icon red.png",
    ["réparable"]       = "FO76 ui workshop team.png",
    ["répétable"]       = "Icon repeat.png",
    ["requis"]          = "Icon required.png",
    ["fusil"]           = "Icon rifle.png",
    ["atrobot"]         = "Icon robot workbench.png",
    ["semirequis"]      = "Icon semi-required.png",
    ["séquence"]        = "Icon sequence.png",
    ["pompe"]           = "Icon shotgun.png",
    ["sic"]             = "Icon sic.png",
    ["camp"]            = "FO76 ui extra team.png",
    ["caps"]            = "Caps.png",
    ["gratuit"]         = "ATX FREE.png",
    ["temporaire"]      = "Icon limitedtime.png",
    ["raidabri"]        = "Vault Raids.png",
    ["vaulttec"]        = "Icon vaulttec.png",
    ["vt"]              = "Icon vaulttec.png",
    ["jeux"]            = "FO76 ui roleplay team.png",
    ["limitée"]         = "YOU SHOULD BUY THIS.png",
    ["nouveau"]         = "ATX NEW.png",
    ["quête"]           = "FO76 ui icon quest.png",
    ["lieu"]            = "FO76 ui exploration team.png",
    ["note"]            = "icon Fo4 note.png",
    ["seau"]            = "Icon FO76 mole miner pail.png",
    ["nourriture"]	    = "Fallout 76 Food Icon.svg",
    ["boisson"]         = "FO76 Drink Icon.svg",
    ["thé"]             = "FO76 Drink Tea Icon.svg",
    ["soda"]            = "FO76 Soda Icon.svg",
    ["crédit"]          = "Credits icon.png",
    ["nw"]              = "FO76NW Vault 51 icon.png",
    ["score"]           = "FO76 scoresprite seasons.png",
    ["mitraille"]       = "FO76 Scrip.png",
    ["tropheeargent"]   = "Silver.png",
    ["pm"]              = "Icon smg.png",
    ["son"]             = "Icon sound.png",
    ["apparition"]      = "Icon spawn.png",
    ["dispersion"]      = "Icon spread.png",
    ["switch"]          = "Nintendo Switch icon.png",
    ["TAR"]             = "gametitle-TAR.jpg",
    ["texte"]           = "Icon text.png",
    ["TORN"]            = "gametitle-TORN.png",
    ["tumblr"]          = "Tumblr Icon.png",
    ["twitch"]          = "Twitch icon.png",
    ["twitter"]         = "Twitter icon.png",
    ["sansarmes"]       = "Icon unarmed.png",
    ["VB"]              = "gametitle-VB.png",
    ["atarmes"]         = "Fo4_Weapon_Work_Icon.png",
    ["poids"]           = "FO76 icon weight.png",
    ["WIKI"]            = "gametitle-Wiki.png",
    ["windows"]         = "Icon windows.png",
    ["atelier"]         = "Icon workshop.png",
    ["atelierpublic"]   = "Icon Public Workshop.png",
    ["xbox360"]         = "Icon xbox360.png",
    ["xboxone"]         = "Icon xboxone.png"
}
 
local iconSize = {
    ["petit"]           = "x10px",
    ["medium"]          = "x14px",
    ["normal"]          = "x14px",
    ["gros"]            = "x20px"
}
 
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]
        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 = "Unrecognized icon name"
            result = result .. "[[Catégorie:Modules avec paramètres invalides]]"
        end
        
        --Création de l'icône Wikitext
		dataLine = '[[File:' .. currentIcon .. '|' .. iconSetting
        if iconLinks ~= nil and iconLinks[n] ~= nil and iconLinks[n] ~= "" then
            dataLine = dataLine .. '|lien=' .. iconLinks[n]
        else
            dataLine = dataLine .. '|lien='
        end
        if currentTip ~= nil then
            dataLine = dataLine .. '|' .. currentTip
        end

        dataLine = dataLine .. ']]'
		createTip = mw.html.create('span')
        	createTip:addClass('va-icon')
        	:attr('title', currentTip)
        	:wikitext(dataLine)
        result = result .. tostring(createTip)
        n = n + 1
        if n < table.getn(iconList) then
        	result = result .. " "
        end
    end
    
    return result .. parserError
end

function p.plateformes(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
        	
            createSM = mw.html.create('span')
            	createSM:css('display', 'none')
            	:wikitext('[[Has platform::' .. platformCheck[1] .. ']]')
            	:allDone()
            createPlatform = mw.html.create('span')
            	createPlatform:addClass('va-icon')
            		:attr('title', platformCheck[1])
            		:wikitext('[[File:' 
            			.. gameIcon[string.lower(icons[iconCount])] 
            			.. '|x14px|link=]]')
            		:allDone()
            	result = result -- .. tostring(createSM)
            			.. tostring(createPlatform)
            if iconCount < table.getn(icons) then
                result = result .. "&nbsp;"
            end
        end
        iconCount = iconCount + 1
    end
    if result == "" then
        result = '<sup>[Plateformes nécessaires]</sup>[[Catégorie:Plateformes nécessaires]]'
    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 = "Unrecognized icon name"
            result = result .. "[[Category:Modules with invalid parameters]]"
        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 .. "||[[File:" .. 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
Advertisement