Signed-off-by: WaitSpring <firstname.lastname@example.org>
A MediaWiki skin based on Bootstrap 4.
Download and place the file(s) in a directory called Write in your
Add the following code at the bottom of your
wfLoadSkin( 'Write' );
Done - Navigate to
Special:Versionon your wiki to verify that the skin is successfully installed.
It is possible to set the color theme by inserting
$wgWriteColor to your
$wgWriteColor = '#FF0000';
Possible values are either hex values of HTML colors, or named values as used in CSS.
$wgWriteColor = 'blue';
Default value is
#3366cc as used in Qiuwen Baike.
By default, the site logo is not shown at all. But if you want to show your logo with this skin, you can place it:
- in the upper main bar next to the site title,
- in the sidebar as usual in other skins like Monobook, Vector.
You just have to set
$wgWriteShowLogo in your
$wgWriteShowLogo = 'main'; // for a small logo (28×28 px) in the main bar $wgWriteShowLogo = 'sidebar'; // for big logo in the sidebar
But don't forget to set the logo path at
The default value is
Additionaly, if you have
$wgWriteShowLogo = 'main';, you can specify these:
// use only logo without text (i.e. without site name) $wgWriteUseLogoWithoutText = true;
Note that this skin is responsive by default, i.e. it fits the screen both on
desktops and on mobile screens. If you need unresponsive design, just set in
$wgWriteResponsive = false;
You can set the content width with
$wgWriteContentWidth, which has four
At large screens, the main content container (with articles, texts, etc.) is 9/12 of the screen width and sidebar menu takes 2/12 of the screen width. It means that 1/12 of the screen width on the right side remains white. This is the default and looks good.
But there can be cases when you need your wiki to extend to the full width of
the screen even on the large screens. Then you can use
variable in your
LocalSettings.php and set that to
$wgWriteContentWidth = 'full';
Then the main content container will take 10/12 of the screen width (and 2/12 remain for the sidebar menu).
If you want a narrow main content (i.e. 8/12 for the main content, 2/12 for
the sidebar on the left and 2/12 for the white space on the right), use
$wgWriteContentWidth = 'narrow';
If you need a wide main content with a narrow left sidebar, use
the sidebar will be 1/12 and the main content 10/12:
$wgWriteContentWidth = 'wide';
Basic font size
Every user is able to change the default font size in their user settings. It's
Special:Preferences under the skin preferences.
You can contribute to the git repository:
Originally created at 1st Faculty of Medicine, Charles University and maintained by Petr Kajzar, 2019–2022.
Modified by Qiuwen Baike Contributors, since 2022.
This skin is:
- based on Skin:Example (provided under CC0 license),
- using Bootstrap v4.6.0 (provided under MIT license),
- using popper.js v1.16.1 (provided under MIT license),
- created for WikiSkripta medical wiki,
- and released under Creative Commons Zero v1.0 Universal license.
This software is distributed without any warranty.
For additional info please refer to the COPYING file.