Module:Smyth: Difference between revisions

Content deleted Content added
m PATH is a string, not a variable
allow subsections to be given in the form "period + digit", to be removed from the path in the URL
Line 32:
n = 1
if find(sectionParameter, "[^%d%s]") then
for number, separator in gmatch(sectionParameter, "(%d* ?%a?%.?%d?)(%p?[^%d]*)") do
if number == "" or number == nil then
sections[n] = ""
Line 65:
break
else
outputlocal sectionPath = output string.. "[" .. Smythgsub(sections[i], "%.%d", "")
output = output .. "[" .. Smyth(sectionPath)
if i == 1 then
output = output .. " " .. sign