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

Release status: stable

Implementation Tag
Description Two new parser hooks, <loggedin> and <loggedout> to show different text depending on the users' login state
Author(s) Aaron Wright
David Pean
Jack Phoenix
Latest version 1.5.0 (November 20, 2015; 9 days ago (2015-11-20))
MediaWiki 1.26+
License GNU General Public License 2.0 or later
Example Halopedia main page (displays random avatars for anonymous users and a welcome message for registered users, achieved with the usage of <loggedin> and <loggedout> tags)

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

Check usage and version matrix; code metrics


Open tasks · Report a bug

WikiTextLoggedInOut extension adds two new parser hooks, <loggedin> and <loggedout>. The tags will show different text depending on the users' login state.

Installation[edit | edit source]

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

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing extensions using wfLoadExtension(), since MediaWiki 1.25. If you need to install this extension in earlier versions, instead of wfLoadExtension( 'WikiTextLoggedInOut' );, you need to use:

require_once "$IP/extensions/WikiTextLoggedInOut/WikiTextLoggedInOut.php";

(To run an extension on an earlier release, you may need to download the version of it tagged for that release from Special:ExtensionDistributor.)

Social toolsSocial tools
SocialProfileExtension:SocialProfile OverviewExtension:SocialProfileRoadmapExtension:SocialProfile/RoadmapDeveloper infoExtension:SocialProfile/For developersScreenshotsExtension:SocialProfile/ScreenshotsHistorySocial tools
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)