Modulo
Jump to navigation
Jump to search
(aggiungo Categoria:Pagine indice DJVU) |
m (una versione importata) |
(No difference)
| |
Latest revision as of 16:52, 5 November 2020
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