Module:Hatnote: Difference between revisions
Jump to navigation
Jump to search
Non-breaking space after "§" in _formatLink() to match Module:Section link; might not be a bad idea to require() that module but this is a good start
>Nihiltres (Updated from sandbox: tweaked _formatLink() to overwrite, rather than stack, manual piping with "display"-based piping) |
>Nihiltres (Non-breaking space after "§" in _formatLink() to match Module:Section link; might not be a bad idea to require() that module but this is a good start) |
||
Line 162: | Line 162: | ||
local page, section = link:match('^(.-)#(.*)$') | local page, section = link:match('^(.-)#(.*)$') | ||
if page then | if page then | ||
display = page .. ' § ' .. section | display = page .. ' § ' .. section | ||
end | end | ||
end | end |