Extension:Bootstrap

The Bootstrap extension provides the Twitter Bootstrap (version 3) web front-end framework to skins and extensions.

Installation
The latest development version of the Bootstrap extension requires Composer for installation. (But why!?)


 * 1) If not already done, install Composer.
 * 2) If not already done, copy   to   in your MediaWiki installation directory
 * 3) If not already done, add the following keys to   to allow Composer installing development versions:
 * 4) If you are upgrading from a version installed without using Composer,
 * 5) * Remove the old extension from the  from LocalSettings.php
 * 6) Run   (or   if applicable)
 * 7) ✅ – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
 * 1) Run   (or   if applicable)
 * 2) ✅ – 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 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 only,   for scripts only and    for styles and javascript. For an example have a look at the Chameleon skin.

Issues
Bootstrap will interfere with other CSS present on the page, e.g. from the Vector skin. If you use this extension to develop your own skin, make sure to only activate Bootstrap when your skin is active.

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