Module:ShipInfobox: Difference between revisions
Content deleted Content added
mNo edit summary |
|||
| (6 intermediate revisions by the same user not shown) | |||
Line 145:
function Infobox.MaxCargo ( field, vars )
local output =
local number = 0
if HF.isempty(field.Cargo) then
if not HF.isempty(field.S1) then
end
if not HF.isempty(field.S2) then
end
if not HF.isempty(field.S3) then
end
if not HF.isempty(field.S4) then
end
if not HF.isempty(field.S5) then
end
if not HF.isempty(field.S6) then
end
if not HF.isempty(field.S7) then
end
if not HF.isempty(field.S8) then
end
if number == 0 then
else
output = tostring(number)
end
▲ return output
else
output = field.Cargo
| |||