Module:Dsize

From The FunKey Wiki
Revision as of 21:51, 26 September 2021 by CoolieCoolster (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}
function p.main ( frame )
	local gpar = frame.args
	if  mw.ustring.sub(gpar[1], -2) == 'px' then
		return gpar[1];
	else
		return gpar[1] .. 'px';
	end
end
return p;