local p =
function p.page(frame) local args = frame:getParent.args local lompnum_from = args[1] or 1001 local lompnum_to = lompnum_from + 999 local lompnum_k = math.floor((lompnum_from - 1)/1000) local lomp = 'List of minor planets: '..lompnum_from..'–'..lompnum_to --en dash local title = mw.title.new(lomp) local pre = local mid = '' local large = frame:expandTemplate local small = frame:expandTemplate local post = large..small --i.e. '' if title.exists false then pre = 'style="background-color:#e2e2e2" | ' local color = frame:expandTemplate post = color --i.e. '' end return pre..mid..post..'
'end
return p