Modulo:LeggiDati

Da Wikisource.

La documentazione per questo modulo può essere creata in Modulo:LeggiDati/man

local p={}
function p.testo(frame)
	local args=frame.args
	local base = mw.title.getCurrentTitle()
	local rootText=base.rootText
	local indice=mw.title.new("Indice:"..rootText)
	return indice:getContent()
	end
	
function p.stileTeatro(frame)
	local testo=p.testo(frame)
	-- per back-compatibility temporaneamente cerca anche le stringhe di vecchio tipo Stileteatro: e TemplateStyle:
	local style=string.match(testo,"Css=(%w+)") 
	if style==nil then
		local style=string.match(testo,"TemplateStyle:(%w+)")
	end
	if style== nil then 
		style=string.match(testo,"StileTeatro:(%w+)")
	end
	if style~=nil then
		return frame:extensionTag('templatestyles', '', { src = "TemplateStyle/"..style..".css" } );
	else 
		return ""
	end
	end

function p.templateStyle( frame, src )
   
end

return p