Module:Sandbox/GKFX/2

From WikiProjectMed
Jump to navigation Jump to search
local p = {}

function p.test()
	local title = mw.title.getCurrentTitle()
	if title.namespace == 10 and mw.ustring.sub(title.text, 1, 7) == "Infobox" then
		return "yes"	
	else
		return "ns: " .. title.namespace .. ", title[1,7] = [" .. mw.ustring.sub(title.text, 1, 7) .. "]"
	end
end

return p