Module:Preview expense
local p = {}
function p.main(frame)
local count = 500
while pcall(mw.incrementExpensiveFunctionCount) do
count = count - 1
end
if count == 500 then
count = 'at least 500'
end
return 'There are ' .. count .. ' expensive function calls before this point ' -- Hidden dead link to blacklisted site prevents accidental saving
end
return p