Module:Section link: Difference between revisions

changing to non-breaking nbsp per lengthy talk discussion with Edokter, SMcCandlish, LLarson, among others about § not wrapping
m>Mr. Stradivarius
m (Protected Module:Section link: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
m>Andy M. Wang
(changing to non-breaking nbsp per lengthy talk discussion with Edokter, SMcCandlish, LLarson, among others about § not wrapping)
Line 40: Line 40:
local linkPage = page or ''
local linkPage = page or ''
local section = sections[1] or 'Notes'
local section = sections[1] or 'Notes'
local display = '§ ' .. section
local display = '§ ' .. section
if isShowingPage then
if isShowingPage then
page = page or title.prefixedText
page = page or title.prefixedText
Line 66: Line 66:


-- Add the intro text.
-- Add the intro text.
local intro = '§§ '
local intro = '§§ '
if isShowingPage then
if isShowingPage then
intro = (page or title.prefixedText) .. ' ' .. intro
intro = (page or title.prefixedText) .. ' ' .. intro
Anonymous user