Summary
Add a new Footer for temporary accounts that can be customized by the communities.
Background
There are existing footers for IP editors and Registered accounts. It would be good to have a dedicated footer for Temp accounts that can have links relevant to temp accounts. These footers are customizable by the communities and show up at the bottom of Special:Contributions. Some examples:
- https://en.wikipedia.org/wiki/Special:Contributions/105.245.122.66
- http://en.wikipedia.org/wiki/Special:Contributions/More_Boring_Guy
Technical notes
In ContributionsSpecialPage.php, update this code block to include a new condition and message for temporary accounts:
# Show the appropriate "footer" message - WHOIS tools, etc. use Wikimedia\IPUtils; if ( $this->isQueryableRange( $target, $this->getConfig() ) ) { $message = 'sp-contributions-footer-anon-range'; } elseif ( IPUtils::isIPAddress( $target ) ) { $message = 'sp-contributions-footer-anon'; } elseif ( $userObj->isAnon() ) { // No message for non-existing users $message = ''; } elseif ( $userObj->isHidden() && !$this->permissionManager->userHasRight( $this->getUser(), 'hideuser' ) ) { // User is registered, but make sure that the viewer can't see them, to avoid // having different behavior for missing and hidden users; see T120883 $message = ''; } else { // Not hidden, or hidden but the viewer can still see it $message = 'sp-contributions-footer'; }
Acceptance criteria
- A new footer for temp accounts exists as MediaWiki:Sp-contributions-footer-temp similar to the footer naming for registered editors and IP editors.
Notes
- Reported by @Johannnes89 (on wiki feedback)