Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,327
edits
No edit summary |
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
row:tag('td'):addClass('table-na nohighlight'):css('text-align', 'center'):wikitext('<small>N/A</small>')
else
if type(item.speed) ~= "number" and tonumber(item.speed) == nil then
▲ row:tag('td'):wikitext(item.speed):done()
row:tag('td'):wikitext('Not number'):done()
else
row:tag('td'):wikitext(item.speed):done()
end
end
-- if item.speed == nil or (tonumber(item.speed) and tonumber(item.speed) < 0) then
|