Jump to content

Module:Wikipedia ads/gallery

From Wikipedia, the free encyclopedia

-- This module displays a gallery of all the Wikipedia ads, at full size.

local LIST_MODULE = 'Module:Wikipedia ads/list'
local ADS_MODULE = 'Module:Wikipedia ads'

local p = {}

function p.main()
	local ret = {}
	local list = require(LIST_MODULE)
	local mWikipediaAds = require(ADS_MODULE)
	for i, t in ipairs(list) do
		ret[#ret + 1] = mWikipediaAds._main{ad = t.id, margin = '20px auto'}
	end
	return table.concat(ret)
end

return p