887
edits
Dicemonger (talk | contribs) mNo edit summary |
Dicemonger (talk | contribs) mNo edit summary |
||
Line 47: | Line 47: | ||
function getMinWidth(frame, cols) | function getMinWidth(frame, cols) | ||
if | if frame.args['minwidth'] then | ||
return frame.args['minwidth'] | return frame.args['minwidth'] | ||
elseif frame.args['ignoreminwidth'] == nil or frame.args['ignoreminwidth'] == false then | elseif frame.args['ignoreminwidth'] == nil or frame.args['ignoreminwidth'] == false then | ||
return " | if cols == "0" then | ||
return "auto" | |||
elseif cols == "1" then | |||
return "100%" | |||
elseif cols == "2" then | |||
return "400px" | |||
elseif cols == "3" then | |||
return "270px" | |||
elseif cols == "4" then | |||
return "200px" | |||
elseif cols == "5" then | |||
return "150px" | |||
elseif cols == "6" then | |||
return "125px" | |||
end | |||
end | end | ||
return 0 | return 0 |