Module:ShipInfobox: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 18:
end
function ShipInfobox.MainImage ( field )
--
end
function ShipInfobox.Factionreq( field )
Line 29 ⟶ 32:
end
end
-- replaces {{#if:{{{topspeed|}}}|{{{topspeed|?}}} m/s|---}} logic
function ShipInfobox.Quantify( field )
local unit = field.Unit or ''
local value = field.Value or field.Default or '?'
if isempty(value) then
return '---'
else
return value .. ' ' .. unit
end
end
function ShipInfobox.Insurance( field )
--
end
function ShipInfobox.Internals( field )
--
end
function ShipInfobox.Hardpoints( field )
--
end
return ShipInfobox
| |||