Modul:Sering digunakan: Perbedaan antara revisi

20 bita ditambahkan ,  2 tahun yang lalu
tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
 
(4 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 20: Baris 20:
return_value = "a very large number of"
return_value = "a very large number of"
else
else
return_value = "many"
return_value = "banyak"
end
end
else
else
Baris 88: Baris 88:
-- This retrieves the project URL automatically to simplify localiation.
-- This retrieves the project URL automatically to simplify localiation.
local templateCount = ('pada [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s pages]'):format(
local templateCount = ('pada [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s halaman]'):format(
mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'),
mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'),
mw.uri.encode(title.fullText), p.num(frame, count))
mw.uri.encode(title.fullText), p.num(frame, count))
local used_on_text = "'''" .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. 'ini digunakan ';
local used_on_text = "'''" .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. ' ini digunakan ';
if systemMessages then
if systemMessages then
used_on_text = used_on_text .. systemMessages ..
used_on_text = used_on_text .. systemMessages ..
Baris 100: Baris 100:
local sandbox_text =  ("%s's [[%s/sandbox|/sandbox]] ada pada sub halaman [[%s/testcases|/testcases]], atau pada [[%s]] milikmu. "):format(
local sandbox_text =  ("%s's [[%s/sandbox|/sandbox]] pada pada sub halaman [[%s/testcases|/testcases]], atau pada [[%s]] milikmu. "):format(
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
title.fullText, title.fullText,
title.fullText, title.fullText,
Baris 112: Baris 112:
info = info .. "<br />" .. infoArg
info = info .. "<br />" .. infoArg
end
end
sandbox_text = info .. '<br /> To avoid major disruption' ..
sandbox_text = info .. '<br /> Untuk menghindari kesalahan fatal' ..
(count and count >= 100000 and ' and server load' or '') ..
(count and count >= 100000 and ' and server load' or '') ..
', any changes should be tested in the ' .. sandbox_text ..
', any changes should be tested in the ' .. sandbox_text ..
Baris 139: Baris 139:
count = _fetch(frame)
count = _fetch(frame)
end
end
local image = "[[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]"
local image = "[[Berkas:Warning-banyak-digunakan.png|40px|alt=Warning|link=]]"
local type_param = "style"
local type_param = "style"
local epilogue = ''
local epilogue = ''