Pergi ke kandungan

Modul:Unit CSS

Daripada Wikisumber
local p = {} --p stands for package

local getArgs = require('Modul: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