Module:Section link/sandbox: Difference between revisions

Content deleted Content added
Create sandbox version of Module:Section link
 
Prevent inelegant post‑§ linebreaks per discussion
Line 40:
local linkPage = page or ''
local section = sections[1] or 'Notes'
local display = '<span style="white-space:nowrap;">§&thinsp;</span>' .. section
if isShowingPage then
page = page or title.prefixedText
Line 66:
 
-- Add the intro text.
local intro = '<span style="white-space:nowrap;">§§&thinsp;</span>'
if isShowingPage then
intro = (page or title.prefixedText) .. ' ' .. intro