From WikiChip
Difference between revisions of "Module:comp"

Line 7: Line 7:
 
   end
 
   end
 
 
   return frame.args.list
+
   local list = split(frame.args.list, ',')
 +
  local s
 +
  for chip in list do
 +
    s = s .. "<br>\n*" .. chip
 +
  end
 
end
 
end
  
 
return m
 
return m

Revision as of 17:24, 17 May 2017

Documentation for this module may be created at Module:comp/doc

local m = {}

function m.mpu_comp(frame)
	
  if not frame.args.list then
    return 'Error: Missing chip list to compare!'
  end
	
  local list = split(frame.args.list, ',')
  local s
  for chip in list do
    	s = s .. "<br>\n*" .. chip
  end
end

return m