This documentation is transcluded from Module:Gallery/doc. Changes can be proposed in the talk page.
This module is unused.This module is neither invoked by a template nor required/loaded by another module. If this is in error, make sure to add
{{Documentation}}
/{{No documentation}}
to the calling template's or parent's module documentation. Module:Gallery requires
Module:Gallery is a module that implements the {{Gallery}}
template. Please see the template page for usage instructions.
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 = '[[File:'
local apprendarg = '|center|frameless|' .. 'x' .. height .. 'px]]'
for key,value in pairs(args) do
filearg = filearg .. '<td>' .. prependarg .. args[key] .. apprendarg .. '</td>'
end
root = mw.html.create('table')
root
:addClass('gallerytable')
:tag('tr')
:wikitext( filearg )
return tostring(root)
end
return p