Modulo:LeggiTemplatestyle

'A Wikisource.

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

local p={}
function p.testo(frame)
	local base = mw.title.getCurrentTitle()
	-- local rootText=string.match(base.rootText,"(.+)/%d+")
	local indice=mw.title.new("Ennece:"..base.rootText)
	return indice:getContent()
	end
	
function p.leggiStile(frame)
	local testo=p.testo(frame)
	local style=string.match(testo,"CSS=(%w+)")
	if style~=nil then
		return frame:extensionTag('templatestyles', '', { src = "Templatestyle/"..style..".css" } );
	else 
		return ""
	end
	end

function p.templateStyle( frame, src )
   
end

return p