Extension:RandomFeaturedUser
|
RandomFeaturedUser Release status: stable |
|||
|---|---|---|---|
| Implementation | Parser extension | ||
| Description | Adds <randomfeatureduser> parser hook to display a random featured user along with some data | ||
| Author(s) | Aaron Wright David Pean Jack Phoenix |
||
| Last version | 1.1 | ||
| MediaWiki | 1.16+ | ||
| License | GNU General Public License 2.0 or later | ||
| Download | |||
|
|||
|
|||
| Check usage and version matrix; stats | |||
| Bugs: list open list all report | |||
RandomFeaturedUser is an extension that adds <randomfeatureduser> parser hook to display a random featured user along with some data. To use it, type <randomfeatureduser period="weekly"/> or <randomfeatureduser period="monthly"/> on a page.
This extension requires the SocialProfile extension. You will need to set either $wgUserStatsTrackWeekly or $wgUserStatsTrackMonthly or both to true.
You can control what is displayed as the output of the tag. By default, the random featured user's avatar, amount of points and a blurb is displayed. To not display the avatar, set $wgRandomFeaturedUser['avatar'] = false;. To not display the amount of points, set $wgRandomFeaturedUser['points'] = false; and finally to not display the blurb, set $wgRandomFeaturedUser['about'] = false;.
Requirements[edit]
- SocialProfile extension
Installation[edit]
- Download the extension files
- Create the three required database tables
- Add require_once("$IP/extensions/RandomFeaturedUser/RandomFeaturedUser.php"); into the wiki's LocalSettings.php
- Installation can now be verified through the wiki's Special:Version
Usage[edit]
Type <randomfeatureduser period="weekly"/> or <randomfeatureduser period="monthly"/> on a page.