Module:PageLinks and Module:PageLinks/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Tamzin
per phab:T409493 it does not appear this is going to be fixed, as the previous behavior is considered to have been itself a bug
 
imported>SWinxy
Simplify link generation invocations
 
Line 99: Line 99:
local urlargs = '?start=' .. startDate .. '&end=' .. endDate .. '&project=' .. project .. '&pages=' .. tostring(url)
local urlargs = '?start=' .. startDate .. '&end=' .. endDate .. '&project=' .. project .. '&pages=' .. tostring(url)
return '[https://pageviews.toolforge.org/' .. urlargs .. ' stats]'
if #urlargs > 255 then -- Extra chars can tip it over the max length for an IW link.
return '[https://pageviews.toolforge.org/?' .. urlargs .. ' stats]'
end
return '[[:toolforge:pageviews/' .. urlargs .. '|stats]]'
end
end