Extension:RandomFeaturedUser

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
RandomFeaturedUser

Release status:Extension status stable

ImplementationTemplate:Extension#type Parser extension
DescriptionTemplate:Extension#description Adds <randomfeatureduser> parser hook to display a random featured user along with some data
Author(s)Template:Extension#username
Latest versionTemplate:Extension#version 1.3 (2015-08-29; 2 years ago (2015-08-29))
MediaWikiTemplate:Extension#mediawiki 1.25+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ParametersTemplate:Extension#parameters

$wgRandomFeaturedUser

Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

Translate the RandomFeaturedUser extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

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.


Configuration[edit]

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;.
  • ...the amount of points, set $wgRandomFeaturedUser['points'] = false;.
  • ...the blurb, set $wgRandomFeaturedUser['about'] = false;.

Requirements[edit]

  1. SocialProfileExtension:SocialProfile extension

Installation[edit]

  • Download and place the file(s) in a directory called RandomFeaturedUser in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'RandomFeaturedUser' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

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


Social toolsSocial tools
SocialProfileExtension:SocialProfile OverviewExtension:SocialProfileDeveloper infoExtension:SocialProfile/For developersScreenshotsExtension:SocialProfile/ScreenshotsHistorySocial tools#History
Other social extensions Automatic Board WelcomeExtension:Automatic Board WelcomeBlogPageExtension:BlogPageChallengeExtension:ChallengeFanBoxesExtension:FanBoxesMiniInviteExtension:MiniInviteNewUsersListExtension:NewUsersListPictureGameExtension:PictureGamePollNYExtension:PollNYQuizGameExtension:QuizGameRandomFeaturedUserExtension:RandomFeaturedUserRandomGameUnitExtension:RandomGameUnitRandomUsersWithAvatarsExtension:RandomUsersWithAvatarsSiteMetricsExtension:SiteMetricsSiteScoutExtension:SiteScoutSportsTeamsExtension:SportsTeamsUserStatusExtension:UserStatusUserWelcomeExtension:UserWelcome
Other related extensions

(which do not depend on SocialProfile)

AnswersExtension:AnswersAJAXPollExtension:AJAXPollCommentsExtension:CommentsImageRatingExtension:ImageRatingLinkFilterExtension:LinkFilterMediaWikiChatExtension:MediaWikiChatNewSignupPageExtension:NewSignupPageTopListsExtension:TopListsVideoExtension:VideoVoteNYExtension:VoteNYWikiForumExtension:WikiForumWikiTextLoggedInOutExtension:WikiTextLoggedInOut