Module:request-forum

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


local m_data = mw.loadData("Module:requests/data")
local request_namespaces = m_data.request_namespaces
local Sinitic_scripts = m_data.Sinitic_scripts

local export = {}

local function subforum(lang_code, type)
	local namespace = mw.title.getCurrentTitle().namespace

	 -- RFDs of articles in nonstandard namespaces go straight to ] without having their language code checked.
	 -- This branch is only used by ] because the other RFD templates (], ]) semantically presuppose the target to be a lingual element.
	if type == "deletion" and not request_namespaces then
		return "Wiktionary:Requests for " .. type .. "/Others"
	elseif namespace == 118 then -- Reconstruction:
		-- There is no 'Requests for verification/Reconstruction'; everything vectors to RFDR.
		return "Wiktionary:Requests for deletion/Reconstruction"
	end
	-- Print error if invalid code.
	local lang = require("Module:languages").getByCode(lang_code) or require("Module:languages/errorGetBy").code(lang_code, 1)
	if lang:inFamily("gmw-ang") and not lang:inFamily("qfa-cnt") and lang:getFullCode() ~= "ang" then
		return "Wiktionary:Requests for " .. type .. "/English"
	elseif lang:inFamily("jpx", "qfa-kor", "sit-sba") or Sinitic_scripts then
		return "Wiktionary:Requests for " .. type .. "/CJK"
	elseif lang:inFamily("itc") then
		return "Wiktionary:Requests for " .. type .. "/Italic"
	else
		return "Wiktionary:Requests for " .. type .. "/Non-English"
	end
end

function export.rfv(frame)
	return subforum(frame.args, "verification")
end

function export.rfd(frame)
	return subforum(frame.args, "deletion")
end

return export