Module:Layout

local Layout = {}

local function isempty(s) -- Empty parameter check return s == nil or s == '' end

function Layout.Roundy( frame ) -- Another case that can probably be solved better in another way. -- Since there's no possible reason to invoke this, we should use frame:getParent.args if not isempty( frame:getParent.args[1] ) then local value = frame:getParent.args[1] return 'border-radius: '..value..'; -moz-border-radius: '..value..'; -webkit-border-radius: '..value..'; -khtml-border-radius: '..value..'; -icab-border-radius: '..value..'; -o-border-radius: '..value..';' else return 'border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px;' end end

return Layout