Documentação do módulo[ver] [editar] [histórico] [purgar]

Implements {{CSS unit}}.

--[=[
Same function as [[Template:User contrib]]
]=]

local p = {} --p stands for package

local getArgs = require('Module:Arguments').getArgs

function p._CSS_unit(args)
	return string.sub(string.gsub(args[1] or args.source or "", "^[%d.]+", ""), 1, -1)
end

function p.CSS_unit(frame)
	return p._CSS_unit(getArgs(frame))
end

return p