//from {T309366}//
**Feature summary**
- The IP Info feature should show up on the DeletedContributions page
- It should only show data if there are deleted contributions that the current user has access to see
**Use case(s)**
- Way to see information for deleted edits, at least for admins (see https://phabricator.wikimedia.org/T309366#7962303)
**Notes**
It may be helpful to see how the infobox is added to Special:Contributions.
* The infobox is added by IPInfo to Special:Contributions [[https://gerrit.wikimedia.org/g/mediawiki/extensions/IPInfo/+/f1b0e4515c8d487ffdc3cbd32fe141295a23a0fd/src/HookHandler/InfoboxHandler.php#15|here]]
* This adds a hook handler for the `SpecialContributionsBeforeMainOutput` hook (see [[https://gerrit.wikimedia.org/g/mediawiki/core/+/5f3b0a60b4314520ee2e2c44c5a45e80d96c4175/includes/specials/SpecialContributions.php#313|SpecialContributons.php]] in core)
* This hook is specific to SpecialContributions so we can't use it for SpecialDeletedContributions
* But previously, IPInfo used a different hook `SpecialPageBeforeExecute`, which is fired for all special pages. Maybe we could use that hook here. Here's how it looked: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/IPInfo/+/644959/10/src/HookHandler/InfoBoxHandler.php
General information:
* Documentation on the hooks system in MediaWiki: https://www.mediawiki.org/wiki/Manual:Hooks