Skip to content

Extensions and gadgets

Extension enhancements

Citizen works out of the box, but these extensions unlock additional features when installed.

PageImages

Bundled with MediaWiki. Adds thumbnails to command palette results.

TextExtracts

Bundled with MediaWiki. Adds descriptions to command palette results.

LocalSettings.php
php
$wgExtractsExtendRestSearch = true;

ShortDescription

Displays a short description under the page title and in command palette results. Takes priority over TextExtracts when set.

MobileFrontend

Not recommended

Citizen is a fully responsive skin, so MobileFrontend's separate mobile experience is redundant and may conflict with Citizen's layout.

If you still need MobileFrontend, set the default mobile skin to Citizen:

LocalSettings.php
php
$wgDefaultMobileSkin = 'citizen';

Shows related pages in the command palette when no query is entered. To also show them at the bottom of pages:

LocalSettings.php
php
$wgRelatedArticlesFooterAllowedSkins[] = 'citizen';

Semantic MediaWiki

Adds an Ask query mode to the command palette. Type /smw: to build structured queries with autocomplete for properties, categories, and values. Works automatically when installed.

TemplateStylesExtender

Only needed if you use TemplateStyles. Enables CSS variables in TemplateStyles, including Citizen's design tokens.

UrlShortener

Adds a "Copy short URL" button to the share panel for one-click clipboard copy, plus a QR code view when $wgUrlShortenerEnableQrCode is enabled. See Share for details.

Gadget enhancements

Some on-wiki gadgets pair particularly well with Citizen. Unlike extensions, gadgets are installed wiki-side (see Extension:Gadgets) and enabled per-user from Special:Preferences.

Instant Diffs

Opens diffs and revisions in a dialog instead of navigating away. When installed, the command palette's revision history mode (/hist: or !) opens previews above the still-mounted palette so you can dismiss the dialog and pick another revision without losing your place.

TIP

Press / inside the dialog to step through adjacent revisions, or Esc to close it. Without the gadget, palette activation navigates to the revision page as usual.

Extension styles

TIP

Citizen provides custom styles for many popular extensions via skinStyles. These apply automatically when the extension is installed.

Supported extensions