Aucun résumé des modifications |
Aucun résumé des modifications |
||
(31 versions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
local p = {} |
local p = {} |
||
+ | local util = require( 'Module:Util' ) |
||
− | |||
+ | --[[ |
||
− | local iconTip = { |
||
+ | Icon data is now stored on the sub page /data to seperate functional code |
||
− | -- Plateformes |
||
+ | for the dataset users will often need to update. This reduces the risk of |
||
− | ["android"] = "SE Android|plateforme", |
||
+ | breaking the code by entering data in the wrong place and makes it easier to |
||
− | ["windowsphone"] = "Windows Phone|plateforme", |
||
+ | manage the code itself by not having to pass through the large dataset at |
||
− | ["apple"] = "Apple iOS|plateforme", |
||
+ | the top. |
||
− | ["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", |
||
+ | require( 'Module:Icons/data' ) |
||
− | -- Publications |
||
− | ["AR"] = "All Roads", |
||
− | ["FB"] = "Fallout Bible", |
||
− | ["OMACP"] = "One Man, and a Crate of Puppets", |
||
− | ["survie"] = "Guide de 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)", |
||
− | ["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", |
||
− | ["FOBOS"] = "Fallout: Brotherhood of Steel", |
||
− | ["FOBOS2"] = "Fallout: Brotherhood of Steel 2", |
||
− | ["FOS"] = "Fallout Shelter", |
||
− | ["FOT"] = "Fallout Tactics", |
||
− | ["FOT2"] = "Fallout Tactics 2", |
||
− | ["V76"] = "Fallout 76", |
||
− | ["raidabri"] = "Raids d'Abri", |
||
− | |||
− | -- Jeux annulés |
||
− | ["V76"] = "V76 Spin.gif", |
||
− | ["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)", |
||
− | ["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|vision"] = "Détection", |
||
− | ["capachargeur"] = "Capacité du chargeur", |
||
− | ["portée"] = "Portée", |
||
− | ["rareté"] = "Rareté", |
||
− | ["ratio"] = "Ratio", |
||
− | ["poison"] = "Poison", |
||
− | ["froid"] = "Froid", |
||
− | ["acide"] = "Acide", |
||
− | ["attaque"] = "Attaque", |
||
− | ["chance"] = "Chances", |
||
− | ["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", |
||
− | ["poing"] = "Poing", |
||
− | ["gaz"] = "Gaz", |
||
− | ["défense"] = "Défense", |
||
− | ["aptlégendaire"] = "Aptitude légendaire", |
||
− | ["dailyops"] = "Daily Ops", |
||
− | ["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", |
||
− | ["évènement"] = "Évènement", |
||
− | ["évènementpublic"] = "Évènement public", |
||
− | |||
− | -- 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 |
||
− | ["boss"] = "Personnage Haut Niveau", |
||
− | ["caravan"] = "Joue au Caravan", |
||
− | ["cartes"] = "Cartes", |
||
− | ["compagnon"] = "Compagnon", |
||
− | ["confiance"] = "Confiance", |
||
− | ["docteur"] = "Docteur", |
||
− | ["marchand"] = "Marchand", |
||
− | ["groupe"] = "Groupe", |
||
− | ["FNVww"] = "Wild Wasteland", |
||
− | |||
− | -- Objets |
||
− | ["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", |
||
− | ["gold bullion"] = "Gold Bullion", |
||
− | ["caps"] = "Caps", |
||
− | ["chargement"] = "Vault-tec", |
||
− | |||
− | -- 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é", |
||
− | ["ouitemp"] = "Validé temporairement", |
||
− | ["non"] = "Non", |
||
− | ["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", |
||
− | |||
− | -- 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", |
||
− | ["temporaire"] = "Icon limitedtime.png", |
||
− | ["raidabri"] = "Vault Raids.png" |
||
− | } |
||
− | |||
− | local gameIcon = { |
||
− | ["capacité"] = "Icon ability.png", |
||
− | ["bronzeca"] = "Icon shield bronze.png", |
||
− | ["acide"] = "Icon acid.png", |
||
− | ["pa"] = "Icon action.png", |
||
− | ["ambre"] = "Icon amber.png", |
||
− | ["munitions"] = "icon ammo.png", |
||
− | ["munitions2"] = "113.png", |
||
− | ["android"] = "icon android.png", |
||
− | ["apple"] = "icon appleios.png", |
||
− | ["AR"] = "gametitle-AR.png", |
||
− | ["atarmures"] = "Fo4_Armor_Work_Icon.png", |
||
− | ["atome"] = "Icon Fo76 Atom.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"] = "11c.png", |
||
− | ["effetbonus"] = "Icon bonus effect.png", |
||
− | ["boss"] = "FoS Boss.png", |
||
− | ["tropheebronze"] = "Bronze.png", |
||
− | ["caravan"] = "Icon cards.png", |
||
− | ["cartes"] = "Icon cards.png", |
||
− | ["chance"] = "Icon chance.png", |
||
− | ["oui"] = "Icon check.png", |
||
− | ["ouitemp"] = "Icon check temp.png", |
||
− | ["stchim"] = "Fo4_Chem_Work_Icon.png", |
||
− | ["compagnon"] = "Icon companion.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", |
||
− | ["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 Duration.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"] = "117 black.png", |
||
− | ["muté"] = "135black.png", |
||
− | ["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", |
||
− | ["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"] = "Perk wild wasteland.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", |
||
− | ["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"] = "gametitle-FO76 WL.png", |
||
− | ["FO76LR"] = "gametitle-FO76 LR.png", |
||
− | ["FO76OW"] = "gametitle-FO76 One Wasteland.png", |
||
− | ["FO76SD"] = "gametitle-FO76 Steel Dawn.png", |
||
− | ["FOBOS"] = "gametitle-FOBOS.png", |
||
− | ["FOBOS2"] = "gametitle-FOBOS2.png", |
||
− | ["prnour"] = "Icon fo4cw builder.png", |
||
− | ["FOS"] = "gametitle-FOS.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", |
||
− | ["FWWRPG"] = "gametitle-FWWRPG.png", |
||
− | ["gamerscore"] = "Gamerscore.svg", |
||
− | ["gaz"] = "Icon gas.png", |
||
− | ["tropheeor"] = "Gold.png", |
||
− | ["gold bullion"] = "Fo76 Icon Gold Bullion.png", |
||
− | ["vert"] = "Icon green.png", |
||
− | ["grenade"] = "Icon grenade.png", |
||
− | ["groupe"] = "Icon group.png", |
||
− | ["arme"] = "Icon gun.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"] = "JuryRigging.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"] = "Icon merchant.png", |
||
− | ["mine"] = "Icon mine.png", |
||
− | ["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", |
||
− | ["ps3"] = "Icon ps3.png", |
||
− | ["ps4"] = "Icon ps4.png", |
||
− | ["PV13"] = "PV13.png", |
||
− | ["survie"] = "Survival Guide.png", |
||
− | ["radiations"] = "Icon radiation.png", |
||
− | ["portée"] = "Icon range.png", |
||
− | ["rareté"] = "Icon rarity.png", |
||
− | ["aptlégendaire"] = "FO76 Perk coin.png", |
||
− | ["dailyops"] = "Daily Ops Mode Icon Uplink.png", |
||
− | ["ratio"] = "Icon ratio.png", |
||
− | ["rouge"] = "Icon red.png", |
||
− | ["réparable"] = "Icon repair.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", |
||
− | ["caps"] = "Caps.png", |
||
− | ["gratuit"] = "ATX FREE.png", |
||
− | ["limitée"] = "YOU SHOULD BUY THIS.png", |
||
− | ["nouveau"] = "ATX NEW.png", |
||
− | ["chargement"] = "VT fader.gif", |
||
− | ["nw"] = "V51 spin.gif", |
||
− | ["score"] = "137 low res.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"] = "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 = { |
local iconSize = { |
||
+ | --[[ |
||
+ | All sizes are controlled on the height to ensure a string of icons maintain |
||
+ | a consistent line height |
||
+ | ]] |
||
["petit"] = "x10px", |
["petit"] = "x10px", |
||
["medium"] = "x14px", |
["medium"] = "x14px", |
||
["normal"] = "x14px", |
["normal"] = "x14px", |
||
− | ["gros"] = "x20px" |
+ | ["gros"] = "x20px", |
} |
} |
||
+ | |||
− | |||
+ | --[[ 28/Oct/2021 Added class control table to array as to handle light/dark |
||
− | function p.Icons(frame) |
||
+ | themes. This was originally put into the frontend template, when class |
||
− | local iconList = mw.text.split(frame.args[1], ",") |
||
+ | handling should be back end. Adding the ['class'] = 'light' or |
||
− | local parserError = "" |
||
+ | ['class'] = 'dark' parameter to a icon's dataset on /data will enable it to |
||
− | local iconSetting |
||
+ | access a class if needed. |
||
− | if frame.args[2] ~= nil and string.len(frame.args[2]) > 0 then |
||
+ | ]] |
||
− | iconSetting = tostring(frame.args[2]) |
||
+ | |||
+ | --[[ 08/Nov/2021 Remove the class definition as to be able to just pass straight through |
||
+ | local class = { |
||
+ | ['light'] = 'lighticon', |
||
+ | ['dark'] = 'darkicon', |
||
+ | ['general'] = 'generalicon' |
||
+ | } |
||
+ | ]] |
||
+ | |||
+ | function _generate(iconList, iconSetting, iconLinks, tipOverride, iconClass, iconSize) |
||
+ | local parserError = '' |
||
+ | if util.exists(iconSetting) then |
||
+ | iconSetting = util.trim(iconSetting) |
||
+ | if util.exists(iconSize[iconSetting]) then |
||
+ | iconSetting = iconSize[iconSetting] |
||
+ | end |
||
else |
else |
||
− | iconSetting = iconSize[" |
+ | iconSetting = iconSize["moyen"] |
end |
end |
||
+ | |||
− | |||
− | + | if util.exists(iconLinks) then |
|
+ | iconLinks = mw.text.split(iconLinks, ",") |
||
− | if frame.args[3] ~= nil then |
||
− | iconLinks = mw.text.split(frame.args[3], ",") |
||
end |
end |
||
+ | |||
− | |||
− | + | if util.exists(tipOverride) then |
|
+ | tipOverride = mw.text.split(tipOverride, ",") |
||
− | if frame.args[4] ~= nil then |
||
− | tipOverride = mw.text.split(frame.args[4], ",") |
||
end |
end |
||
+ | |||
− | |||
+ | if util.exists(iconClass)then |
||
− | local n = 1 |
||
+ | iconClass = "|classe=" .. tostring(iconClass); |
||
+ | else |
||
+ | iconClass = "" |
||
+ | end |
||
+ | |||
local result = "" |
local result = "" |
||
+ | |||
− | |||
− | + | for k, v in ipairs(iconList) do |
|
− | newIcon = |
+ | newIcon = iconData[util.trim(v)] |
− | if |
+ | if util.exists(newIcon) then |
− | currentIcon = |
+ | currentIcon = newIcon.icon |
− | if tipOverride |
+ | if util.exists(tipOverride, k) then |
− | currentTip = tipOverride[ |
+ | currentTip = tipOverride[k] |
else |
else |
||
− | if iconLinks |
+ | if util.exists(iconLinks, k) then |
− | currentTip = iconLinks[ |
+ | currentTip = iconLinks[k] |
else |
else |
||
− | + | currentTip = newIcon.tip |
|
− | currentTip = splitTip[1] |
||
end |
end |
||
end |
end |
||
Ligne 546 : | Ligne 80 : | ||
currentIcon = "Icon question.png" |
currentIcon = "Icon question.png" |
||
currentTip = "Unrecognized icon name" |
currentTip = "Unrecognized icon name" |
||
+ | result = result .. "[[Catégorie:Modules avec des paramètres invalides]]" |
||
end |
end |
||
+ | |||
− | |||
+ | --Create wikitext icon |
||
− | result = result .. '<span style="display: none;">' .. currentTip .. '</span>' |
||
+ | dataLine = '[[File:' .. currentIcon .. '|' .. iconSetting |
||
− | result = result .. '<span class="va-icon" title="' .. currentTip .. '">' |
||
+ | if util.exists(iconLinks, k) then |
||
− | result = result .. '[' .. '[File:' .. currentIcon .. '|' .. iconSetting |
||
− | + | dataLine = dataLine .. '|lien=' .. iconLinks[k] |
|
− | result = result .. '|link=' .. iconLinks[n] |
||
else |
else |
||
− | + | dataLine = dataLine .. '|lien=' |
|
end |
end |
||
if currentTip ~= nil then |
if currentTip ~= nil then |
||
− | + | dataLine = dataLine .. '|' .. currentTip |
|
+ | end |
||
+ | |||
+ | dataLine = dataLine .. iconClass .. ']]' |
||
+ | |||
+ | createTip = mw.html.create('span') |
||
+ | createTip:addClass( 'va-icon' ) |
||
+ | :attr('title', currentTip) |
||
+ | :wikitext(dataLine) |
||
+ | result = result .. tostring(createTip) |
||
+ | |||
+ | if k < table.getn(iconList) then |
||
+ | result = result .. " " |
||
end |
end |
||
− | |||
− | result = result .. ']]</span>' |
||
− | n = n + 1 |
||
end |
end |
||
+ | |||
− | |||
return result .. parserError |
return result .. parserError |
||
+ | end |
||
+ | function p.Icons(frame) |
||
+ | --[[All icons are now lower case to reduce script errors from |
||
+ | incorrectly entering the icon code in a different case to the list]] |
||
+ | local iconList = mw.text.split(string.lower(frame.args[1]), ",") |
||
+ | local iconSetting = frame.args[2] |
||
+ | local iconLinks = frame.args[3] |
||
+ | local tipOverride = frame.args[4] |
||
+ | local iconClass = frame.args[5] |
||
+ | local iconSize = { |
||
+ | --[[ |
||
+ | All sizes are controlled on the height to ensure a string of icons maintain |
||
+ | a consistent line height |
||
+ | ]] |
||
+ | ["petit"] = "x10px", |
||
+ | ["moyen"] = "x14px", |
||
+ | ["normal"] = "x14px", |
||
+ | ["gros"] = "x20px" |
||
+ | } |
||
+ | return _generate(iconList, iconSetting, iconLinks, tipOverride, iconClass, iconSize) |
||
end |
end |
||
+ | |||
+ | function p.plateformes(frame) |
||
+ | --[[All icons are now lower case to reduce script errors from |
||
+ | incorrectly entering the icon code in a different case to the list]] |
||
+ | local icons = mw.text.split(string.lower(frame.args[1]), ",") |
||
+ | local result = "" |
||
+ | |||
+ | for k, v in ipairs(icons) do |
||
+ | currentIcon = iconData[util.trim(v)] |
||
+ | |||
+ | if util.exists(currentIcon, 'platform') == true then |
||
+ | |||
+ | createSM = mw.html.create('span') |
||
+ | createSM:css('display', 'none') |
||
+ | :wikitext('[[Has platform::' .. currentIcon.tip .. ']]') |
||
+ | :allDone() |
||
+ | createPlatform = mw.html.create('span') |
||
+ | createPlatform:addClass('va-icon') |
||
+ | :attr('title', currentIcon.tip) |
||
+ | :wikitext('[[File:' |
||
+ | .. currentIcon.icon |
||
+ | .. '|x14px|link=]]') |
||
+ | :allDone() |
||
+ | --[[ Uncommenting tostring(createSM) below will enable |
||
+ | Semantic Mediawiki data tracking]] |
||
+ | result = result .. tostring(createSM) |
||
+ | .. tostring(createPlatform) |
||
+ | if k < table.getn(icons) then |
||
+ | result = result .. " " |
||
+ | end |
||
+ | end |
||
+ | end |
||
+ | if result == '' then |
||
+ | result = '<sup>[Plateformes nécessaires]</sup>[[Catégorie:Plateformes nécessaires]]' |
||
+ | end |
||
+ | |||
+ | return result |
||
+ | end |
||
function p.documentation() |
function p.documentation() |
||
keys = {} |
keys = {} |
||
− | for k in pairs( |
+ | for k in pairs(iconData) do |
table.insert(keys, k) |
table.insert(keys, k) |
||
end |
end |
||
+ | |||
− | |||
− | |||
table.sort(keys) |
table.sort(keys) |
||
− | |||
result = '{| class="va-table va-table-full"\n|-\n !prefix!!Icon!!prefix!!Icon!!prefix!!Icon\n|-\n' |
result = '{| class="va-table va-table-full"\n|-\n !prefix!!Icon!!prefix!!Icon!!prefix!!Icon\n|-\n' |
||
− | |||
set = 1 |
set = 1 |
||
for k,v in ipairs(keys) do |
for k,v in ipairs(keys) do |
||
+ | i = iconData[v] |
||
− | |||
result = result .. "||'''" .. v .. "'''" |
result = result .. "||'''" .. v .. "'''" |
||
+ | if util.exists(i) == true and i.class ~= nil then |
||
− | result = result .. "||[[File:" .. gameIcon[v] .. "|25px]]" |
||
− | + | newFile = mw.html.create(span) |
|
+ | --:addClass(class[i.class]) |
||
+ | :wikitext('[[File:' .. iconData[v].icon .. '|25px]]') |
||
+ | else |
||
+ | newFile = mw.html.create(span) |
||
+ | :wikitext('[[File:' .. iconData[v].icon .. '|25px]]') |
||
+ | end |
||
+ | result = result .. '||' .. tostring(newFile) |
||
+ | |||
if set == 3 then |
if set == 3 then |
||
− | result = result .. |
+ | result = result .. '\n|-\n' |
end |
end |
||
+ | |||
− | |||
if set < 3 then |
if set < 3 then |
||
set = set + 1 |
set = set + 1 |
||
Ligne 595 : | Ligne 201 : | ||
end |
end |
||
end |
end |
||
− | |||
− | result = result .. "\n|}" |
||
− | |||
− | return result |
||
− | |||
− | end |
||
+ | result = result .. '\n|}' |
||
− | 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[icons[iconCount]] |
||
− | platformCheck = mw.text.split(currentIcon, "|") |
||
− | if platformCheck[2] ~= nil then |
||
− | result = result .. '<span style="display: none;">' .. platformCheck[1] .. '</span>' |
||
− | result = result .. '<span class="va-icon" title="' .. platformCheck[1] .. '">' |
||
− | result = result .. "[".."[File:" .. gameIcon[icons[iconCount]] .. "|x14px|link=]]" |
||
− | result = result .. '</span>' |
||
− | result = result .. " " |
||
− | end |
||
− | iconCount = iconCount + 1 |
||
− | end |
||
− | if result == "" then |
||
− | result = '<sup>[Plateformes nécessaires]</sup>[[Catégorie:Plateformes nécessaires]]' |
||
− | end |
||
return result |
return result |
||
− | end |
||
− | |||
− | function p.test(frame) |
||
− | |||
− | return frame.args[1] |
||
end |
end |
||
+ | |||
− | |||
+ | function p.Test(frame) |
||
+ | --Please empty when done debugging so other users know it is free to use |
||
+ | |||
+ | end |
||
+ | |||
return p |
return p |
Dernière version du 1 décembre 2021 à 23:17
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
<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}})
(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.
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.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 |
---|---|---|---|---|---|
FNVTD | FO4chaine01 | FO4chaine02 | |||
FO4chaine03 | FO4clé01 | FO4clé02 | |||
FO4clé03 | FO4clégen | FO4holo | |||
FO4note | FO4vaultid | acide | |||
action | adore | agi | |||
aime | aimepas | alcool | |||
aléatoire | ambre | android | |||
apparition | apple | aptlégendaire | |||
ar | armelourde | armorwb | |||
artisanat | asservissable | atelier | |||
atelierpublic | atome | attaque | |||
aucunéchange | bf | bigger gun | |||
boisson | bouclierargent | bouclierbronze | |||
bouclieror | boîteàsandwich | bricolage | |||
bugged unav | ca | cadence régénération | |||
cadencedetir | cal12 | camp | |||
capachargeur | capacité | caps | |||
caravan | cartes | cerveau | |||
chance | chef | chems | |||
chimie | chr | compagnon | |||
confiance | contondant | corps à corps | |||
coupé | crit | croix | |||
cryo | crédit | cœur | |||
d20 | Fichier:Gammetitle-D20.png | dial | dialogue | ||
dispersion | distance | docteur | |||
dpa | dps | dur | |||
défense | dégâts | détect | |||
détection | déteste | effet | |||
effet bonus | effet crit | end | |||
essentiel | explosion | expérience | |||
fbgcritter | fbgdieablhits | ||||
fbgendurance | fbghit | fbghuman | |||
fbgintelligence | fbgloot | fbgluck | |||
fbgmonster | fbgperception | fbgquest | |||
fbgradiation | fbgranged | fbgretreat | |||
fbgrobot | fbgsecurity | fbgsettlement | |||
fbgstrength | fbgsupermutant | fbgvault109 | |||
fbgvault84 | fbgwasteland | fbgweapon | |||
feu | film | fjp | |||
fjpagenda | fjpagilité | fjpagressif | |||
fjparmure | fjpasset | fjpcharisme | |||
fjpcompagnon | fjpdangereux | fjpliberté | |||
fjpmortel | fjpnc | fjptenue | |||
fjpww | fnv | fnvcs | |||
fnvdm | fnvgra | fnvhh | |||
fnvlr | fnvowb | fo | |||
fo1 | fo1st | fo2 | |||
fo3 | fo3bs | fo3mz | |||
fo3oa | fo3pl | fo3tp | |||
fo4 | fo4aut | fo4cc | |||
fo4cw | fo4fh | fo4nw | |||
fo4vr | fo4vw | fo4ww | |||
fo76 | fo76fw | fo76ll | |||
fo76lr | fo76nw | fo76ow | |||
fo76sd | fo76sr | fo76tp | |||
fo76ts | fo76wa | fo76wl | |||
fobos | fobos2 | foodpr | |||
fool | for | fos | |||
foso | fot | fot2 | |||
fow | foww | fox | |||
fpb | fusil | fww | |||
fwwrpg | féminin | gamerscore | |||
gaz | gelé | gratuit | |||
grenade | groupe | haché | |||
iem | image | indifférent | |||
info | int | ||||
inutilisé | ios | jce | |||
jcj | jes | jeu | |||
jeupb | lame | laser | |||
lh | lieu | limité | |||
lingot | lingot d'or | ||||
légendaire | mac | macclassic | |||
mains nues | maladie | marchand | |||
masculin | mentionné | mine | |||
mitraille | mitraillette | mod | |||
mort | moulinexpl | munitions | |||
munitions2 | mutation | muter | |||
myspace | neutre | niveau | |||
non | note | nourriture | |||
nouveau | nukamix | nw | |||
opposums | opposums sombre | opquotidiennes | |||
optionnel | oui | oui1 | |||
ouibrun | pa | pc | |||
pe | per | pistolet | |||
plasma | platine | poids | |||
poing | poison | poison2 | |||
portée | posarmass | poscuis | |||
pourcent | prochainement | présent | |||
ps3 | ps4 | pv | |||
pv13 | question | quête | |||
radiations | raidabri | rareté | |||
ratio | rd | requis | |||
rouge | régénération | réparable | |||
répéter | réticule | saison | |||
saisonnier | sang | santé | |||
score | scout | sd | |||
seau | semi | semirequis | |||
sic | soda | son | |||
spooky | stimpak | survie | |||
switch | séquence | tar | |||
temporaire | tempslimité | texte | |||
thé | torn | trophéeargent | |||
trophéebronze | trophéeor | tumblr | |||
twitch | têtard | ||||
têtard sombre | v76 | vaulttec | |||
vb | vert | vt | |||
wiki | wild wasteland | windows | |||
ww | xbox360 | xboxone | |||
électrique | énergie | établiarmes | |||
établirobot | étoile | évènement | |||
évènementpublic | œil |
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 util = require( 'Module:Util' )
--[[
Icon data is now stored on the sub page /data to seperate functional code
for the dataset users will often need to update. This reduces the risk of
breaking the code by entering data in the wrong place and makes it easier to
manage the code itself by not having to pass through the large dataset at
the top.
]]
require( 'Module:Icons/data' )
local iconSize = {
--[[
All sizes are controlled on the height to ensure a string of icons maintain
a consistent line height
]]
["petit"] = "x10px",
["medium"] = "x14px",
["normal"] = "x14px",
["gros"] = "x20px",
}
--[[ 28/Oct/2021 Added class control table to array as to handle light/dark
themes. This was originally put into the frontend template, when class
handling should be back end. Adding the ['class'] = 'light' or
['class'] = 'dark' parameter to a icon's dataset on /data will enable it to
access a class if needed.
]]
--[[ 08/Nov/2021 Remove the class definition as to be able to just pass straight through
local class = {
['light'] = 'lighticon',
['dark'] = 'darkicon',
['general'] = 'generalicon'
}
]]
function _generate(iconList, iconSetting, iconLinks, tipOverride, iconClass, iconSize)
local parserError = ''
if util.exists(iconSetting) then
iconSetting = util.trim(iconSetting)
if util.exists(iconSize[iconSetting]) then
iconSetting = iconSize[iconSetting]
end
else
iconSetting = iconSize["moyen"]
end
if util.exists(iconLinks) then
iconLinks = mw.text.split(iconLinks, ",")
end
if util.exists(tipOverride) then
tipOverride = mw.text.split(tipOverride, ",")
end
if util.exists(iconClass)then
iconClass = "|classe=" .. tostring(iconClass);
else
iconClass = ""
end
local result = ""
for k, v in ipairs(iconList) do
newIcon = iconData[util.trim(v)]
if util.exists(newIcon) then
currentIcon = newIcon.icon
if util.exists(tipOverride, k) then
currentTip = tipOverride[k]
else
if util.exists(iconLinks, k) then
currentTip = iconLinks[k]
else
currentTip = newIcon.tip
end
end
else
currentIcon = "Icon question.png"
currentTip = "Unrecognized icon name"
result = result .. "[[Catégorie:Modules avec des paramètres invalides]]"
end
--Create wikitext icon
dataLine = '[[File:' .. currentIcon .. '|' .. iconSetting
if util.exists(iconLinks, k) then
dataLine = dataLine .. '|lien=' .. iconLinks[k]
else
dataLine = dataLine .. '|lien='
end
if currentTip ~= nil then
dataLine = dataLine .. '|' .. currentTip
end
dataLine = dataLine .. iconClass .. ']]'
createTip = mw.html.create('span')
createTip:addClass( 'va-icon' )
:attr('title', currentTip)
:wikitext(dataLine)
result = result .. tostring(createTip)
if k < table.getn(iconList) then
result = result .. " "
end
end
return result .. parserError
end
function p.Icons(frame)
--[[All icons are now lower case to reduce script errors from
incorrectly entering the icon code in a different case to the list]]
local iconList = mw.text.split(string.lower(frame.args[1]), ",")
local iconSetting = frame.args[2]
local iconLinks = frame.args[3]
local tipOverride = frame.args[4]
local iconClass = frame.args[5]
local iconSize = {
--[[
All sizes are controlled on the height to ensure a string of icons maintain
a consistent line height
]]
["petit"] = "x10px",
["moyen"] = "x14px",
["normal"] = "x14px",
["gros"] = "x20px"
}
return _generate(iconList, iconSetting, iconLinks, tipOverride, iconClass, iconSize)
end
function p.plateformes(frame)
--[[All icons are now lower case to reduce script errors from
incorrectly entering the icon code in a different case to the list]]
local icons = mw.text.split(string.lower(frame.args[1]), ",")
local result = ""
for k, v in ipairs(icons) do
currentIcon = iconData[util.trim(v)]
if util.exists(currentIcon, 'platform') == true then
createSM = mw.html.create('span')
createSM:css('display', 'none')
:wikitext('[[Has platform::' .. currentIcon.tip .. ']]')
:allDone()
createPlatform = mw.html.create('span')
createPlatform:addClass('va-icon')
:attr('title', currentIcon.tip)
:wikitext('[[File:'
.. currentIcon.icon
.. '|x14px|link=]]')
:allDone()
--[[ Uncommenting tostring(createSM) below will enable
Semantic Mediawiki data tracking]]
result = result .. tostring(createSM)
.. tostring(createPlatform)
if k < table.getn(icons) then
result = result .. " "
end
end
end
if result == '' then
result = '<sup>[Plateformes nécessaires]</sup>[[Catégorie:Plateformes nécessaires]]'
end
return result
end
function p.documentation()
keys = {}
for k in pairs(iconData) 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
i = iconData[v]
result = result .. "||'''" .. v .. "'''"
if util.exists(i) == true and i.class ~= nil then
newFile = mw.html.create(span)
--:addClass(class[i.class])
:wikitext('[[File:' .. iconData[v].icon .. '|25px]]')
else
newFile = mw.html.create(span)
:wikitext('[[File:' .. iconData[v].icon .. '|25px]]')
end
result = result .. '||' .. tostring(newFile)
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
function p.Test(frame)
--Please empty when done debugging so other users know it is free to use
end
return p