Module:Section link/sandbox: Difference between revisions

Content deleted Content added
simplify anchor detection
p, not a. Ignore blank or empty display=
Line 50:
if isShowingPage then
page = page or title.prefixedText
if displaytitle and displaytitle ~= '' then
if normalizeTitle(displaytitle) == normalizeTitle(page) then
display = displaytitle .. ' ' .. display
Line 127:
if page then
local p, s = link:match('^(.-)#(.*)$')
if ap then
page = p
sections[1] = s