Jump to content

Module:Outline of the week

From Wikipedia, the free encyclopedia
local olotw = {}; 
-- Define a function to display the selected page name

olotw.pagename = function()

	-- Define a list of Wikipedia outline page names
	local pages = {
	    "[[Outline of physics]]",
	    "[[Outline of artificial intelligence]]",
	    "[[Outline of computer science]]",
	    "[[Outline of biology]]",
	    "[[Outline of France]]",
	    "[[Outline of zoology]]",
	    "[[Outline of astronomy]]",
	    "[[Outline of energy]]",
	    "[[Outline of Neptune]]",
	    "[[Outline of Alabama]]",
	    "[[Outline of the Solar System]]",
	    "[[Outline of the American Civil War]]",
	    "[[Outline of fish]]",
	    "[[Outline of ancient India]]",
	    "[[Outline of the Moon]]",
	    "[[Outline of jazz]]",
	    "[[Outline of extraterrestrial life]]",
	    "[[Outline of exercise]]",
	    "[[Outline of William Shakespeare]]",
	    "[[Outline of Earth science]]",
	    "[[Outline of black holes]]",
	    "[[Outline of diabetes]]",
	    "[[Outline of the Middle Ages]]",
	    "[[Outline of archaeology]]",
	    "[[Outline of Taipei]]",
	    "[[Outline of relationships]]",
	    "[[Outline of Bob Marley]]",
	    "[[Outline of ancient China]]",
	    "[[Outline of finance]]",
	    "[[Outline of crime]]",
	    "[[Outline of architecture]]",
	    "[[Outline of green politics]]",
	    "[[Outline of globalization]]",
	    "[[Outline of dinosaurs]]",
	    "[[Outline of ancient Rome]]",
	    "[[Outline of open educational resources]]",
	    "[[Outline of industrial organization]]",
	    "[[Outline of ecology]]",
	    "[[Outline of business management]]",
	    "[[Outline of ancient Greece]]",
	    "[[Outline of transport]]",
	    "[[Outline of critical theory]]",
	    "[[Outline of biochemistry]]",
	    "[[Outline of the Renaissance]]",
	    "[[Outline of ancient Egypt]]",
	    "[[Outline of anthropology]]",
	    "[[Outline of marketing]]",
	    "[[Outline of literature]]",
	    "[[Outline of music]]",
	    "[[Outline of philosophy]]",
	    "[[Outline of psychology]]",
	    "[[Outline of sociology]]"
	}

    -- Get the current week number
    local week = os.date("%U")

    -- Use the week number to select a page from the list
    local page = pages[tonumber(week) % #pages + 1]

    -- Display the selected page
    return page
end
return olotw