Module:Slottable: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 45:
-- end
if item.speed == nil or (tonumber(item.speed) and tonumber(item.speed) < 0) then
row:tag('td'):addClass('table-na nohighlight'):css('text-align', 'center'):wikitext('<small>N/A</small>')▼
-- proceed with your existing code
▲ row:tag('td'):addClass('table-na nohighlight'):css('text-align', 'center'):wikitext('<small>N/A</small>')
else
if not tonumber row:tag('td'):wikitext(item.speed) then:done()
mw.log('Invalid speed format for item:', item.name, 'Speed:', item.speed)
end
row:tag('td'):wikitext(item.speed):done()
end
end