MediaWiki: How to hide certain HTML elements for non-logged-in users?

by JohnDoea   Last Updated June 12, 2019 02:04 AM

In a MediaWiki-based non-communal website there are some HTML elements that should be presented only for logged-in-users (an administration menu or some of its links).

Usually if I want to hide something for a certain group of users like anonymous users I browse into the website when logged-out, and then take a <body> CSS ID or Class like #anonymous-user to create some condition like this:

#anonymous-user .administration-menu {display: none}

I tried to search for a <body> CSS ID or Class that I could utilize to hide things for anonymous users in MediaWiki but found none.

How could I create one myself?

Related Questions

Updated June 12, 2019 07:04 AM

Updated June 30, 2018 21:04 PM

Updated July 19, 2015 13:01 PM

Updated October 23, 2016 09:01 AM

Updated February 18, 2018 13:04 PM