Installation
Ready to give your wiki a fresh look? Follow these steps to install Citizen.Before you begin, ensure your MediaWiki installation meets the requirements.
Installation Methods
Choose the method that best fits your workflow:- Manual Installation
- Composer
- Git
The manual method is recommended for most users and production environments.
Download the skin
Download the latest release from GitHub.
Extract to skins directory
Extract the contents into a directory called Your directory structure should look like this:
Citizen in your MediaWiki skins/ folder:Activation
Once installed, you’ll need to activate Citizen as your wiki’s default skin.Set as Default Skin
To make Citizen the default for all users, add this to yourLocalSettings.php:
LocalSettings.php
The skin name must be lowercase in
$wgDefaultSkin, even though the directory is capitalized.Verify Activation
After savingLocalSettings.php, your wiki should now use the Citizen skin. You can verify this by:
- Visiting your wiki’s homepage
- Checking that the Citizen interface appears
- Confirming in
Special:Versionthat Citizen is listed as the default skin
Configuration
Citizen works out of the box without additional configuration, but you can customize it to match your needs.Basic Customization
Here’s a minimal configuration example:LocalSettings.php
Header Position
Customize where the header appears on desktop:LocalSettings.php
Progressive Web App
Enable PWA features for installable wiki apps:LocalSettings.php
For a complete list of configuration options, see the Configuration Guide.
Recommended Extensions
These extensions enhance Citizen’s features (all are optional):PageImages
Adds images to search suggestion results (bundled with MediaWiki)
TextExtracts
Adds descriptions to search suggestions (bundled with MediaWiki)
ShortDescription
Adds short descriptions under page titles
TemplateStylesExtender
Allows CSS variables in TemplateStyles, including Citizen’s design tokens
Installing Extensions
LocalSettings.php
Troubleshooting
Skin doesn't appear after installation
Skin doesn't appear after installation
- Verify
wfLoadSkin( 'Citizen' );is inLocalSettings.php - Check that the
Citizendirectory exists inskins/ - Ensure
skin.jsonis present inskins/Citizen/ - Clear your browser cache and MediaWiki cache
- Check file permissions (web server must be able to read the files)
Styles are broken or missing
Styles are broken or missing
- Check browser console for 404 errors
- Verify
$wgResourceBasePathis set correctly inLocalSettings.php - Clear MediaWiki’s resource cache:
php maintenance/rebuildLocalisationCache.php - Try accessing your wiki in an incognito/private window
Extensions don't have Citizen styling
Extensions don't have Citizen styling
Citizen includes skin styles for 70+ extensions that are automatically loaded. If an extension isn’t styled:
- Verify the extension is properly installed and loaded
- Check if the extension is supported
- The extension skin styles are defined in
skin.jsonunderResourceModuleSkinStyles - Consider contributing skin styles for unsupported extensions
Command palette doesn't work
Command palette doesn't work
- Verify
$wgCitizenEnableCommandPalette = true;inLocalSettings.php - Check browser console for JavaScript errors
- Ensure MediaWiki 1.43.0+ is installed (required for Codex components)
- Try disabling other skins/extensions that might conflict
Updating
Keep Citizen up to date to get the latest features and fixes:- Manual Updates
- Composer Updates
- Git Updates
- Download the latest release
- Back up your current
skins/Citizen/directory - Extract and replace with the new version
- Clear MediaWiki cache:
php maintenance/update.php
Next Steps
Now that Citizen is installed, explore these resources:Configuration
Customize colors, layout, and features
Extension Support
Learn about styled extensions
Customization
Theming and personalization options
Contributing
Help improve Citizen