Module:Section link: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
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))) |
(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 = '§& |
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 |