Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Temperature: Difference between revisions

From Stationeers Community Wiki
DLx (talk | contribs)
mNo edit summary
RA2lover (talk | contribs)
RA2lover changed the content model of the page Module:Temperature from "Scribunto module" to "Scribunto module"
(No difference)

Revision as of 01:53, 13 March 2026

Documentation for this module may be created at Module:Temperature/doc

local p = {}
function p.convert(frame)
  local raw = frame.args[1]
            or (frame.getParent and frame:getParent().args[1])
            or "0"
  local k = tonumber(raw) or 0
  local c = k - 273.15
  return string.format("%g K (%.1f °C)", k, c)
end
return p