Extension:Bootstrap

The Bootstrap extension provides the Bootstrap 4 web front-end framework to MediaWiki. It can be activated directly or used from skins or extensions.

Currently Bootstrap version 4.3.1 is provided.

Installation
Until version ≤ 4.1.0 this extension required Composer for installation. Starting with version 4.2.0 two options are available:
 * From Tarball


 * Using Composer
 * 1) If not already done, install Composer.
 * 2) Add   as a requirement to your "composer.local.json" file in the MediaWiki installation directory
 * 3) Run
 * 4) Load the extension by adding the following line to LocalSettings.php:
 * 5) ✅ – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Usage
Use  to get the singleton managing the Bootstrap framework.

With the returned object,
 * add Bootstrap modules using,  , and
 * set SCSS variables using  and
 * add style files using
 * add cache trigger files using

Finally to add the Bootstrap styles and javascript to the page use  for styles and   for scripts.

To simply enable Bootstrap styles on all pages add the following code to your "LocalSettings.php" file:

For an example on how to include Bootstrap styles in a skin have a look at the Chameleon skin.