Modul:High-use
Qiyofa
Bu modul uchun Modul:High-use/doc nomli hujjat sahifasini yaratishingiz mumkin
local p = {}
local _fetch = require('Module:Transclusion_count').fetch
local yesno = require('Module:Yesno')
function p.num(frame, count)
if count == nil then
if yesno(frame.args['fetch']) == false then
if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end
else
count = _fetch(frame)
end
end
local return_value = ""
if count == nil then
if frame.args[1] == "risk" then
return_value = "a very large number of"
else
return_value = "koʻplab"
end
else
local sigfig = 2
if count >= 100000 then
sigfig = 3
end
local f = math.floor(math.log10(count)) - sigfig + 1
if (frame.args[2