imported>Mr. Stradivarius
create a module to find the next ID to use in Module:Wikipedia ads/list
 
(No difference)

Latest revision as of 15:43, 10 November 2014

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