Module:Lang:修订间差异
per talk |
小 导入1个版本 |
||
| (未显示2个用户的2个中间版本) | |||
| 第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, "< | 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, "</ | 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 | ||