Modul:Lang: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Taylor 49 (bicara | kontrib)
-require('Module:No globals')
 
(9 revisi perantara oleh 3 pengguna tidak ditampilkan)
Baris 1:
--[=[
 
Lua support for the {{lang}}, {{lang-xx}}, and {{transl}} templates and replacement of various supporting templates.
 
]=]
 
require('Module:No globals');
 
local getArgs = require ('Module:Arguments').getArgs;
Baris 611 ⟶ 607:
 
if mw.ustring.find (language_name, 'languages', 1, true) then
return table.concat ({'[[Category:ArticlesArtikel withberisi textteks indalam bahasa ', language_name, ']]'});
end
table.insert (cat, '[[Category:ArticlesArtikel containingmengandung teks ');
 
if this_wiki_lang_tag == code then
table.insert (cat, 'explicitlyyang citeddikutip dalam bahasa ' .. language_name); -- unique category name for the local language
else
table.insert (cat, language_name);
end
table.insert (cat, '-language text]]');
 
return table.concat (cat);
Baris 1.213 ⟶ 1.209:
translit_title = mw.title.makeTitle (0, table.concat ({'Romanization of ', translit_script_name})); -- make a title object
if translit_title.exists and ('no' ~= args.link) then
table.insert (out, make_wikilink ('Romanization of ' .. translit_script_name or language_name, 'romanizedtranslit') .. ':'); -- make a wikilink if there is an article to link to
else
table.insert (out, 'romanizedtranslit:'); -- else plain text
end
table.insert (out, '&nbsp;</small>'); -- close the small tag