Module:Items/ComparisonTables: Difference between revisions

Forcing rowCount to be a number
(Added getItemTableRows for use with Template:ItemsTable)
(Forcing rowCount to be a number)
Line 311: Line 311:
   local rowCount = frame.args ~= nil and frame.args[2] or frame[2]
   local rowCount = frame.args ~= nil and frame.args[2] or frame[2]
   if rowCount == nil then rowCount = 200 end
   if rowCount == nil then rowCount = 200 end
  if type(rowCount) == 'string' then rowCount = tonumber(rowCount) end
    
    
   local rowResult = {}
   local rowResult = {}