Modul:Lang: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
perbarui dari en.wiki |
-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.
]=]
local getArgs = require ('Module:Arguments').getArgs;
Baris 611 ⟶ 607:
if mw.ustring.find (language_name, 'languages', 1, true) then
return table.concat ({'[[Category:
end
table.insert (cat, '[[Category:
if this_wiki_lang_tag == code then
table.insert (cat, '
else
table.insert (cat, language_name);
end
table.insert (cat, '
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 (
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, '
else
table.insert (out, '
end
table.insert (out, ' </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 (
end
end
|