Jump to content

Skin:MediaWikiBootstrap5

From mediawiki.org
This page is a translated version of the page Skin:MediaWikiBootstrap5 and the translation is 43% complete.
Not to be confused with Skin:MediaWikiBootstrap
MediaWiki 外装マニュアル - カテゴリ
MediaWikiBootStrap5
リリースの状態: 安定
説明 A MediaWiki skin using Bootstrap 5
作者 JLTRY
最新バージョン 1.1.1 (2025-02-4)
MediaWiki 1.39+
ライセンス クリエイティブ・コモンズ CC0 1.0 全世界
ダウンロード GitHub release V1.1.1
translatewiki.net で翻訳を利用できる場合は、MediaWikiBootstrap5 外装の翻訳にご協力ください

The MediaWikiBootstrap5 skin provides a skin using Bootstrap 5.

インストール

  • ダウンロードして、ファイルを skins/ フォルダー内の MediaWikiBootstrap5 という名前のディレクトリ内に配置します。
  • ファイル LocalSettings.php の末尾に以下のコードを追加してください:
    wfLoadSkin( 'MediaWikiBootstrap5' );
    define('NS_MEDIAWIKIBOOTSTRAP', 1001);
    $wgExtraNamespaces[NS_MEDIAWIKIBOOTSTRAP] = "MediaWikiBootstrap";
    $wgDefaultSkin = 'mediawikibootstrap5'; // This line makes this skin the default skin.
    
  • Yes 完了 - 自分のウィキの Special:Version に移動して、外装が正しくインストールされたことを確認してください。

In the composer.local.json file set:

{
	"require": {        
		"twbs/bootstrap": "5.1.3",
		"components/jquery": "3.6.0"
	}
}

Then run:

composer update no-dev

関連項目

Bootstrap フレームワークに関連する他の外装および拡張機能: