Modul:Lang: Perbezaan antara semakan

Kandungan dihapus Kandungan ditambah
Tiada ringkasan suntingan
Membatalkan semakan 4327269 oleh SNN95 (Perbincangan)
Teg: Buat asal
Baris 553:
if not is_set (std) and not is_set (tscript) then -- when neither standard nor script specified
table.insert ('Bahasa ' .. tout, language_name); -- write a generic tool tip
if not language_name:find ('Bahasa-bahasa') then -- collective language names (plural 'languages' is part of the name)
table.insert ('Bahasa ', tout) -- skip this text (individual and macro languages only)
Baris 655:
if (0 < #maint_cats) and (0 == namespace) and not is_set (nocat) then -- when there are mainenance categories; article namespace only
for _, cat in ipairs (maint_cats) do
table.insert (maint, table.concat ({'[[KategoriCategory:', cat, ']]'})); -- format and add the categories
end
end
Baris 904:
 
category_name = language_name; -- category names retain IANA parenthetical diambiguators (if any)
language_name = 'Bahasa ' .. language_name:gsub ('%s+%b()', ''); -- remove IANA parenthetical disambiguators or qualifiers from names that have them
 
if args.label then
if 'none' ~= args.label then
table.insert ('Bahasa ' .. out, table.concat ({args.label, ': '})); -- custom label
end
else
if 'no' == args.link then
table.insert ('Bahasa ' .. out, language_name); -- language name without wikilink
else
if language_name:find ('Bahasa-bahasa') then
table.insert ('Bahasa ' .. out, make_wikilink (language_name)); -- collective language name uses simple wikilink
else
table.insert (out, make_wikilink ('bahasa ' .. language_name, language_name)); -- language name with wikilink
end
end