ICT:Protection aged user interface
Appearance
System Configuration: Aged User Interface & Security
This document records the specific modifications made to the MediaWiki 1.45 (AlmaLinux 10.1) environment to reduce clutter for users >70 and protect configuration data.
1. Namespace Definitions
- Main (ns-0): Public-facing historical data. Locked for editing by standard users.
- Research (ns-3000): Active workspace for the 5 club members.
- ICT (ns-XXXX): Developer documentation (this area).
2. Security (LocalSettings.php)
To prevent "curious" members from accidentally damaging the configuration, the following logic is applied to restrict permissions:
# 1. Protect the Main namespace from accidental edits by users
$wgNamespaceProtection[NS_MAIN] = ['protect'];
# 2. Ensure only Sysops can touch the Interface/CSS
$wgNamespaceProtection[NS_MEDIAWIKI] = ['editinterface'];
# 3. Restrict sensitive Special Pages
$wgGroupPermissions['user']['userrights'] = false;
$wgGroupPermissions['user']['siteadmin'] = false;
3. Interface Management (CSS)
The interface uses "Context-Aware CSS" to toggle tools based on the user's location.
Global Clutter Reduction (MediaWiki:Common.css)
Hides sidebars and toolbars for everyone (including the public) in the Main namespace.
.ns-0 .vector-page-toolbar,
.ns-0 .vector-column-end,
.ns-0 .vector-main-menu-container {
display: none !important;
}
Club Member Experience (MediaWiki:Group-user.css)
Restores tools only when users are in the Research (3000) or Talk (3001) namespaces.
/* Restore tools for namespaces 3000 and 3001 */
.ns-3000 .vector-page-toolbar, .ns-3001 .vector-page-toolbar,
.ns-3000 .vector-column-end, .ns-3001 .vector-column-end,
.ns-3000 .vector-main-menu-container, .ns-3001 .vector-main-menu-container {
display: block !important;
}
Developer/Sysop Master Key (MediaWiki:Group-sysop.css)
Forces visibility of all tools everywhere using high-specificity selectors.
html body .vector-page-toolbar,
html body .vector-column-end,
html body .vector-main-menu-container {
display: block !important;
}
4. Maintenance Notes
- Always perform a Hard Refresh (Ctrl+F5) after editing CSS.
- If a new namespace is added, update the `.ns-XXXX` selectors in Group-user.css to allow editing there.