Skin:Medik
![]() Release status: stable |
|||
---|---|---|---|
![]() |
|||
Description | Simple and clean skin based on the Bootstrap 5 library. | ||
Author(s) | Petr Kajzar | ||
Latest version | 5.1.1 (2023-04-27) | ||
Compatibility policy | Master maintains backwards compatibility. | ||
MediaWiki | 1.39+ | ||
PHP | 7.0+ | ||
License | Creative Commons Zero v1.0 Universal | ||
Download | Download snapshot
Bitbucket: |
||
Example | WikiSkripta | ||
|
|||
Public wikis using | 56 (Ranked 47th) | ||
Public wikis using as default skin | 26 | ||
Translate the Medik skin if it is available at translatewiki.net |
Medik is a simple and clean MediaWiki skin based on Bootstrap 5.
MediaWiki version | Libraries | Medik version |
---|---|---|
MW 1.29 to 1.38 | Boostrap 4.6.0 and popper.js 1.16.1 | Medik v3.2.7 |
MW 1.39 | Boostrap 4.6.0 and popper.js 1.16.1 | Medik v4.0.2 and v4.0.3 |
MW 1.39+ | Boostrap 5.3.0 (bundle with popper.js) | Medik v5.0+ |
For appropriate version of Medik skin please visit list of versions.
Installation[edit]
- Download and place the file(s) in a directory called
Medik
in yourskins/
folder. - Add the following code at the bottom of your
LocalSettings.php
:
wfLoadSkin( 'Medik' );
$wgDefaultSkin = 'medik';
- Configure as required.
Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Configuration[edit]
Global settings[edit]
You can use the following configuration variables in your "LocalSettings.php" file:
Variable | Description | Possible values | Default |
---|---|---|---|
Theme color | |||
$wgMedikColor
|
The Medik color scheme (navbar background, underlines etc.). | CSS colors (e.g. '#ACFE00' or 'blue' )
|
'#FFBE00'
|
Site logo | |||
$wgMedikShowLogo
|
Show logo in the navbar or in the sidebar. By default, the logo is hidden. |
|
'none'
|
$wgMedikLogoWidth
|
Width of the logo in the main navbar (i.e. you have to set $wgMedikShowLogo = 'main'; first).
|
CSS width (e.g. '210px' or '2em' etc.).
|
'default'
|
$wgMedikUseLogoWithoutText
|
Use only logo and hide the site name in the left upper corner of the wiki. Note that you have to set $wgMedikShowLogo to either 'main' or 'sidebar' .
|
|
false
|
Other options | |||
$wgMedikMobileSitename
|
If your wiki's name is longer than about 13 to 15 characters, you can define a shorter one only for the mobile screen. On desktop, $wgSitename will be displayed as usual.
|
|
null
|
$wgMedikContentWidth
|
On 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. 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 If you need a narrow main content area, use |
|
'default'
|
License[edit]
This skin is:
- based on Skin:Example (licensed under CC0),
- using Bootstrap 5 (licensed under MIT license),
- using popper.js bundled with Bootstrap (licensed under MIT license),
- originally created for WikiSkripta medical wiki,
- and released under Creative Commons Zero v1.0 Universal license (CC0).
This software is distributed without any warranty.
See also[edit]
Other skins and extensions related to the Bootstrap framework:
- Category:Skins based on Bootstrap - Overview of skins based on the Bootstrap framework
- Extension:Bootstrap - Provides the Bootstrap framework to MediaWiki
- Extension:BootstrapComponents - Provides further components to the Bootstrap framework for MediaWiki
![]() | This skin is included in the following packages and/or wiki farms: This is not an authoritative list. Some wiki farms/hosts may contain this skin even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |