Extension:AddBodyClass

This page is a translated version of the page Extension:AddBodyClass and the translation is 50% complete.
MediaWiki 拡張機能マニュアル
AddBodyClass
リリースの状態: 保守されていない
実装 パーサー関数
説明 Allows adding custom classes to the HTML ‎<body> tag
作者 Povilas Kanapickas, Will Stott
最新バージョン 1.2.0 (2016-03-21)
MediaWiki 1.18
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README

The AddBodyClass extension allows adding custom classes to the HTML <body> tag.

使用法

{{#addbodyclass:your_class}}

This will append 'your_class' to the contents of the 'class' attribute of <body> class. You can append multiple classes using:

{{#addbodyclass:your_class1 your_class2 your_class3}}

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のAddBodyClassという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    require_once "$IP/extensions/AddBodyClass/AddBodyClass.php";
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。