4,951
edits
Falterfire (talk | contribs) (Added getItemTableRows for use with Template:ItemsTable) |
Falterfire (talk | contribs) (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 = {} |