JasonHK留言 | 贡献
导入1个版本
无编辑摘要
第634行: 第634行:
if is_set (code) then -- when a language code is provided (always with {{lang-xx}} templates, not always with {{transl}})
if is_set (code) then -- when a language code is provided (always with {{lang-xx}} templates, not always with {{transl}})
if not style then -- nil for the default italic style
if not style then -- nil for the default italic style
table.insert (tout, "<i lang=\""); -- so use <i> tag
table.insert (tout, "<span lang=\""); -- so use <i> tag
else
else
table.insert (tout, table.concat ({'<span style=\"font-style: ', style, '\" lang=\"'})); -- non-standard style, construct a span tag for it
table.insert (tout, table.concat ({'<span style=\"font-style: ', style, '\" lang=\"'})); -- non-standard style, construct a span tag for it
第694行: 第694行:
table.insert (tout, translit);
table.insert (tout, translit);
if is_set (code) and not style then -- when a language code is provided (always with {{lang-xx}} templates, not always with {{transl}})
if is_set (code) and not style then -- when a language code is provided (always with {{lang-xx}} templates, not always with {{transl}})
table.insert (tout, "</i>"); -- close the italic tag
table.insert (tout, "</span>"); -- close the italic tag
else
else
table.insert (tout, "</span>"); -- no language code so close the span tag
table.insert (tout, "</span>"); -- no language code so close the span tag