Sửa đổi Mô đun:Lang
Chú ý: Bạn chưa đăng nhập và địa chỉ IP của bạn sẽ hiển thị công khai khi lưu các sửa đổi.
Bạn có thể tham gia như người biên soạn chuyên nghiệp và lâu dài ở Bách khoa Toàn thư Việt Nam, bằng cách đăng ký và đăng nhập - IP của bạn sẽ không bị công khai và có thêm nhiều lợi ích khác.
Các sửa đổi có thể được lùi lại. Xin hãy kiểm tra phần so sánh bên dưới để xác nhận lại những gì bạn muốn làm, sau đó lưu thay đổi ở dưới để hoàn tất việc lùi lại sửa đổi.
Bản hiện tại | Nội dung bạn nhập | ||
Dòng 532: | Dòng 532: | ||
table.insert (html, table.concat ({style_added, ' title=\"', language})); --start the title text | table.insert (html, table.concat ({style_added, ' title=\"', language})); --start the title text | ||
if language:find ('languages') then | if language:find ('languages') then | ||
− | table.insert (html, ' | + | table.insert (html, ' collective text'); -- for collective languages |
else | else | ||
− | table.insert (html, ' | + | table.insert (html, ' language text'); -- for individual languages |
end | end | ||
table.insert (html, '\">'); -- close the opening html tag | table.insert (html, '\">'); -- close the opening html tag | ||
Dòng 573: | Dòng 573: | ||
if language_name:find ('languages') then | if language_name:find ('languages') then | ||
− | return table.concat ({'[[ | + | return table.concat ({'[[Category:Articles with text from the ', language_name, ' collective]]'}); |
− | -- return table.concat ({'[[ | + | -- return table.concat ({'[[Category:Articles with text from ', language_name, ']]'}); -- proposed version at Wikipedia:Categories_for_discussion/Log/2020_August_18#Category:Articles_with_text_from_the_Afro-Asiatic_languages_collective |
end | end | ||
table.insert (cat, '[[Category:Articles containing '); | table.insert (cat, '[[Category:Articles containing '); | ||
− | if ' | + | if 'en' == code then |
− | table.insert (cat, ' | + | table.insert (cat, 'explicitly cited ' .. language_name); -- falls back to English if regional name not available |
else | else | ||
table.insert (cat, language_name); | table.insert (cat, language_name); | ||
Dòng 631: | Dòng 631: | ||
table.insert (tout, language_name); -- write a generic tool tip | table.insert (tout, language_name); -- write a generic tool tip | ||
if not language_name:find ('languages') then -- collective language names (plural 'languages' is part of the name) | if not language_name:find ('languages') then -- collective language names (plural 'languages' is part of the name) | ||
− | table.insert (tout, ' | + | table.insert (tout, '-language') -- skip this text (individual and macro languages only) |
end | end | ||
− | table.insert (tout, ' | + | table.insert (tout, ' romanization'); -- finish the tool tip; use romanization when neither script nor standard supplied |
elseif is_set (std) and is_set (tscript) then -- when both are specified | elseif is_set (std) and is_set (tscript) then -- when both are specified | ||
if title_table[std] then -- and if standard is legitimate | if title_table[std] then -- and if standard is legitimate | ||
Dòng 665: | Dòng 665: | ||
table.insert (tout, '-language') -- skip this text (individual and macro languages only) | table.insert (tout, '-language') -- skip this text (individual and macro languages only) | ||
end | end | ||
− | table.insert (tout, ' | + | table.insert (tout, ' transliteration'); -- finish the tool tip |
else | else | ||
− | table.insert (tout, ' | + | table.insert (tout, ' transliteration'); -- generic tool tip (can we ever get here?) |
end | end | ||
end | end |