Module:ShipInfobox: Difference between revisions
Content deleted Content added
m Adding tonumber() to see if it fixes error |
m More tonumber() |
||
Line 106:
if not isempty(field.Utility) then
table.insert(output, field.Utility .. 'x Utility ' ..
lang:plural( tonumber(field.Utility), 'Mount', 'Mounts'))
matroska = true
end
Line 112:
if (matroska) then table.insert(output, '<br />') end
table.insert(output, field.S .. 'x Small ' ..
lang:plural( tonumber(field.S), 'Hardpoint', 'Hardpoints'))
matroska = true
end
Line 118:
if (matroska) then table.insert(output, '<br />') end
table.insert(output, field.M .. 'x Medium ' ..
lang:plural( tonumber(field.M), 'Hardpoint', 'Hardpoints'))
matroska = true
end
Line 124:
if (matroska) then table.insert(output, '<br />') end
table.insert(output, field.L .. 'x Large ' ..
lang:plural( tonumber(field.L), 'Hardpoint', 'Hardpoints'))
matroska = true
end
Line 130:
if (matroska) then table.insert(output, '<br />') end
table.insert(output, field.H .. 'x Huge ' ..
lang:plural( tonumber(field.H), 'Hardpoint', 'Hardpoints'))
end
return table.concat( output )
| |||