Modulo:Qotd: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m test
fix per segnalazione
 
Riga 26:
function p.citazione(frame)
local args = frame:getParent().args
local pre = ''
local cpl = (args.capolettera or args[1] or '')
local cit = (args.citazione or args[2] or '')
if cpl=='' and cit~='' then
pre = mw.ustring.match(cit,'^(%[%[.-%|)')
if pre~=nil then
cit = mw.ustring.sub(cit,mw.ustring.len(pre) + 1)
else
pre = ''
end
local s1, s2 = mw.ustring.match(cit,'^([^%w ]*%w)(.+)$')
if s1~=nil and s2~=nil then
Line 42 ⟶ 49:
res = res..'font-family:'..args.stilecapolettera..';'
end
res = pre..res..'">'..cpl..'</span>'..cit
return res
end