Anonymous user
Module:Redirect: Difference between revisions
handle apostrophes and other characters escaped by {{TALKPAGENAME}}, per protected edit request by User:Jackmcbarn
Enwikipedia>Mr. Stradivarius (extend the pattern to match a colon after the "REDIRECT" text) |
Enwikipedia>Mr. Stradivarius (handle apostrophes and other characters escaped by {{TALKPAGENAME}}, per protected edit request by User:Jackmcbarn) |
||
Line 41:
-- in case we are over the expensive function count limit.
local noError, rpage = pcall(mw.title.new, rname)
if not noError
elseif not rpage.isRedirect then
-- the page is not a redirect, so use the normalized name of the page we
-- were given.
return mw.ustring.format(bracket, rpage.prefixedText)
end
|