Extension:Bootstrap

The Bootstrap extension provides the Twitter Bootstrap (version 3) web front-end framework to MediaWiki. It can be activated directly or used from skins or extensions.

Installation
The Bootstrap extension requires Composer for installation. (But why!?)


 * 1) If not already done, install Composer.
 * 2) Add   as a requirement to   in the MediaWiki installation directory
 * 3) Run
 * 4) ✅ – 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. You can then add modules using its methods,  , and.

You can set LESS variables using  and.

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 :

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

Contact
Comments, questions and suggestions should be sent or posted to:
 * the Bootstrap discussion page
 * the author

Directly related

 * the Twitter Bootstrap homepage
 * the Less.php compiler homepage
 * the LESS homepage
 * the Chameleon skin that uses this extension
 * the BootstrapComponents extension that uses this extension and lets editors utilize its potential inside wiki markup

Disambiguation

 * the BootStrap extension (note the exact spelling of the name!) aims to allow for the addition of Bootstrap styling within MediaWiki articles
 * the BootStrapSkin skin makes use of the BootStrap extension
 * the Bootstrap skin is another Bootstrap based skin independent from either extension