Modul:Lang: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
perbarui dari en.wiki
Taylor 49 (bicara | kontrib)
-require('Module:No globals')
 
(11 revisi perantara oleh 4 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.188 ⟶ 1.184:
table.insert (out, make_wikilink (lang_data.article_name[code], language_name)); -- language name with wikilink from override data
else
table.insert (out, make_wikilink (language_name'Bahasa ' .. 'language_name language', language_name)); -- language name with wikilink
end
end
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
Baris 1.410 ⟶ 1.406:
language_name = make_wikilink (lang_data.article_name[code], label or language_name); -- language name with wikilink from override data
else
language_name = make_wikilink (language_name'Bahasa ' .. ' language'language_name, label or language_name); -- language name with wikilink
end
end