Extension:RandomFeaturedUser

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
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
Parameters

$wgRandomFeaturedUser

Hooks used
ParserFirstCallInit

Check usage (experimental)
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;.

[edit] Requirements

  1. SocialProfile extension

[edit] Installation

  1. Download the extension files
  2. Create the three required database tables
  3. Add require_once("$IP/extensions/RandomFeaturedUser/RandomFeaturedUser.php"); into the wiki's LocalSettings.php
  4. Installation can now be verified through the wiki's Special:Version

[edit] Usage

Type <randomfeatureduser period="weekly"/> or <randomfeatureduser period="monthly"/> on a page.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox