Open main menu

Changes

Module:High-use

61 bytes removed, 7 January
remove unneeded return variables (if this breaks anything feel free to revert without discussing with me first)
if count == nil then
if frame.args[1] == "risk" then
return_value = return "a very large number of"
else
return_value = return "many"
end
else
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 = ""
if frame.args[1] == "risk" then
return_value = return "risk"
else
local count = _fetch(frame)
if count and count >= 100000 then return_value = return "risk" end
end
return return_value""
end
if systemMessages then
used_on_text = used_on_text .. systemMessages ..
((count and count > 2000) and (",''' , and " .. templateCount) or ("'''"))
else
used_on_text = used_on_text .. templateCount .. "'''"
Anonymous user