Skin:Medik

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki skins manual - category
Crystal Clear device blockdevice.png
Medik
Release status: stable
Skin Medik.png
Description Simple and clean skin based on Twitter's Bootstrap library. Originally and continuously developed for WikiSkripta.
Author(s) Slepi
Latest version 3.0.0 (2020-08-04)
MediaWiki 1.29+
License Creative Commons Zero v1.0 Universal
Download Download master snapshot

Bitbucket:

Example WikiSkripta
Translate the Medik skin if it is available at translatewiki.net
Check usage and version matrix;

The Medik skin is a simple Bootstrap-based skin originally developed for WikiSkripta.

Installation[edit]

  • Download and place the file(s) in a directory called Medik in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'Medik' );
  • Yes Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Customization[edit]

Global settings[edit]

Theme color[edit]

It is possible to set the color theme by inserting $wgMedikColor to your LocalSettings.php:

$wgMedikColor = '#FF0000';

Possible values are either hex values of HTML colors, or named values as used in CSS.

$wgMedikColor = 'blue';

Default value is #ffbe00 as used in WikiSkripta project.

[edit]

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 $wgMedikShowLogo in your LocalSettings.php:

$wgMedikShowLogo = 'main';    // for a small logo (28x28 px) in the main top bar
$wgMedikShowLogo = 'sidebar'; // for a big logo in the sidebar

But don't forget to set the logo path at $wgLogo!

The default value is 'none'.

Responsive skin[edit]

Note that this skin is responsive by default, i.e. it fits the screen both on deskops and on mobile screens. If you need unresponsive design, just set in LocalSettings.php:

$wgMedikResponsive = false;

Content width[edit]

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 $wgMedikContentWidth variable in your LocalSettings.php and set that to 'full':

$wgMedikContentWidth = 'full';

Then the main content container will take 10/12 of the screen width (and 2/12 remain for the sidebar menu).

User settings[edit]

Basic font size[edit]

Every user is able to change the default font size in their user settings. It's found in Special:Preferences under the skin preferences.

Contributing[edit]

Feel free to fork the repo:

Then apply your patches and send a pull request either in the Bitbucket web interface or by e-mail (you'll find author's e-mail address in any raw commit of the skin).

License[edit]

Created by Petr Kajzar, 1st Faculty of Medicine, Charles University, Czech Republic, 2019–2020.

This skin is:

To the extent possible under law, I have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

See also[edit]

Other skins and extensions based on Bootstrap: