Module:ImageGallery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
table.concat(fields, ','), query) | table.concat(fields, ','), query) | ||
local | local wikitext = '==' .. header .. '==\n' | ||
wikitext = wikitext .. '<gallery>\n' | |||
for _, img in ipairs(images) do | for _, img in ipairs(images) do | ||
wikitext = wikitext .. img.file .. '|' .. img.caption .. '\n' | |||
end | end | ||
return | return frame:preprocess(wikitext) | ||
end | end | ||
return p | return p |