کاربر ناشناس
خنثیسازی ویرایش 33806798 از Hooman Mallahzadeh (بحث)
جز (۱ نسخه واردشده) |
(خنثیسازی ویرایش 33806798 از Hooman Mallahzadeh (بحث)) |
||
خط ۵۴۳: | خط ۵۴۳: | ||
table.insert (html, table.concat ({style_added, '>'})); -- close the style attribute and close opening html tag | table.insert (html, table.concat ({style_added, '>'})); -- close the style attribute and close opening html tag | ||
end | end | ||
table.insert (html, "<bdi>"); | |||
table.insert (html, text); -- insert the text | table.insert (html, text); -- insert the text | ||
table.insert (html, "</bdi>"); | |||
table.insert (html, table.concat ({'</', tag, '>'})); -- close the <i>, <span>, or <div> html tag | table.insert (html, table.concat ({'</', tag, '>'})); -- close the <i>, <span>, or <div> html tag | ||
خط ۱٬۱۶۴: | خط ۱٬۱۶۷: | ||
if is_set (args.translit) and not unicode.is_Latin (args.text) then -- transliteration (not supported in {{lang}}); not supported when args.text is wholly latn text (this is an imperfect test) | if is_set (args.translit) and not unicode.is_Latin (args.text) then -- transliteration (not supported in {{lang}}); not supported when args.text is wholly latn text (this is an imperfect test) | ||
table.insert (out, ' | table.insert (out, '، '); -- comma to separate text from translit | ||
if 'none' ~= args.label then | if 'none' ~= args.label then | ||
table.insert (out, '<small>'); | table.insert (out, '<small>'); | ||
خط ۱٬۱۷۲: | خط ۱٬۱۷۵: | ||
translit_script_name = language_name; -- fall back on language name | translit_script_name = language_name; -- fall back on language name | ||
end | end | ||
translit_title = mw.title.makeTitle (0, table.concat ({' | translit_title = mw.title.makeTitle (0, table.concat ({'آوانگاری ', translit_script_name})); -- make a title object | ||
if translit_title.exists and ('no' ~= args.link) then | if translit_title.exists and ('no' ~= args.link) then | ||
table.insert (out, make_wikilink (' | table.insert (out, make_wikilink ('آوانگاری ' .. translit_script_name or language_name, 'آوانگاری') .. ':'); -- make a wikilink if there is an article to link to | ||
else | else | ||
table.insert (out, ' | table.insert (out, 'آوانگاری:'); -- else plain text | ||
end | end | ||
table.insert (out, ' </small>'); -- close the small tag | table.insert (out, ' </small>'); -- close the small tag | ||
خط ۱٬۱۸۵: | خط ۱٬۱۸۸: | ||
table.insert (out, translit); | table.insert (out, translit); | ||
else | else | ||
return make_error_msg (table.concat ({'invalid translit-std: \'', args['translit-std'] or '[ | return make_error_msg (table.concat ({'invalid translit-std: \'', args['translit-std'] or '[ناموجود]'}), args, template); | ||
end | end | ||
end | end | ||
خط ۱٬۱۹۴: | خط ۱٬۱۹۷: | ||
table.insert (out, '<small>'); | table.insert (out, '<small>'); | ||
if 'no' == args.link then | if 'no' == args.link then | ||
table.insert (out, '<abbr title=" | table.insert (out, '<abbr title="ترجمه تحتاللفظی">ت.</abbr>'); | ||
else | else | ||
table.insert (out, make_wikilink (' | table.insert (out, make_wikilink ('ترجمه تحتاللفظی', 'ت.')); | ||
end | end | ||
table.insert (out, " </small>"); | table.insert (out, " </small>"); |