Allow sending the number of lcd columns as a parameter

This is needed for https://phabricator.wikimedia.org/T76196
and may also nbe useful for many other features.
Thanks, I'll probably remove the items variable.