Anonymous

Module:Sandbox/FalterTest: Difference between revisions

From Melvor Idle
Trying some attempts to return links with # in them
(Updated a bunch of stuff for v0.21)
(Trying some attempts to return links with # in them)
Line 1,086: Line 1,086:
   table.insert(tableParts, '\r\n|}')
   table.insert(tableParts, '\r\n|}')
   return table.concat(tableParts)
   return table.concat(tableParts)
end
function p.TestHashtagLink(frame)
local echoText = frame.args ~= nil and frame.args[1] or frame
local resultParts = {}
table.insert(resultParts, "Echo: "..echoText)
table.insert(resultParts, "Link test 1: [[Magic#Spells|Magic]]")
table.insert(resultParts, "Link test 2: [[Magic#Spells|Magic]]")
table.insert(resultParts, "Link test 3: [[Magic%23Spells|Magic]]")
return table.concat(resultParts, "<br/>\r\n")
end
end


return p
return p