Revision 55522 of "Modulo:GetIndex" on vecwikisource

local p={}

-- logica:
-- leggere il testo della pagina e ripescare il valore index="...." di pages

function p.indice(frame) 
	local result="prova"
	local title=mw.title.getCurrentTitle()
	local text=title:getContent()
	local indexName=""
	indexName=string.match(text,'index="(.-)"')
	return "Indice:"..indexName
end

return p