Modul:CharArmor
Aus Star Citizen Wiki
Weitere Optionen
Die Dokumentation für dieses Modul kann unter Modul:CharArmor/doc erstellt werden
local CharArmor = {}
-- Re-created after the 2024-04 deletion ("Ersetzt durch Modul:Item"):
-- Modul:Clothing still uses formatTemperature and the i18n labels below.
-- Minimal port from the archived pre-deletion revision (web.archive.org,
-- snapshot 2022-11-29 of https://star-citizen.wiki/Modul:CharArmor).
local common = require( 'Module:Common' )
--- Formats a temperature value for the SMW property Temperaturresistenz
--- @param temperature number|string
--- @return string|nil
function CharArmor.formatTemperature( temperature )
if temperature == nil then
return nil
end
temperature = common.toNumber( temperature, false )
if temperature == nil then
return nil
end
return common.formatNum( temperature ) .. ' °C'
end
return CharArmor