Mô đun:Preview expense

Bách khoa toàn thư mở Wikipedia
Tài liệu mô đun[tạo]
local p = {}

function p.main(frame)
	local count = 500
	while pcall(mw.incrementExpensiveFunctionCount) do
		count = count - 1
	end
	if count == 500 then
		count = 'ít nhất 500'
	end
	return '<span style="color:yellow;background-color:red">Có ' .. count .. ' chức năng cuộc gọi đắt tiền trước thời điểm này</span><span style="display:none">http://www.encyclopediadramatica.com</span>' -- Hidden dead link to blacklisted site prevents accidental saving
end

return p