Module: PageGrid

From Travel Strategies
Jump to: navigation, search

Documentation for this module may be created at Module:PageGrid/doc

local p = {}

function p.output(frame)
	local text = "<div style='width: 80%; margin: auto; text-align: center;'>"
	local i = 1
	while frame.args[i] ~= nil do
		titletext = frame:expandTemplate{title = 'Link', args = {frame.args[i]}}
		text = text .. titletext .. "<br/><br/>"
		i = i + 1
	end
	text = text .. "</div>"
	return text
end

return p