Modulo:Lingue/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
Nessun oggetto della modifica
Moroboshi (discussione | contributi)
fix corsivo
Riga 152:
if language_code then
language_code = lg.alias[language_code] or language_code
local writing = lg.scrittura[language_code]
if writing then
direction = writing[1]
Riga 159:
end
local italic = false
local set_italic = args.corsivo or "n"
if set_italic:lower() == 's' then
italic = true
elseif set_italic:lower() == 'd' and language_code then
if lg.codici[language_code] and not lg.codici[language_code][3] == true then
italic = falsetrue
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)