Module:UtilsItemTables

From Eco - English Wiki
Revision as of 18:15, 6 March 2022 by Demian (talk | contribs) (Created page with "local p = {} --- Format item footprint dimensions by replacing " X " with the HTML "×" entity. -- @param #string dimensions Item dimensions string -- @return #string Formatted footprint dimensions -- @author User:Demian function p.formatFootprintDimensions(dimensions) return string.gsub(dimensions, " X ", "×") end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}

--- Format item footprint dimensions by replacing " X " with the HTML "×" entity.
-- @param #string dimensions Item dimensions string
-- @return #string Formatted footprint dimensions
-- @author User:Demian
function p.formatFootprintDimensions(dimensions)
	return string.gsub(dimensions, " X ", "×")
end

return p