Module:Random slideshow/sandbox: Difference between revisions

Content deleted Content added
Fix the fix (bracket stuff)
Fix pipe removal logic to avoid incorrectly placing the temporary wikilink pipe break between 2 different wikilinks in rare edgecases (E.g. Baseball, File:JackieRobinson1945.jpg)
Line 132:
-- disable pipes in wikilinks
file = file:gsub(
"%[%[(.[^%]]-)|(.-)]]",
"[[%1__PIPE__%2]]")
-- move any alt parameter to the end to avoid putting the switcher in too early and causing a linter error