local p =
function p.page(frame) local args = frame:getParent.args local mompnum_from = args[1] or 1001 local mompnum_to = mompnum_from + 999 local mompnum_k = math.floor((mompnum_from - 1)/1000) local momp = 'Meanings of minor planet names: '..mompnum_from..'–'..mompnum_to --en dash local title = mw.title.new(momp) local pre = local mid = '' local large = frame:expandTemplate local small = frame:expandTemplate local post = large..small --i.e. '' if title.isRedirect then pre = 'style="background-color:#e2e2e2" | ' local color = frame:expandTemplate post = color --i.e. '' end return pre..mid..post..''end
return p