Modulo

From Redazione
Revision as of 16:52, 5 November 2020 by Admin (talk | contribs) (una versione importata)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at doc

local p={}

function p.test(frame) 
	local title=mw.title.getCurrentTitle()
	local result=""
	-- se siamo su una  pagina Indice
	if title.namespace==110 then
		if string.find(string.lower(title.text),"%.djvu")~=nil then
			result="[[Categoria:Pagine indice DJVU]]"
		end
		if string.find(string.lower(title.text),"%.pdf")~=nil then
			result="[[Categoria:Pagine indice PDF]]"
		end
	end
	return result
end
return p