5,478
edits
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
local root = mw.html.create() | local root = mw.html.create() | ||
root:wikitext('==' .. header .. '==\n') | root:wikitext('==' .. header .. '==\n') | ||
root:wikitext('<gallery>\n') | |||
for _, img in ipairs(images) do | for _, img in ipairs(images) do | ||
root:wikitext(img.file .. '|' .. img.caption .. '\n') | |||
end | end | ||
return root | return root | ||
end | end | ||
return p | return p |