Module:title/getMainPageTitle

Hello, you have come here looking for the meaning of the word Module:title/getMainPageTitle. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:title/getMainPageTitle, but we will also tell you about its etymology, its characteristics and you will know how to say Module:title/getMainPageTitle in singular and plural. Everything you need to know about the word Module:title/getMainPageTitle you have here. The definition of the word Module:title/getMainPageTitle will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:title/getMainPageTitle, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local title_new_title_module = "Module:title/newTitle"

local require = require

local function new_title(...)
	new_title = require(title_new_title_module)
	return new_title(...)
end

local main_page
local function get_main_page()
	-- Ideally this would be done via some kind of :parse() method, but the
	-- mw.message library got heavily nerfed by ], meaning it's
	-- now only able to fetch the unparsed wikitext and can't expand it.
	main_page, get_main_page = require("Module:frame").preprocess(mw.message.new("mainpage"):plain()), nil
	return main_page
end

return function()
	return new_title(main_page or get_main_page())
end