Fallout Wiki

READ MORE

Fallout Wiki
Advertisement
Fallout Wiki

Template for displaying small icons.

Usage

{{icon|name of icon}}

To update the available icons, the Icon module requires a new parameter in the iconTip (default tooltip) and gameIcon (icon filename) lists.

Parameters

Required
<unnamed 1>
Which icon should be displayed. Multiple icons can be listed by separating them with a comma. ({{Icon|FO1,FO2,FO3}})
Optional
(default: "x14px")
<unnamed 2>
Specifies the size of the icon. Can either be set to one of the presets below or directly given as a px value (same syntax as for setting the image size of a normal file link).

The presets are:

  • small: Icons will be displayed at 10px height.
  • medium/normal: Icons will be displayed at 14px height.
  • big: Icons will be displayed at 20px height.
Optional
link
Page the icon should link to (without enclosing "[[]]"). If tooltip is not specified, this is also used as the tooltip text.
Optional
tooltip
Tooltip text is displayed when hovering over the icon. Overrides the icon's default text.

Available icons

prefix Icon prefix Icon prefix Icon
AR Gametitle-AR.png D20 Gametitle-D20.png FB Gametitle-FB.png
FBG Gametitle-FBG.png FBGNC Gametitle-FBGNC.png FBGWW Gametitle-FBGWW.png
FBGagenda FBG Agenda icon.svg FBGaggressive FBG Aggressive icon.svg FBGagility FBG A icon.svg
FBGapparel FBG Apparel icon.svg FBGarmor FBG Armor icon.svg FBGasset FBG Asset icon.svg
FBGcharisma FBG C icon.svg FBGcompanion FBG Companion icon.svg FBGcritter FBG Critter icon.svg
FBGdangerous FBG Dangerous icon.svg FBGdeadly FBG Deadly icon.svg FBGdieABLhits FBG Die ABL Hits.png
FBGendurance FBG E icon.svg FBGfreedom FBG Freedom icon.svg FBGhit FBG Hit icon.svg
FBGhuman FBG Human icon.svg FBGintelligence FBG I icon.svg FBGloot FBG Loot icon.svg
FBGluck FBG L icon.svg FBGmonster FBG Monster icon.svg FBGperception FBG P icon.svg
FBGquest FBG Quest objective.svg FBGradiation FBG Radiation icon.svg FBGranged FBG Ranged icon.svg
FBGretreat FBG Retreat icon.svg FBGrobot FBG Robot icon.svg FBGsecurity FBG Defender icon.svg
FBGsettlement FBG Settlement icon.svg FBGstrength FBG S icon.svg FBGsupermutant FBG Super Mutant icon.svg
FBGvault109 FBG Vault 109 icon.svg FBGvault84 FBG Vault 84 icon.svg FBGwasteland FBG Wasteland icon.svg
FBGweapon FBG Weapon icon.svg FILM Film.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 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 FO76 Gametitle-FO76.png FO76FW Gametitle-FO76 FW.png
FO76LL Gametitle-FO76 Locked n Loaded.png FO76LR Gametitle-FO76 LR.png FO76NW Gametitle-FO76 NW.png
FO76OW Gametitle-FO76 One Wasteland.png FO76SD Gametitle-FO76 Steel Dawn.png FO76SR Gametitle-FO76 Steel Reign.png
FO76TP Gametitle-FO76 TP.png FO76TS Gametitle-FO76 TS.png FO76WA Gametitle-FO76 WA.png
FO76WL Gametitle-FO76 WL.png FOBOS Gametitle-FOBOS.png FOBOS2 Gametitle-FOBOS2.png
FOOL PV13.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 PA Penny Arcade.gif PV13 PV13.png
TAR Gametitle-TAR.jpg TORN Gametitle-TORN.png V76 FO76 Vault 76 icon.png
VB Gametitle-VB.png WIKI Gametitle-Wiki.png ability Icon ability.png
ac Icon shield bronze.png acid Icon acid.png action Icon action.png
agi FO76 A.png alcohol FO76 Alcohol Icon.svg amber Icon amber.png
ammo Icon ammo.png ammo2 Icon ammo01.png android Icon android.png
ap Icon ap.png apple Icon appleios.png armorwb Fo4 Armor Work Icon.png
atom FO76 Atom Currency 2.png attack Icon attack.png axed Fire axe icon color.png
big gun Icon heavy weapon.png bigger gun Icon big gun.png blade Icon blade.png
bleed Icon bleed.png blunt Icon blunt.png bonus effect Icon bonus effect.png
boss FoS Boss.png brain Brain icon.png bronze Bronze.png
bugged unav Radroach.png bullion Fo76 Icon Gold Bullion.png camp FO76 ui extra team.png
caps Caps.png caravan Icon cards.png cards Icon cards.png
chance FO76 ui roleplay team.png check Icon check.png check1 Icon CheckYellowShadowed.png
checkbrown Icon check temp.png chems FO76 Chems Icon.svg chemst Fo4 Chem Work Icon.png
chr FO76 C.png companion NW icon ally.png confidence Icon confidence.png
cookst Fo4 Cook Work Icon.png craft Icon crafting.png credit Credits icon.png
crit Icon critical damage.png crit effect Icon crit effect.png cross Icon cross.png
crosshair Icon attack.png cryo Icon cryo.png cut Icon cut.png
dailyops FO76 ui dailyops team.png damage Icon damage.png dap Icon dap.png
dead Icon dead.png defense Icon shield silver.png detect Icon eye.png
detection Icon eye.png dial Icon dialogue.png dialogue Icon dialogue.png
disease Icon disease.png dislike Dislike.svg distance Icon range.png
doctor Icon doctor.png dps Icon dps.png dr Icon shield silver.png
drink FO76 Drink Icon.svg dt Icon shield gold.png dur Icon limitedtime.png
effect Icon effect.png electrical Icon electrical.png emp Icon EMP.png
end FO76 E.png energy Icon electrical.png enslave Icon cage.png
essential Icon essential.png event FO76 icon map event.png eventpublic FO76 icon map public event.png
experience Icon XP.png explmill Icon fo4cw builder.png explosion Icon explosion.png
eye Icon eye.png facebook FacebookIcon.png female Female-gender-sign.png
fire Icon fire.png firerate FO76 UI icon Ammo custom.png fist Icon fist.png
fnvww Icon wildwasteland.png fo4chain01 Icon Fo4 chain01.png fo4chain02 Icon Fo4 chain02.png
fo4chain03 Icon Fo4 chain03.png fo4gencard Icon Fo4 gen keycard.png fo4holo Icon Fo4 holotape.png
fo4key01 Icon Fo4 key01.png fo4key02 Icon Fo4 key02.png fo4key03 Icon Fo4 key03.png
fo4note Icon Fo4 note.png fo4vaultid Icon Fo4 vaultid.png food Fallout 76 Food Icon.svg
foodpr Icon fo4cw builder.png free ATX FREE.png frost Icon effect.png
game FO76 ui roleplay team.png gamerscore Gamerscore.svg gas Icon gas.png
gold Gold.png gold bullion Fo76 Icon Gold Bullion.png green Icon green.png
grenade FO76 iconwheel grenade.png group Icon group.png gun Icon gun.png
hate Hate.svg healing Icon healing.png healing rate Icon healing.png
health Icon heart.png heart Icon heart.png hp Icon heart.png
image Icon image.png info Icon info.png instagram Instagram icon.jpg
int FO76 I.png ios Icon appleios.png jury FO76 vaultboy licensedplumber 01.png
laser Icon laser.png lck FO76 L.png legendary Icon legendary.png
legendperk FO76 Perk coin.png level Icon level.png like Like.svg
limited YOU SHOULD BUY THIS.png limitedtime Icon limitedtime.png linkedin Linkedin icon.png
loc FO76 ui exploration team.png love Love.svg lunchbox FO76 Lunchbox Icon.svg
mac Icon mac.png macclassic Icon mac.png mag Icon mag.png
male Male-gender-sign.png melee Icon melee.png mentioned Icon mentioned.png
merchant FO76 ui trading team.png mine FO76 iconwheel minefrag.png mod Icon plus.png
mutate FO76 vaultboy dna.png mutation FO76 Mutation Icon.svg myspace Myspace icon.png
neutral Icon neutral.png neutralface Neutral.svg new ATX NEW.png
no Icon cross.png note Icon Fo4 note.png notrade Icon NoTrade.png
nukamix Icon Nuka-mixer station.png nw FO76NW Vault 51 icon.png optional Icon optional.png
pail Icon FO76 mole miner pail.png parmorst Fo4 Power Work Icon.png pbgame Fo4 Pip-Boy game.png
pc Icon pc.png per FO76 P.png percent FO76 ui roleplay team.png
pistol FO76 iconwheel pistol.png plasma Icon plasma.png platinum Plat.png
poison Icon poison.png poison2 Poison Icon.png possum FO76 Possum badge blue.png
possum dark FO76 Possum badge.png present FO76 Present Icon.png ps3 Icon ps3.png
ps4 Icon ps4.png publicworkshop Icon Public Workshop.png pve FO76 ui casual team.png
pvp FO76 ui workshopraid team.png quest FO76 ui icon quest.png question Icon question.png
radiation Icon radiation.png random FO76 ui roleplay team.png range Icon range.png
rarity Icon rarity.png ratio Icon ratio.png red Icon red.png
repair FO76 ui workshop team.png repeat Icon repeat.png required Icon required.png
rifle Icon rifle.png robotwb Icon robot workbench.png score FO76 scoresprite seasons.png
scout FO76 Pioneer Scouts.png scrip FO76 Scrip.png seasonal FO76 Quest Old Man Winter.png
semi Icon semi-required.png semi-required Icon semi-required.png sequence Icon sequence.png
shieldbronze Icon shield bronze.png shieldgold Icon shield gold.png shieldsilver Icon shield silver.png
shotgun Icon shotgun.png sic Icon sic.png silver Silver.png
smg Icon smg.png soda FO76 Soda Icon.svg sound Icon sound.png
spawn Icon spawn.png spooky FO76 candyBowl MapIcon.png spread Icon spread.png
star Icon legendary.png stimpak FO76 Stimpak Icon.svg str FO76 S.png
survival FO76 icon roadmap survival.png switch Nintendo Switch icon.png tadpole FO76 Tadpole badge blue.png
tadpole dark FO76 Tadpole badge.png tea FO76 Drink Tea Icon.svg temp Icon check temp.png
text Icon text.png tumblr Tumblr Icon.png twitch Twitch icon.png
twitter Twitter icon.png unarmed Icon unarmed.png unused Icon unused.png
upcoming Mbox upcoming.png vaultraid Vault Raids.png vaulttec Icon vaulttec.png
vt Icon vaulttec.png weapwb Fo4 Weapon Work Icon.png weight FO76 icon weight.png
wild wasteland Icon wildwasteland.png windows Icon windows.png workshop Icon workshop.png
ww Icon wildwasteland.png xbox360 Icon xbox360.png xboxone Icon xboxone.png
xp Icon XP.png yes Icon check.png

