Extension:AddBodyClass
From MediaWiki.org
AddBodyClass Release status: stable |
|||
---|---|---|---|
Implementation | Parser function | ||
Description | Allows to add custom classes to the HTML <body> tag | ||
Author(s) | Povilas Kanapickas (P12talk) | ||
Latest version | 1.1 (2013-04-25) | ||
MediaWiki | 1.18 - 1.21 | ||
Database changes | No | ||
License | GPLv2+ | ||
Download |
GitHub: Note: README] |
||
|
|||
Translate the AddBodyClass extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics |
The AddBodyClass extension allows to add custom classes to the HTML <body> tag.
Usage[edit | edit source]
{{#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}}
Installation[edit | edit source]
- Download] and extract the tarball in your
extensions/
folder. It should generate a new folder calledAddBodyClass
directly inside yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/AddBodyClass/AddBodyClass.php";
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.