Module:Slottable: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "local p = {} require('Module:Mw.html extension') local yesNo = require('Module:Yesno') local paramTest = require('Module:Paramtest') local contains = require('Module:Array').contains local minimum = require('Module:Array').min local pagesWithCats = require('Module:PageListTools').pageswithcats local pagesWithConditions = require('Module:PageListTools').pageswithconditions local editbtn = require('Module:Edit button') local memberOptions = {'members', 'f2p', 'all'} loc...")
 
No edit summary
Line 39:
 
if(attackSpeedColumn) then
-- if((item.speed == nil) or (item.speed < 0)) then
-- row:tag('td'):addClass('table-na nohighlight'):css('text-align', 'center'):wikitext('<small>N/A</small>')
-- else
-- row:tag('td'):wikitext(item.speed):done()
-- end
if item.speed == nil or (tonumber(item.speed) and tonumber(item.speed) < 0) then
-- proceed with your existing code
row:tag('td'):addClass('table-na nohighlight'):css('text-align', 'center'):wikitext('<small>N/A</small>')
else
row:tag('td'):wikitext if not tonumber(item.speed):done() then
mw.log('Invalid speed format for item:', item.name, 'Speed:', item.speed)
end
row:tag('td'):wikitext(item.speed):done()
end
end

Navigation menu