In addition, all abbreviations supported by {{Abb}} can be used to produce an icon for the corresponding game.


local p = {}
 
local iconTip = {
    ["ability"]         = "Ability",
    ["ac"]              = "Armor class",
    ["acid"]            = "Acid",
    ["action"]          = "Action points",
    ["agi"]             = "Agility",
    ["alcohol"]         = "Alcohol",
    ["amber"]           = "Uncorroborrated fact",
    ["ammo"]            = "Ammunition",
    ["ammo2"]           = "Ammunition",
    ["android"]         = "Android OS|platform",
    ["ap"]              = "Action points",
    ["apple"]           = "Apple iOS|platform",
    ["AR"]              = "All Roads",
    ["armorwb"]         = "Armor workbench",
    ["atom"]            = "Atom",
    ["attack"]          = "Attack",
    ["axed"]            = "Axed",
    ["big gun"]         = "Big Gun, direct fire",
    ["bigger gun"]      = "Big Gun, area of effect",
    ["blade"]           = "Bladed melee weapon",
    ["bleed"]           = "Bleed",
    ["blunt"]           = "Blunt melee weapon",
    ["bonus effect"]    = "Bonus effect",
    ["boss"]            = "High level character",
    ["brain"]           = "Learned by default",
    ["bronze"]          = "Bronze",
    ["bullion"]         = "Gold Bullion",
    ["bugged unav"]     = "Bugged",
    ["camp"]            = "Camp",
    ["caps"]            = "Caps",
    ["caravan"]         = "Plays caravan",
    ["cards"]           = "Cards",
    ["chance"]          = "Chance",
    ["check"]           = "Check",
    ["check1"]          = "Check",
    ["checkbrown"]      = "Check",
    ["chems"]           = "Chems",
    ["chemst"]          = "Chemistry station",
    ["chr"]             = "Charisma",
    ["companion"]       = "Companion",
    ["confidence"]      = "Confidence",
    ["cookst"]          = "Cooking station",
    ["craft"]           = "Crafting",
    ["credit"]          = "Creation Club Credits",
    ["crit dmg"]        = "Critical damage",
    ["crit effect"]     = "Critical effect",
    ["crit"]            = "Critical damage",
    ["cross"]           = "No",
    ["crosshair"]       = "Attack",
    ["cryo"]            = "Cryo",
    ["cut"]             = "Cut content",
    ["D20"]             = "Fallout Pen and Paper d20",
    ["dailyops"]        = "Daily Ops",
    ["dam/ap"]          = "Damage per action point",
    ["damage"]          = "Damage",
    ["dap"]             = "Armor class",
    ["dead"]            = "Dead",
    ["defense"]         = "Defense",
    ["detect"]          = "Detection",
    ["detection"]       = "Detection",
    ["dial"]            = "Dialogue",
    ["dialogue"]        = "Dialogue",
    ["disease"]         = "Disease",
    ["dislike"]         = "Dislike",
    ["distance"]        = "Distance",
    ["doctor"]          = "Doctor",
    ["dps"]             = "Damage per second",
    ["dr"]              = "Damage resistance",
    ["drink"]           = "Drink",
    ["dt"]              = "Damage threshold",
    ["dur"]             = "Duration",
    ["effect"]          = "Effect",
    ["electrical"]      = "Electrical",
    ["emp"]             = "EMP",
    ["end"]             = "Endurance",
    ["energy"]          = "Energy",
    ["enslave"]         = "Can be enslaved",
    ["essential"]       = "Essential",
    ["event"]           = "Event",
    ["eventpublic"]     = "Public Event",
    ["experience"]      = "Experience points",
    ["explmill"]        = "Explosives mill",
    ["explosion"]       = "Explosion",
    ["eye"]             = "Detection",
    ["facebook"]        = "Facebook",
    ["FB"]              = "Fallout Bible",
    ["FBG"]             = "Fallout: The Board Game",
    ["FBGagenda"]	= "influence / Agenda",
    ["FBGaggressive"]	= "Aggressive",
    ["FBGagility"]	= "Agility",
    ["FBGapparel"]	= "Apparel",
    ["FBGarmor"]	= "Armor",
    ["FBGasset"]	= "Asset",
    ["FBGcharisma"]	= "Charisma",
    ["FBGcompanion"]	= "Companion",
    ["FBGcritter"]	= "Critter",
    ["FBGdangerous"]	= "Dangerous",
    ["FBGdeadly"]	= "Deadly",
    ["FBGdieABLhits"]	= "VATS die: arms, body, legs, 2 hits",
    ["FBGendurance"]	= "Endurance",
    ["FBGfreedom"]	= "Freedom",
    ["FBGhit"]		= "Hit",
    ["FBGhuman"]	= "Human",
    ["FBGintelligence"] = "Intelligence",
    ["FBGloot"]		= "Loot",
    ["FBGluck"]		= "Luck",
    ["FBGmonster"]	= "Monster",
    ["FBGNC"]           = "Fallout: New California",
    ["FBGperception"]	= "Perception",
    ["FBGquest"]	= "Quest action",
    ["FBGradiation"]	= "Radiation",
    ["FBGranged"]	= "Ranged",
    ["FBGretreat"]	= "Retreat",
    ["FBGrobot"]	= "Robot",
    ["FBGsecurity"]	= "Security",
    ["FBGsettlement"]	= "Settlement",
    ["FBGstrength"]	= "Strength",
    ["FBGsupermutant"]	= "Super Mutant",
    ["FBGvault84"]	= "Vault 84",
    ["FBGvault109"]	= "Vault 109",
    ["FBGwasteland"]	= "Wasteland",
    ["FBGweapon"]	= "Weapon",
    ["female"]          = "Female",
    ["FILM"]            = "Fallout (film)",
    ["fire"]            = "Fire",
    ["firerate"]        = "Fire rate",
    ["fist"]            = "Fist",
    ["FNV"]             = "Fallout: New Vegas",
    ["FNVCS"]           = "Courier's Stash",
    ["FNVDM"]           = "Dead Money",
    ["FNVGRA"]          = "Gun Runners' Arsenal",
    ["FNVHH"]           = "Honest Hearts",
    ["FNVLR"]           = "Lonesome Road (add-on)",
    ["FNVOWB"]          = "Old World Blues (add-on)",
    ["fnvww"]           = "Wild Wasteland",
    ["FO1"]             = "Fallout",
    ["FO1st"]           = "Fallout 1st",
    ["FO2"]             = "Fallout 2",
    ["FO3"]             = "Fallout 3",
    ["FO3BS"]           = "Broken Steel",
    ["FO3MZ"]           = "Mothership Zeta (add-on)",
    ["FO3OA"]           = "Operation: Anchorage (add-on)",
    ["FO3PL"]           = "Point Lookout (add-on)",
    ["FO3TP"]           = "The Pitt (add-on)",
    ["FO4"]             = "Fallout 4",
    ["FO4AUT"]          = "Automatron (add-on)",
    ["FO4CC"]           = "Creation Club",
    ["fo4chain01"]      = "Four key chain",
    ["fo4chain02"]      = "Five key chain",
    ["fo4chain03"]      = "Five key chain",
    ["FO4CW"]           = "Contraptions Workshop",
    ["FO4FH"]           = "Far Harbor (add-on)",
    ["fo4gencard"]      = "Generic keycard",
    ["fo4holo"]         = "Holotape",
    ["fo4key01"]        = "Quantum key",
    ["fo4key02"]        = "Toy rocketship key",
    ["fo4key03"]        = "Vault Boy key",
    ["fo4note"]         = "Note",
    ["FO4NW"]           = "Nuka-World (add-on)",
    ["fo4vaultid"]      = "Vault ID card",
    ["FO4VR"]           = "Fallout 4 VR",
    ["FO4VW"]           = "Vault-Tec Workshop",
    ["FO4WW"]           = "Wasteland Workshop",
    ["FO76"]            = "Fallout 76",
    ["FO76WA"]          = "Wild Appalachia",
    ["FO76NW"]          = "Nuclear Winter",
    ["FO76WL"]          = "Wastelanders",
    ["FO76LR"]          = "The Legendary Run",
    ["FO76OW"]          = "One Wasteland For All",
    ["FO76SD"]          = "Steel Dawn",
    ["FO76LL"]          = "Locked & Loaded",
    ["FO76SR"]          = "Steel Reign",
    ["FO76FW"]          = "Fallout Worlds",
    ["FO76TS"]          = "Tales From the Stars",
    ["FO76TP"]          = "Expeditions: The Pitt",
    ["FOBOS"]           = "Fallout: Brotherhood of Steel",
    ["FOBOS2"]          = "Fallout: Brotherhood of Steel 2",
    ["food"]            = "Food",
    ["foodpr"]          = "Food processor",
    ["FOS"]             = "Fallout Shelter",
    ["FOSO"]             ="Fallout Shelter Online",
    ["FOT"]             = "Fallout Tactics",
    ["FOT2"]            = "Fallout Tactics 2",
    ["FOX"]             = "Fallout Extreme",
    ["free"]            = "Free",
    ["frost"]           = "Frost",
    ["FWW"]             = "Fallout: Wasteland Warfare",
    ["FOWW"]            = "Fallout: Wasteland Warfare",
    ["FWW"]             = "Fallout: Wasteland Warfare",
    ["FWWRPG"]          = "Fallout: Wasteland Warfare Roleplaying Game",
    ["game"]            = "Gameplay",
    ["gamerscore"]      = "Gamerscore",
    ["gas"]             = "Gas",
    ["gold"]            = "Gold",
    ["gold bullion"]    = "Gold Bullion",
    ["green"]           = "Reliable fact",
    ["grenade"]         = "Grenade",
    ["group"]           = "Group",
    ["gun"]             = "Gun",
    ["hate"]            = "Hate",
    ["healing rate"]    = "Healing rate",
    ["healing"]         = "Healing rate",
    ["health"]          = "Health points",
    ["heart"]           = "Health points",
    ["hp"]              = "Health points",
    ["image"]           = "Image",
    ["info"]            = "Information",
    ["instagram"]       = "Instagram",
    ["int"]             = "Intelligence",
    ["ios"]             = "Apple iOS|platform",
    ["JES"]             = "J.E. Sawyer's Fallout RPG",
    ["jury"]            = "Jury Rigging",
    ["laser"]           = "Laser",
    ["lck"]             = "Luck",
    ["legendary"]       = "Legendary",
    ["legendperk"]      = "Legendary Perk",
    ["level"]           = "Level",
    ["LH"]              = "Lionheart",
    ["like"]            = "Like",
    ["link"]            = "Food processor",
    ["linkedin"]        = "Linkedin",
    ["limited"]         = "Limited Edition",
    ["limitedtime"]     = "Limited-time",
    ["loc"]             = "Location",
    ["love"]            = "Love",
    ["lunchbox"]        = "Lunchbox",
    ["mac"]             = "Macintosh Classic or Mac OS X|platform",
    ["macclassic"]      = "Macintosh Classic (≤ MacOS 9)|platform",
    ["mag"]             = "Magazine capacity",
    ["male"]            = "Male",
    ["melee"]           = "Melee",
    ["mentioned"]       = "Mentioned",
    ["merchant"]        = "Merchant",
    ["mine"]            = "Mine",
    ["mod"]             = "With mods",
    ["mutate"]          = "Mutation",
    ["mutation"]        = "Mutation",
    ["myspace"]         = "Myspace",
    ["neutral"]         = "Neutral",
    ["neutralface"]     = "Neutral",
    ["new"]             = "New",
    ["no"]              = "No",
    ["note"]            = "Note",
    ["notrade"]         = "NoTrade",
    ["nukamix"]         = "Nuka-mixer station",
    ["nw"]              = "Nuclear Winter battle-royale",
    ["optional"]        = "Optional",
    ["PA"]              = "One Man, and a Crate of Puppets",
    ["pail"]            = "Mole miner pail",
    ["parmorst"]        = "Power armor station",
    ["pbgame"]          = "Pip-Boy game",
    ["pc"]              = "PC|platform",
    ["per"]             = "Perception",
    ["percent"]         = "Chance",
    ["pistol"]          = "Gun",
    ["plasma"]          = "Plasma",
    ["platinum"]        = "Platinum",
    ["poison"]          = "Poison",
    ["poison2"]         = "Poison2",
    ["possum"]          = "Possum badge",
    ["possum dark"]     = "Possum badge",
    ["present"]         = "Present",
    ["ps3"]             = "Playstation 3|platform",
    ["ps4"]             = "Playstation 4|platform",
    ["publicworkshop"]  = "Public workshop",
    ["PV13"]            = "Project V13",
    ["pve"]             = "PvE",
    ["pvp"]             = "PvP",
    ["quest"]           = "Quest",
    ["question"]        = "Question mark",
    ["radiation"]       = "Radiation",
    ["random"]          = "Random chance",
    ["range"]           = "Range",
    ["rarity"]          = "Rarity",
    ["ratio"]           = "Ratio",
    ["red"]             = "Unreliable or incorrect statement",
    ["repair"]          = "Repair",
    ["repeat"]          = "Repeat",
    ["required"]        = "Required",
    ["rifle"]           = "Rifle",
    ["robotwb"]         = "Robot workbench",
    ["score"]           = "S.C.O.R.E.",
    ["scout"]           = "Pioneer Scouts",
    ["scrip"]           = "Legendary Scrip",
    ["seasonal"]        = "Seasonal content",
    ["semi-required"]   = "Sometimes required or at least one required",
    ["semi"]            = "Sometimes required or at least one required",
    ["sequence"]        = "Sequence",
    ["shieldbronze"]    = "Armor class",
    ["shieldgold"]      = "Damage threshold",
    ["shieldsilver"]    = "Damage resistance",
    ["shotgun"]         = "Shotgun",
    ["sic"]             = "In-game spelling, punctuation and/or grammar",
    ["silver"]          = "Silver",
    ["smg"]             = "Submachine gun",
    ["soda"]            = "Soda",
    ["sound"]           = "Sound",
    ["spawn"]           = "Spawned",
    ["spooky"]          = "Spooky Scorched",
    ["spread"]          = "Spread",
    ["star"]            = "Legendary",
    ["stimpak"]         = "Stimpak",
    ["str"]             = "Strength",
    ["survival"]        = "Survival mode",
    ["switch"]          = "Nintendo Switch|platform",
    ["tadpole"]         = "Tadpole badge",
    ["tadpole dark"]    = "Tadpole badge",
    ["TAR"]             = "Project V13",
    ["tea"]             = "Tea",
    ["temp"]            = "Temporary",
    ["text"]            = "Text",
    ["TORN"]            = "TORN",
    ["tumblr"]          = "Tumblr",
    ["twitch"]          = "Twitch",
    ["twitter"]         = "Twitter",
    ["unarmed"]         = "Unarmed",
    ["unused"]          = "Unused",
    ["upcoming"]        = "Upcoming",
    ["V76"]             = "Vault 76",
    ["vaultraid"]       = "Vault Raids",
    ["vaulttec"]        = "Vault-Tec",
    ["VB"]              = "Van Buren",
    ["vt"]              = "Vault-Tec",
    ["weapwb"]          = "Weapons workbench",
    ["weight"]          = "Weight",
    ["wild wasteland"]  = "Wild Wasteland",
    ["WIKI"]            = "Nukapedia",
    ["windows"]         = "Windows Phone|platform",
    ["workshop"]        = "Workshop",
    ["ww"]              = "Wild Wasteland",
    ["xbox360"]         = "Xbox 360|platform",
    ["xboxone"]         = "Xbox One|platform",
    ["xp"]              = "Experience points",
    ["yes"]             = "Yes",
	
}
 
