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 the Bootstrap 4 library. Originally and continuously developed for WikiSkripta.
Author(s) Petr Kajzar (e-mail)
Latest version 3.0.8 (2020-09-30)
MediaWiki 1.29+
License Creative Commons Zero v1.0 Universal
Download Download master snapshot

Bitbucket:

Example WikiSkripta
Parameters
  • $wgMedikColor
  • $wgMedikContentWidth
  • $wgMedikShowLogo
  • $wgMedikLogoWidth
  • $wgMedikUseLogoWithoutText
  • $wgMedikResponsive
Translate the Medik skin if it is available at translatewiki.net
Check usage and version matrix;

The Medik skin is a simple skin based on Bootstrap 4 which was 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' );
  • Configure as required.
  • Yes 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' (default)
  • 'main' (i.e. small logo in the main navbar)
  • 'sidebar' (i.e. big logo in the sidebar)
'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
  • true
false
Other options
$wgMedikResponsive If you need to disable the responsiveness of the skin (i.e. you don't want the skin to adjust to the screen size), set this to false.
  • false
  • true
true
$wgMedikContentWidth

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" file and set that to 'full'. Then the main content container will take 10/12 of the screen width (and 2/12 remain for the sidebar menu).

  • 'default'
  • 'full'
'default'

User settings[edit]

Basic font size[edit]

Every user is able to change the default font size in their user settings. It's found on page "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: