Module:High-use: Difference between revisions

per edit request on talk page - highlight transclusions on tool target page
(Don't auto-categorize redirects)
 
(per edit request on talk page - highlight transclusions on tool target page)
Line 89: Line 89:
-- This retrieves the project URL automatically to simplify localiation.
-- This retrieves the project URL automatically to simplify localiation.
local templateCount = ('on [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s pages]'):format(
local templateCount = ('on [https://linkcount.toolforge.org/?project=%s&page=%s#transclusions %s pages]'):format(
mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'),
mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'),
mw.uri.encode(title.fullText), p.num(frame, count))
mw.uri.encode(title.fullText), p.num(frame, count))