Content deleted Content added
m should solve infinite loop, still have a bug somewhere... |
m start, link trimming. Hopefully they meet... |
||
Line 111:
local args = getArgs(frame)
local sourceName, start, text, nowiki = args[1], args[2], args.text, args.nowiki
start = mw.text.trim(start)
if type(text) ~= "string" then
Line 126 ⟶ 128:
while link do
if not(start) and link ~= " " then
▲ link = mw.text.trim(link) or link
newLink = getRedirect(link)
if newLink and (newLink ~= link) then
Line 136 ⟶ 137:
link, display = nextLink()
link = mw.text.trim(link) or link
if start and link then
if start == link then
|