Simplify file structure

这个提交包含在:
Petr Kajzar 2023-05-01 15:09:57 +02:00
父节点 259e29991f
当前提交 ad8420255f
找不到此签名对应的密钥
GPG 密钥 ID: 9109B4F167FC522C
共有 6 个文件被更改,包括 57 次插入166 次删除

查看文件

@ -1,11 +0,0 @@
#
# This list is used by git-shortlog to fix a few botched name translations
# in the git archive, either because the author's full name was messed up
# and/or not always written the same way, making contributions from the
# same person appearing not to be so or badly displayed. Also allows for
# old email addresses to map to new email addresses.
#
# For format details, see "MAPPING AUTHORS" in "man git-shortlog".
#
Petr Kajzar <petr.kajzar@centrum.cz> <petr.kajzar@lf1.cuni.cz>

32
COPYING
查看文件

@ -1,32 +0,0 @@
Copyright (c) First Faculty of Medicine, Charles University
Petr Kajzar
Created by: Petr Kajzar <petr.kajzar@centrum.cz>
Medik, a MediaWiki skin, is provided under Creative Commons Zero v1.0 Universal
license:
SPDX-License-Identifier: CC0-1.0
For the full license text please see 'license-cc0.txt' file delivered with this
skin in the 'assets/' folder.
Note that the skin is:
- based on the MediaWiki Skin:Example, provided under CC0-1.0 license:
https://www.mediawiki.org/wiki/Skin:Example
- using Bootstrap library (included in 'resources/libraries/'), provided under
the MIT license:
https://getbootstrap.com/
- using popper.js library (bundled with Bootstrap), provided under
the MIT license:
https://popper.js.org/
- and originally created for WikiSkripta, a medical wiki project:
https://www.wikiskripta.eu

查看文件

@ -1,4 +1,4 @@
Creative Commons Legal Code
Creative Commons Legal Code
CC0 1.0 Universal

56
README 普通文件
查看文件

@ -0,0 +1,56 @@
Skin Medik for MediaWiki
========================
This is a MediaWiki skin based on Bootstrap library, originally
created for WikiSkripta.
All documentation for this template can be found at:
https://www.mediawiki.org/wiki/Skin:Medik
For installation or upgrading download and place the files in
a directory called 'Medik' in your 'skins/' folder of MediaWiki
installation. Add the following code at the bottom of your
LocalSettings.php:
wfLoadSkin( 'Medik' );
$wgDefaultSkin = 'medik';
However, if you install this plugin manually, make sure it is
installed in 'lib/tpl/wikipraktik' correctly.
For additional info on how to configure this skin please refer to:
https://www.mediawiki.org/wiki/Skin:Medik
----
Copyright (c) First Faculty of Medicine, Charles University
Petr Kajzar
Created and maintained by: Petr Kajzar
This program is free software; you can redistribute it and/or modify
it under the terms of the Creative Commons Zero v1.0 Universal license.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Note that this MediaWiki skin is:
- based on the MediaWiki Skin:Example, provided under CC0-1.0
license:
https://www.mediawiki.org/wiki/Skin:Example
- using the Bootstrap library (included in 'resources/libraries/'),
bundled with popper.js and provided under the MIT license:
https://getbootstrap.com/
- and originally created for WikiSkripta, a medical wiki project:
https://www.wikiskripta.eu
See the LICENSE file for details.

122
README.md
查看文件

@ -1,122 +0,0 @@
# Medik
_A MediaWiki skin based on Bootstrap library, originally created for
[WikiSkripta](https://www.wikiskripta.eu)._
![Medik](assets/medik.png)
## Installation
* Download and place the files in a directory called Medik in your `skins/`
folder. For MediaWiki 1.29-1.38 use Medik v3.2.7 with Bootstrap 4,
for MediaWiki 1.39+ use either Medik v4.0.2 with Bootstrap 4 or
up-to-date version of Medik with Bootstrap 5.
* 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.
#### Site logo
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;
#### Content width
You can set the content width with `$wgMedikContentWidth`, which has three
options:
- `default`
- `full`
- `narrow`
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';
## Contributing
You can contribute to the original git repository:
https://github.com/petrkajzar/mediawiki-skin-medik/
## License
This skin is:
* based on [Skin:Example](https://www.mediawiki.org/wiki/Skin:Example)
(provided under CC0 license),
* using [Bootstrap](https://getbootstrap.com/) (provided under MIT license),
* using [popper.js](https://popper.js.org/) (provided under MIT license),
* originally created for [WikiSkripta](https://www.wikiskripta.eu) 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](COPYING).

二进制
assets/medik.png

二进制文件未显示。

之前

宽度:  |  高度:  |  大小: 364 KiB