5,083
edits
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
table.concat(fields, ','), query) | table.concat(fields, ','), query) | ||
local | local root = mw.html.create() | ||
root:wikitext('==' .. header .. '==') | |||
local gallery = mw.html.create('gallery') | |||
for _, img in ipairs(images) do | for _, img in ipairs(images) do | ||
gallery:wikitext(img.file .. '|' .. img.caption) | |||
end | end | ||
return | root:node(gallery) | ||
return root | |||
end | end | ||
return p | return p |