Slash Commands

Modern productivity for MediaWiki's visual editor

MediaWiki text editor with Slash Commands UI activated and Big formatting selected

On this page

External links

Slash Commands for VisualEditor

Improve editing productivity and speed by using slash commands.

Slash commands offer a significant boost in productivity, allowing editors to perform tasks quickly without having to rely heavily on the mouse. Whether it's formatting text, creating tables, or adding images, the power of slash commands lies in the ability to expedite the editing process.

By eliminating the need to search through menus or remember complex syntax, users can now focus more on the content itself, resulting in a smoother and more enjoyable editing experience.

Usage Documentation

When editing a page using Visual Editor, type / to bring up a list of commands. As you start typing the name of a command the list will be filtered to show only matching commands:

MediaWiki text editor with Slash Commands UI activated and the default commands listed

To select the highlighted command, simply press . If the command is not highlighted at the top, then you can continue typing more of the command's name. Alternatively, use the keys to select one of the other commands and then press .

Gif showing how to insert a table via Slash Commands

Installation

Requirements

  • MediaWiki 1.39 or later

Load and enable

Enable the extension by adding the following to your LocalSettings.php:

wfLoadExtension( 'SlashCommands' );

You can verify the installation by checking your wiki's Special:Version page.

More MediaWiki Extensions

View all our extensions

Professional MediaWiki Services

MediaWiki services by the authors of Slash Commands

Software Development icon
Software Development

Get superior results from the best MediaWiki developers with a proven track record of creating MediaWiki extensions & integrations.

Theme Development icon
Theme Development

Make your wiki look great! Use a time-tested responsive MediaWiki theme, or have us create a custom MediaWiki skin for you.

MediaWiki Hosting icon
MediaWiki Hosting

Let us take care of your wiki. We are MediaWiki hosting experts and provide cloud hosting, dedicated hosting, and on-premise hosting.

MediaWiki Consulting icon
MediaWiki Consulting

Bring your wiki to the next level by leveraging our MediaWiki expertise. From strategic planning to wikitext, we have you covered.

MediaWiki Migration icon
MediaWiki Migration

Migrate your wiki with confidence. We move your MediaWiki to a new home, or we help you migrate from another system to MediaWiki.

MediaWiki Upgrades icon
MediaWiki Upgrades

Keep your MediaWiki up-to-date and secure. We offer MediaWiki maintenance services to keep your wiki running smoothly.