887
edits
Dicemonger (talk | contribs) mNo edit summary |
Dicemonger (talk | contribs) mNo edit summary |
||
Line 68: | Line 68: | ||
function getBorder(frame) | function getBorder(frame) | ||
if frame.args['border'] == true then | if frame.args['border'] == "true" then | ||
return "border:1px solid #DDDDDD;" | return "border:1px solid #DDDDDD;" | ||
else | else | ||
Line 78: | Line 78: | ||
if not frame.args['background'] == nil then | if not frame.args['background'] == nil then | ||
return "background-color: " .. frame.args['background'] .. ";" | return "background-color: " .. frame.args['background'] .. ";" | ||
elseif frame.args['border'] == true then | elseif frame.args['border'] == "true" then | ||
return "background-color:#ffffff;" | return "background-color:#ffffff;" | ||
else | else | ||
Line 86: | Line 86: | ||
function getTextAlignment(frame) | function getTextAlignment(frame) | ||
if frame.args['center'] == true then | if frame.args['center'] == "true" then | ||
return "text-align:center;" | return "text-align:center;" | ||
else | else | ||
Line 94: | Line 94: | ||
function getPadding(frame) | function getPadding(frame) | ||
if frame.args['nomargin'] == true then | if frame.args['nomargin'] == "true" then | ||
return "padding:0px;;" | return "padding:0px;;" | ||
elseif frame.args['center'] == true then | elseif frame.args['center'] == "true" then | ||
return "padding:20px;" | return "padding:20px;" | ||
else | else | ||
Line 104: | Line 104: | ||
function getMargin(frame) | function getMargin(frame) | ||
if frame.args['nomargin'] == true then | if frame.args['nomargin'] == "true" then | ||
return "margin:0px;;" | return "margin:0px;;" | ||
elseif frame.args['border'] == true then | elseif frame.args['border'] == "true" then | ||
return "margin:4px;" | return "margin:4px;" | ||
else | else |