Module:Section link/sandbox: Difference between revisions

Content deleted Content added
fix bug when { or } in section name
oops :-)
Line 10:
page = page or ''
-- MediaWiki doesn't allow these in `page`, so only need to do for `section`
section = string.gsub(retsection, "{", "{")
section = string.gsub(retsection, "}", "}")
return string.format('[[%s#%s|%s]]', page, section, display)
end