Module:Gallery

local getArgs = require('Module:Arguments').getArgs local p = {} local root

function p.main(frame) local args = getArgs(frame) return p._main(args) end

function p._main(args) local filearg = '' local height = '120' local prependarg = 	local apprendarg =  for key,value in pairs(args) do			local content = args[key] -- Check if arg starts with {{, usually used by EmbedVideo if not args[key]:match "^{{" then content = prependarg .. content .. apprendarg end filearg = filearg .. ' ' .. content .. ' '	end root = mw.html.create('table') root :addClass('gallerytable') :tag('tr') :wikitext( filearg ) return tostring(root) end

return p