Extension:RandomUsersWithAvatars

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Shows the avatars of randomly chosen wiki users who have uploaded an avatar.
Author(s)Template:Extension#username David Pean
Jack Phoenix
Latest versionTemplate:Extension#version 1.4.0 (2015-08-29)
MediaWikiTemplate:Extension#mediawiki 1.28+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example Halopedia main page (while not logged in)
Development/Testing wiki on Wikimedia Labs

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

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

RandomUsersWithAvatars parser hook extension displays randomly chosen avatars of your wiki's users on the page wherever you place the tag. For example, <randomuserswithavatars count=15 row=5 /> would display a total of 15 avatars, 5 per row. As of Gerrit change 329200, another argument can be passed called `size`, which allows any of the values: s, m, ml, and l.

It should also be noted that if only one user has uploaded an avatar and no other user has done so, using <randomuserswithavatars> causes a PHP warning about invalid arguments for foreach in the main extension file and no avatars are displayed. For example, if 2 or more users have uploaded an avatar, then this tag will work properly.

Requirements[edit]

Installation[edit]

  • Download and place the file(s) in a directory called RandomUsersWithAvatars in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'RandomUsersWithAvatars' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


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