Template:Month/doc

undefined is a constituent part of MonthNav. It tells MonthNav what the month is, based upon the page name of the page on which it's placed. If it's on 3rd January, for instance, it will inform MonthNav that the month is January.