Skin:Medik
![]() リリースの状態: 安定 |
|||
---|---|---|---|
![]() |
|||
説明 | シンプルでクリーンな Bootstrap 5 ライブラリ ベースの外装。 | ||
最新バージョン | 5.1.3 (2023-07-31) | ||
互換性の方針 | master は後方互換性を維持しています。 | ||
MediaWiki | 1.39+ | ||
PHP | 7.0+ | ||
ライセンス | クリエイティブ・コモンズ CC0 1.0 全世界 | ||
ダウンロード | master スナップショットをダウンロード 注: |
||
例 | WikiSkripta | ||
|
|||
使用している公開ウィキ | 56 (Ranked 47th) | ||
既定の外装として使用している公開ウィキ | 26 | ||
translatewiki.net で翻訳を利用できる場合は、Medik 外装の翻訳にご協力ください |
Medik は、シンプルでクリーンな Bootstrap 5 ライブラリ ベースの MediaWiki 外装です。
互換性
MediaWiki のバージョン | Medik のバージョン | 含まれるライブラリ |
---|---|---|
MW 1.29 - 1.38 | Medik v3.2.7 | Bootstrap 4.6.0 and popper.js 1.16.1 |
MW 1.39 | Medik v4.0.2 and v4.0.3 | Bootstrap 4.6.0 and popper.js 1.16.1 |
MW 1.39+ | Medik v5.0+ | Bootstrap 5.3.x (bundled with popper.js) |
For appropriate version of Medik skin please visit the list of versions.
インストール
- ダウンロードして、ファイルを
skins/
フォルダー内のMedik
という名前のディレクトリ内に配置します。 - ファイル LocalSettings.php の末尾に以下のコードを追加してください:
wfLoadSkin( 'Medik' ); $wgDefaultSkin = 'medik';
- 必要に応じて設定します。
完了 - 自分のウィキの Special:Version に移動して、外装が正しくインストールされたことを確認してください。
Note that one does not need to install the libraries listed in the compatibility section. They ship with Medik.
設定
You can use the following configuration parameters 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.).
|
'既定'
|
$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'
|
ライセンス
This skin:
- based on Skin:Example (licensed under CC0)
- using Bootstrap 5 (licensed under MIT license)
- using popper.js bundled with Bootstrap (licensed under MIT license)
- is originally created for WikiSkripta medical wiki
- released under Creative Commons Zero v1.0 Universal license (CC0).
This software is distributed without any warranty.
関連項目
Other skins and extensions related to the Bootstrap framework:
- 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
- その他
- Bootstrap for MediaWiki wiki — Examples and Demos
- Enhance Your MediaWiki with Bootstrap — Blog post about improving your wiki by integrating it with Bootstrap and its components; published January 20, 2024
![]() | この外装は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの外装を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |