转到文件
Petr Kajzar 394b22fe48 Version 3.2.7
Bug fixes and validation improvements

Morne Alberts:
    Add backward compatible getAfterPortlet()

Petr Kajzar:
    Add button role to aside menu links

Localisation updates from translatewiki.net
2022-08-28 08:18:25 +00:00
assets Update skin screenshot 2020-08-20 18:33:44 +02:00
i18n Localisation updates from https://translatewiki.net. 2022-06-09 13:09:22 +02:00
includes Add backward compatible getAfterPortlet() 2022-08-26 20:50:07 +02:00
resources Fix CSS of nested lists again 2022-01-16 23:40:08 +01:00
templates Remove unneeded attribute from style tag 2022-05-05 22:37:04 +02:00
.mailmap Change primary e-mail of the maintainer 2022-08-28 08:12:58 +00:00
COPYING Update year and maintainer's primary contact 2022-08-28 08:13:56 +00:00
README.md Update readme info and fix typo 2022-08-28 08:11:55 +00:00
skin.json Version 3.2.7 2022-08-28 08:18:25 +00:00

README.md

Medik

A MediaWiki skin based on Bootstrap 4, originally created for WikiSkripta.

Medik

Installation

  • 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' );
    
  • Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

Customization

Global settings

Mobile sitename

If your wiki's name is very long, you can define a shorter one for the mobile screen. Insert this setting to your LocalSettings.php:

$wgMedikMobileSitename = 'ShortWiki';

If the short sitename is not set, it is the same as your $wgSitename by default.

Theme color

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 the WikiSkripta project.

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 (28×28 px) in the main bar
$wgMedikShowLogo = 'sidebar'; // for big logo in the sidebar

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

The default value is 'none'.

Additionaly, if you have $wgMedikShowLogo = 'main';, you can specify these:

// change the logo width (default is square about 28×28 px)
$wgMedikLogoWidth = '210px';

// use only logo without text (i.e. without site name)
$wgMedikUseLogoWithoutText = true;

Responsive skin

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 LocalSettings.php:

$wgMedikResponsive = false;

Content width

You can set the content width with $wgMedikContentWidth, which has four options:

  • default
  • full
  • narrow
  • wide

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).

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 narrow:

$wgMedikContentWidth = 'narrow';

If you need a wide main content with a narrow left sidebar, use wide. Then the sidebar will be 1/12 and the main content 10/12:

$wgMedikContentWidth = 'wide';

User settings

Basic font size

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

You can contribute to the original git repository:

https://bitbucket.org/wikiskripta/medik/

License

Created at 1st Faculty of Medicine, Charles University, and maintained by Petr Kajzar, 2019–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.