Jump to content

User:Lenore/autolink

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Lenore (talk | contribs) at 08:21, 23 May 2010 (Add this tool). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Credits

Thanks to User:Omegatron, who developed the initial code.

How it works

This tool parse external links and template code in history pages (Recent Changes, Watchlist, Related changes and Contributions too), making them into colorful links: for example, if you write code like

  • [http://en.wikipedia.org Wikipedia]
  • [http://en.wikipedia.org] or more simply http://en.wikipedia.org
  • {{Val}}

in an edit summary, it will show in these pages in this way

in other pages, in particular in code sections and diff, parse external links, wikilinks and template code making them into links (not colorful).

This tool doesn't work on preview mode.

Add this tool

To use autolink, add these lines

// [[User:Lenore/autolink]]
importScript('User:Lenore/autolink.js');

to your monobook.js. If you use wikEd, add a new line like this

// [[User:Lenore/autolink]]
var autolinkParseLink = false;
importScript('User:Lenore/autolink.js');

in this way, links in diffs will be parsed by wikEd and not by this tool.

Bug and suggestions

Report bugs and suggestions here, thanks.