[Mediawiki-l] Create an internal link from a tag extension

Rob Church robchur at gmail.com
Wed Aug 15 22:47:29 UTC 2007


On 15/08/07, Garth Patil <garthpatil at gmail.com> wrote:
> I'm creating a mediawiki tag extension that takes a list of wiki links
> and puts them in a table format. If I have the title of the wikipage,
> is there a convenience provided by the Linker or Skin that will allow
> me to get the correctly rendered link?

Linker::makeLinkObj(); use it from the skin, passing a Title object.

For performance reasons, it's a good idea to execute a LinkBatch
before calling this en masse, or otherwise updating the LinkCache
(e.g. via LinkCache::addGoodLinkObj()/LinkCache::addBadLinkObj()).


Rob Church



More information about the MediaWiki-l mailing list