Modulo:Lingue: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
fix
Moroboshi (discussione | contributi)
fix corsivo per codice lingua errato
Riga 167:
end
end
local italic = false
local set_italic = args.corsivo or "n"
if set_italic:lower() =~= 's'"n" then
local italic = truefalse
elseif if set_italic:lower() == 'ds' and language_code then
if lg.codici[language_code] and not lg.codici[language_code][3] then
italic = true
ifelseif lg.codici[language_code] and not lg.codici[language_code][3] then
italic = not lg.codici[language_code][3]
else
local italic = falsetrue
end
if italic then
if txt[1]=="'" then txt = "<nowiki />" .. txt end
if txt[#txt] =="'" then txt = txt .. "<nowiwiki />" end
txt = mw.ustring.format("''%s''", txt)
end
end
if italic then
if txt[1]=="'" then txt = "<nowiki />" .. txt end
if txt[#txt] =="'" then txt = txt .. "<nowiwiki />" end
txt = mw.ustring.format("''%s''", txt)
end
local span = mw.html.create('span')