Module:Wikipedia ads/next id

MyWikiBiz, Author Your Legacy — Tuesday December 24, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Wikipedia ads/next id/doc

-- This module finds the next ID to be used in the list of ads.

local LIST_MODULE = 'Module:Wikipedia ads/list'

local p = {}

function p.main()
	local list = require(LIST_MODULE)
	return list[#list].id + 1
end

return p