Modulo
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