Wikimedia

Replace Linker::link() usage with LinkRenderer in a MediaWiki extension

MediaWiki provides a Linker class, which was used to generate links in MediaWiki for a long time. The more powerful LinkRenderer service replaced some of the Linker functions, which now are deprecated. To make it possible to remove the Linker::link() function from the Linker class, it's needed to replace all remaining usages of Linker::link().

Your task is to replace all usages of Linker::link() in one MediaWiki extension, which you can select by yourself from the remaining extensions (see the Phabricator link for a list what needs to be converted and note that it might get outdated the more GCI students have worked on fixing one extension).

Example conversion (simple): https://gerrit.wikimedia.org/r/#/c/303075/

Documentation: https://www.mediawiki.org/wiki/Manual:LinkRenderer

If you've questions, feel free to ask in the phabricator task, contact Legoktm (legoktm in #wikimedia-dev) or me (FlorianSW in #wikimedia-dev).

Task tags

  • object-oriented
  • php
  • class
  • deprecation

Students who completed this task

Andrew Wu, Justin Du, jo12bar, Lukas A, Filip, Yurii Shnitkovskyi, Subin Siby, David Sn

Task type

  • code Code
close

2016