Module:Platforms

local p = {} local PlatformsData = mw.loadData ( 'Module:Platforms/data' ) function p.PlatformsIcon (frame) local Arg1 = string.lower(frame.Args[1]) local Arg2 = string.lower(frame.Args[2]) local Arg3 = string.lower(frame.Args[3]) local Arg4 = string.lower(frame.Args[4]) local returnData = PlatformsData[Arg1] if Arg2 ~= nil or Arg2 ~= "" then returnData = returnData + PlatformsData[Arg2] if Arg3 ~= nil or Arg3 ~= "" then returnData = returnData + PlatformsData[Arg3] if Arg4 ~= nil or Arg4 ~= "" then returnData = returnData + PlatformsData[Arg4] end end end return returnData end return p