local gameIcon = {
    ["ability"]         = "Icon ability.png",
    ["ac"]              = "Icon shield bronze.png",
    ["acid"]            = "Icon acid.png",
    ["action"]          = "Icon action.png",
    ["alcohol"]         = "FO76 Alcohol Icon.svg",
    ["amber"]           = "Icon amber.png",
    ["ammo"]            = "icon ammo.png",
    ["ammo2"]           = "Icon ammo01.png",
    ["agi"]             = "FO76 A.png",
    ["android"]         = "icon android.png",
    ["ap"]              = "Icon ap.png",
    ["apple"]           = "icon appleios.png",
    ["ios"]             = "icon appleios.png",
    ["AR"]              = "gametitle-AR.png",
    ["armorwb"]         = "Fo4 Armor Work Icon.png",
    ["atom"]            = "FO76 Atom Currency 2.png",
    ["attack"]          = "Icon attack.png",
    ["axed"]            = "Fire axe icon color.png",
    ["big gun"]         = "Icon heavy weapon.png",
    ["bigger gun"]      = "Icon big gun.png",
    ["blade"]           = "Icon blade.png",
    ["bleed"]           = "Icon bleed.png",
    ["blunt"]           = "Icon blunt.png",
    ["bonus effect"]    = "Icon bonus effect.png",
    ["boss"]            = "FoS Boss.png",
    ["brain"]           = "Brain icon.png",
    ["bronze"]          = "Bronze.png",
    ["bullion"]         = "Fo76 Icon Gold Bullion.png",
    ["bugged unav"]     = "Radroach.png",
    ["camp"]            = "FO76 ui extra team.png",
    ["caps"]            = "Caps.png",
    ["caravan"]         = "Icon cards.png",
    ["cards"]           = "Icon cards.png",
    ["chance"]          = "FO76 ui roleplay team.png",
    ["check"]           = "Icon check.png",
    ["check1"]          = "Icon CheckYellowShadowed.png",
    ["checkbrown"]      = "Icon check temp.png",
    ["chems"]           = "FO76 Chems Icon.svg",
    ["chemst"]          = "Fo4 Chem Work Icon.png",
    ["chr"]             = "FO76 C.png",
    ["companion"]       = "NW icon ally.png",
    ["confidence"]      = "Icon confidence.png",
    ["cookst"]          = "Fo4 Cook Work Icon.png",
    ["craft"]           = "Icon crafting.png",
    ["credit"]          = "Credits icon.png",
    ["crit effect"]     = "Icon crit effect.png",
    ["crit"]            = "Icon critical damage.png",
    ["cross"]           = "Icon cross.png",
    ["crosshair"]       = "Icon attack.png",
    ["cryo"]            = "Icon cryo.png",
    ["cut"]             = "Icon cut.png",
    ["D20"]             = "gametitle-D20.png",
    ["dailyops"]        = "FO76 ui dailyops team.png",
    ["damage"]          = "Icon damage.png",
    ["dap"]             = "Icon dap.png",
    ["dead"]            = "Icon dead.png",
    ["defense"]         = "Icon shield silver.png",
    ["detect"]          = "Icon eye.png",
    ["detection"]       = "Icon eye.png",
    ["dial"]            = "Icon dialogue.png",
    ["dialogue"]        = "Icon dialogue.png",
    ["disease"]         = "Icon disease.png",
    ["dislike"]         = "Dislike.svg",
    ["distance"]        = "Icon range.png",
    ["doctor"]          = "Icon doctor.png",
    ["dps"]             = "Icon dps.png",
    ["dr"]              = "Icon shield silver.png",
    ["drink"]           = "FO76 Drink Icon.svg",
    ["dt"]              = "Icon shield gold.png",
    ["dur"]             = "Icon limitedtime.png",
    ["effect"]          = "Icon effect.png",
    ["electrical"]      = "Icon electrical.png",
    ["emp"]             = "Icon EMP.png",
    ["end"]             = "FO76 E.png",
    ["energy"]          = "Icon electrical.png",
    ["enslave"]         = "Icon cage.png",
    ["essential"]       = "Icon essential.png",
    ["event"]           = "FO76 icon map event.png",
    ["eventpublic"]     = "FO76 icon map public event.png",
    ["experience"]      = "Icon XP.png",
    ["explmill"]        = "Icon fo4cw builder.png",
    ["explosion"]       = "Icon explosion.png",
    ["eye"]             = "Icon eye.png",
    ["facebook"]        = "FacebookIcon.png",
    ["FB"]              = "gametitle-FB.png",
    ["FBG"]             = "gametitle-FBG.png",
    ["FBGagenda"]		= "FBG Agenda icon.svg",
    ["FBGaggressive"]	= "FBG Aggressive icon.svg",
    ["FBGagility"]		= "FBG A icon.svg",
    ["FBGapparel"]		= "FBG Apparel icon.svg",
    ["FBGarmor"]		= "FBG Armor icon.svg",
    ["FBGasset"]		= "FBG Asset icon.svg",
    ["FBGcharisma"]		= "FBG C icon.svg",
    ["FBGcompanion"]	= "FBG Companion icon.svg",
    ["FBGcritter"]		= "FBG Critter icon.svg",
    ["FBGdangerous"]	= "FBG Dangerous icon.svg",
    ["FBGdeadly"]		= "FBG Deadly icon.svg",
    ["FBGdieABLhits"]	= "FBG Die ABL Hits.png",
    ["FBGendurance"]	= "FBG E icon.svg",
    ["FBGfreedom"]		= "FBG Freedom icon.svg",
    ["FBGhit"]			= "FBG Hit icon.svg",
    ["FBGhuman"]		= "FBG Human icon.svg",
    ["FBGintelligence"] = "FBG I icon.svg",
    ["FBGloot"]			= "FBG Loot icon.svg",
    ["FBGluck"]			= "FBG L icon.svg",
    ["FBGmonster"]		= "FBG Monster icon.svg",
    ["FBGNC"]           = "gametitle-FBGNC.png",
    ["FBGperception"]	= "FBG P icon.svg",
    ["FBGquest"]		= "FBG Quest objective.svg",
    ["FBGradiation"]	= "FBG Radiation icon.svg",
    ["FBGranged"]		= "FBG Ranged icon.svg",
    ["FBGretreat"]		= "FBG Retreat icon.svg",
    ["FBGrobot"]		= "FBG Robot icon.svg",
    ["FBGsecurity"]		= "FBG Defender icon.svg",
    ["FBGsettlement"]	= "FBG Settlement icon.svg",
    ["FBGstrength"]		= "FBG S icon.svg",
    ["FBGsupermutant"]	= "FBG Super Mutant icon.svg",
    ["FBGvault84"]		= "FBG Vault 84 icon.svg",
    ["FBGvault109"]		= "FBG Vault 109 icon.svg",
    ["FBGwasteland"]	= "FBG Wasteland icon.svg",
    ["FBGweapon"]	    = "FBG Weapon icon.svg",
    ["FBGWW"]           = "gametitle-FBGWW.png",
    ["female"]          = "Female-gender-sign.png",
    ["FILM"]            = "Film.png",
    ["fire"]            = "Icon fire.png",
    ["firerate"]        = "FO76 UI icon Ammo custom.png",
    ["fist"]            = "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",
    ["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",
    ["fo4chain01"]      = "icon Fo4 chain01.png",
    ["fo4chain02"]      = "icon Fo4 chain02.png",
    ["fo4chain03"]      = "icon Fo4 chain03.png",
    ["FO4CW"]           = "gametitle-FO4_CW.png",
    ["FO4FH"]           = "gametitle-FO4_FH.png",
    ["fo4gencard"]      = "icon Fo4 gen keycard.png",
    ["fo4holo"]         = "icon Fo4 holotape.png",
    ["fo4key01"]        = "icon Fo4 key01.png",
    ["fo4key02"]        = "icon Fo4 key02.png",
    ["fo4key03"]        = "icon Fo4 key03.png",
    ["fo4note"]         = "icon Fo4 note.png",
    ["FO4NW"]           = "gametitle-FO4_NW.png",
    ["fo4vaultid"]      = "icon Fo4 vaultid.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",
    ["FO76SD"]          = "gametitle-FO76 Steel Dawn.png",
    ["FO76LL"]          = "gametitle-FO76 Locked n Loaded.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",
    ["food"]	     	= "Fallout 76 Food Icon.svg",
    ["foodpr"]          = "Icon fo4cw builder.png",
    ["FOOL"]            = "PV13.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",
    ["free"]            = "ATX FREE.png",
    ["frost"]           = "Icon effect.png",
    ["FWW"]             = "gametitle-FWW.png",
    ["FOWW"]            = "gametitle-FWW.png",
    ["FWWRPG"]          = "gametitle-FWWRPG.png",
    ["game"]            = "FO76 ui roleplay team.png",
    ["gamerscore"]      = "Gamerscore.svg",
    ["gas"]             = "Icon gas.png",
    ["gold"]            = "Gold.png",
    ["gold bullion"]    = "Fo76 Icon Gold Bullion.png",
    ["green"]           = "Icon green.png",
    ["grenade"]         = "FO76 iconwheel grenade.png",
    ["group"]           = "Icon group.png",
    ["gun"]             = "Icon gun.png",
    ["hate"]            = "Hate.svg",
    ["healing rate"]    = "Icon healing.png",
    ["healing"]         = "Icon healing.png",
    ["health"]          = "Icon heart.png",
    ["heart"]           = "Icon heart.png",
    ["hp"]              = "Icon heart.png",
    ["image"]           = "Icon image.png",
    ["info"]            = "Icon info.png",
    ["instagram"]       = "Instagram icon.jpg",
    ["int"]             = "FO76 I.png",
    ["JES"]             = "gametitle-JES.png",
    ["jury"]            = "FO76 vaultboy licensedplumber 01.png",
    ["laser"]           = "Icon laser.png",
    ["lck"]             = "FO76 L.png",
    ["legendary"]       = "Icon legendary.png",
    ["legendperk"]      = "FO76 Perk coin.png",
    ["level"]           = "Icon level.png",
    ["LH"]              = "gametitle-LH.png",
    ["like"]            = "Like.svg",
    ["linkedin"]        = "Linkedin icon.png",
    ["limited"]         = "YOU SHOULD BUY THIS.png",
    ["limitedtime"]     = "Icon limitedtime.png",
    ["loc"]             = "FO76 ui exploration team.png",
    ["love"]            = "Love.svg",
    ["lunchbox"]        = "FO76 Lunchbox Icon.svg",
    ["mac"]             = "Icon mac.png",
    ["macclassic"]      = "Icon mac.png",
    ["mag"]             = "Icon mag.png",
    ["male"]            = "Male-gender-sign.png",
    ["melee"]           = "Icon melee.png",
    ["mentioned"]       = "Icon mentioned.png",
    ["merchant"]        = "FO76 ui trading team.png",
    ["mine"]            = "FO76 iconwheel minefrag.png",
    ["mod"]             = "Icon plus.png",
    ["mutate"]          = "FO76 vaultboy dna.png",
    ["mutation"]        = "FO76 Mutation Icon.svg",
    ["myspace"]         = "Myspace icon.png",
    ["neutral"]         = "Icon neutral.png",
    ["neutralface"]     = "Neutral.svg",
    ["new"]             = "ATX NEW.png",
    ["no"]              = "Icon cross.png",
    ["note"]            = "icon Fo4 note.png",
    ["notrade"]         = "Icon NoTrade.png",
    ["nukamix"]         = "Icon Nuka-mixer station.png",
    ["nw"]              = "FO76NW Vault 51 icon.png",
    ["optional"]        = "Icon optional.png",
    ["PA"]              = "Penny Arcade.gif",
    ["pail"]            = "Icon FO76 mole miner pail.png",
    ["parmorst"]        = "Fo4 Power Work Icon.png",
    ["pbgame"]          = "Fo4 Pip-Boy game.png",
    ["pc"]              = "Icon pc.png",
    ["per"]             = "FO76 P.png",
    ["percent"]         = "FO76 ui roleplay team.png",
    ["pistol"]          = "FO76 iconwheel pistol.png",
    ["plasma"]          = "Icon plasma.png",
    ["platinum"]        = "Plat.png",
    ["poison"]          = "Icon poison.png",
    ["poison2"]         = "Poison Icon.png",
    ["possum"]          = "FO76 Possum badge blue.png",
    ["possum dark"]     = "FO76 Possum badge.png",
    ["present"]         = "FO76 Present Icon.png",
    ["ps3"]             = "Icon ps3.png",
    ["ps4"]             = "Icon ps4.png",
    ["publicworkshop"]  = "Icon Public Workshop.png",
    ["PV13"]            = "PV13.png",
    ["pve"]             = "FO76 ui casual team.png",
    ["pvp"]             = "FO76 ui workshopraid team.png",
    ["quest"]           = "FO76 ui icon quest.png",
    ["question"]        = "Icon question.png",
    ["radiation"]       = "Icon radiation.png",
    ["random"]          = "FO76 ui roleplay team.png",
    ["range"]           = "Icon range.png",
    ["rarity"]          = "Icon rarity.png",
    ["ratio"]           = "Icon ratio.png",
    ["red"]             = "Icon red.png",
    ["repair"]          = "FO76 ui workshop team.png",
    ["repeat"]          = "Icon repeat.png",
    ["required"]        = "Icon required.png",
    ["rifle"]           = "Icon rifle.png",
    ["robotwb"]         = "Icon robot workbench.png",
    ["score"]           = "FO76 scoresprite seasons.png",
    ["scout"]           = "FO76 Pioneer Scouts.png",
    ["scrip"]           = "FO76 Scrip.png",
    ["seasonal"]        = "FO76 Quest Old Man Winter.png",
    ["semi-required"]   = "Icon semi-required.png",
    ["semi"]            = "Icon semi-required.png",
    ["sequence"]        = "Icon sequence.png",
    ["shieldbronze"]    = "Icon shield bronze.png",
    ["shieldgold"]      = "Icon shield gold.png",
    ["shieldsilver"]    = "Icon shield silver.png",
    ["shotgun"]         = "Icon shotgun.png",
    ["sic"]             = "Icon sic.png",
    ["silver"]          = "Silver.png",
    ["smg"]             = "Icon smg.png",
    ["soda"]            = "FO76 Soda Icon.svg",
    ["sound"]           = "Icon sound.png",
    ["spawn"]           = "Icon spawn.png",
    ["spooky"]          = "FO76 candyBowl MapIcon.png",
    ["spread"]          = "Icon spread.png",
    ["star"]            = "Icon legendary.png",
    ["stimpak"]         = "FO76 Stimpak Icon.svg",
    ["str"]             = "FO76 S.png",
    ["survival"]        = "FO76 icon roadmap survival.png",
    ["switch"]          = "Nintendo Switch icon.png",
    ["TAR"]             = "gametitle-TAR.jpg",
    ["tadpole"]         = "FO76 Tadpole badge blue.png",
    ["tadpole dark"]    = "FO76 Tadpole badge.png",
    ["tea"]             = "FO76 Drink Tea Icon.svg",
    ["temp"]            = "Icon check temp.png",
    ["text"]            = "Icon text.png",
    ["TORN"]            = "gametitle-TORN.png",
    ["tumblr"]          = "Tumblr Icon.png",
    ["twitch"]          = "Twitch icon.png",
    ["twitter"]         = "Twitter icon.png",
    ["unarmed"]         = "Icon unarmed.png",
    ["unused"]          = "Icon unused.png",
    ["upcoming"]        = "mbox_upcoming.png",
    ["V76"]             = "FO76 Vault 76 icon.png",    
    ["vaultraid"]       = "Vault Raids.png",
    ["vaulttec"]        = "Icon vaulttec.png",
    ["VB"]              = "gametitle-VB.png",
    ["vt"]              = "Icon vaulttec.png",
    ["weapwb"]          = "Fo4_Weapon_Work_Icon.png",
    ["weight"]          = "FO76 icon weight.png",
    ["WIKI"]            = "gametitle-Wiki.png",
    ["wild wasteland"]  = "Icon wildwasteland.png",
    ["windows"]         = "Icon windows.png",
    ["workshop"]        = "Icon workshop.png",
    ["ww"]              = "Icon wildwasteland.png",
    ["xbox360"]         = "Icon xbox360.png",
    ["xboxone"]         = "Icon xboxone.png",
    ["xp"]              = "Icon XP.png",
    ["yes"]             = "Icon check.png",
}
 
local iconSize = {
    ["small"]           = "x10px",
    ["medium"]          = "x14px",
    ["normal"]          = "x14px",
    ["big"]             = "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 imageClass =  ""
    if frame.args[5] ~= nil then
    	imageClass = "|class="..tostring(frame.args[5])
    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 .. "[[Category:Modules with invalid parameters]]"
        end
        
        --Create wikitext icon
		dataLine = '[[File:' .. currentIcon .. '|' .. iconSetting
        if iconLinks ~= nil and iconLinks[n] ~= nil and iconLinks[n] ~= "" then
            dataLine = dataLine .. '|link=' .. iconLinks[n]
        else
            dataLine = dataLine .. '|link='
        end
        if currentTip ~= nil then
            dataLine = dataLine .. '|' .. currentTip
        end

        dataLine = dataLine .. imageClass .. ']]'
		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.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
        	
            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>[Platforms needed]</sup>[[Category:Platforms needed]]'
    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