Module:MonthName

--- **************************** --- This module converts a month number --- to a short month name, beginning --- month 1 -> Jan --- ***************************** --- copied from tokyoghoul Fandom wiki ---

local m = {}; --list of month names local months = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; -- determines the month name (if called from another Lua module) function m.getmonth(m) return months[assert(tonumber(m), "input is not a month")]; end -- determines the month name (if called from a template) function m.getmonth_template(frame) return m.getmonth(frame.args[1]); end return m;