开发者

Modify all outbound links created on my MediaWiki's pages?

开发者 https://www.devze.com 2023-02-08 18:42 出处:网络
I\'m a developer hosting a private MediaWiki site. I noticed that when you\'re creating or editing a page, it will automatically change link text into an actual hyperlink (such as http:// linkexample.

I'm a developer hosting a private MediaWiki site. I noticed that when you're creating or editing a page, it will automatically change link text into an actual hyperlink (such as http:// linkexample.com/this/is/an/example/ - if I removed the space,开发者_StackOverflow社区 StackOverflow would have turned that into a link, just like MediaWiki). I would like to change all occurrences of these outbound hyperlinks so that they go to a redirect script hosted on my site for tracking purposes, instead of directly to the outbound link. How can I do this?


Media Wiki Code Docs: http://svn.wikimedia.org/doc/

Developing Extensions: http://www.mediawiki.org/wiki/Manual:Developing_extensions

Hooks: http://www.mediawiki.org/wiki/Manual:Hooks

Hooks - Linker/MakeExternalLinks: http://www.mediawiki.org/wiki/Manual:Hooks/LinkerMakeExternalLink

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号