Open main menu

Changes

Module:High-use

297 bytes added, 14:51, 29 September 2020
m
Reverted edits by Izno (talk) to last version by Trialpears
end
else
-- Use 2 sigfigs significant figures for smaller numbers and 3 for larger ones
local sigfig = 2
if count >= 100000 then
local f = math.floor(math.log10(count)) - sigfig + 1
-- Round and insert "apprxomimatelyapproximately" or "+" when appropriate
if (frame.args[2] == "yes") or (mw.ustring.sub(frame.args[1],-1) == "+") then
-- Round down
return return_value
end
-- Actions if there is a large (greater than or equal to 100,000) transclusion count
function p.risk(frame)
local return_value = ""
function p.text(frame, count)
local bot_text = "\n\n----\nTransclusion count updated automatically ([[Template:High-use/doc#Technical details|see documentation]])."
if frame.args["nobot"] == true then
bot_text = ""
end
if count == nil then count = _fetch(frame) end
local return_value = {}
end
local templatecount = string.format("https://toolstemplatecount.wmflabstoolforge.org/templatecount/index.php?lang=en&namespace=%s&name=%s",mw.title.getCurrentTitle().namespace,mw.uri.encode(title.text))
local used_on_text = string.format("'''This %s is used on [%s %s pages]'''",
end
return table.concat({used_on_text, sandbox_text, discussion_text, " before implementing them.", bot_text})
end
Anonymous user