Module:Random slideshow/sandbox: Difference between revisions

Content deleted Content added
fix removal of file args
pipe to {{!}} should only happen once
Line 65:
local wikitext = mw.ustring.gsub(wikitext, '%]%]%[%[File:', ']]\n[[File:')
local wikitext = mw.ustring.gsub(wikitext, '|thumb', '')
local wikitext = mw.ustring.gsub(wikitext, '|', '{{!}}')
local files = mw.text.split(wikitext, '%c')
for k, v in pairs(files) do