Module:Section link/sandbox: Difference between revisions

Content deleted Content added
oops :-)
just to be safe
Line 10:
page = page or ''
-- MediaWiki doesn't allow these in `page`, so only need to do for `section`
if type(section) == 'string.gsub(section,' "{", "{")then
section = string.gsub(section, "}{", "&#x7Dx7B;")
section = string.gsub(section, "}", "}")
end
return string.format('[[%s#%s|%s]]', page, section, display)
end