Module:Random slideshow/sandbox: Difference between revisions

Content deleted Content added
remove thumbnail keyword
remove spaces prior to captions (which cause pre-formatted text)
Line 78:
file = mw.ustring.gsub(file, '|%s*upright%s*([|%]])', '%1')
file = mw.ustring.gsub(file, '|%s*upright%s*=.-([|%]])', '%1')
-- remove spaces prior to captions (which cause pre-formatted text)
file = mw.ustring.gsub(file, '|%s*', '|')
-- expand templates
file = mw.ustring.gsub(file, '{%b{}}', expand)