ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਮੌਡਿਊਲ:Extended file extension

ਵਿਕੀਸਰੋਤ ਤੋਂ

Documentation for this module may be created at ਮੌਡਿਊਲ:Extended file extension/doc

local p={}

function p.test(frame) 
	local title=mw.title.getCurrentTitle()
	local result=""
	-- If we are on an Index page
	if title.namespace==102 then
		if string.find(string.lower(title.text),"%.djvu")~=nil then
			result="[[Category:DJVU schedule page]]"
		end
		if string.find(string.lower(title.text),"%.pdf")~=nil then
			result="[[Category: PDF schedule page]]"
		end
	end
	return result
end
return p