-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
24 lines (17 loc) · 841 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Information
===========
This is a MediaWiki extension that allows one to add custom classes to the
<body> html tag. Just add the following to your LocalSettings.php once the
source of the extension is copied to the extensions/ directory:
require_once("$IP/extensions/AddBodyClass/AddBodyClass.php");
// Enable to automatically include a page's categories as body classes.
// $wgCategoriesAsBodyClasses = true;
Usage
=====
{{#addbodyclass:your_class}}
This will append 'your_class' to the contents of the `class' attribute of
<body> element. You can append multiple classes using
{{#addbodyclass:your_class1 your_class2 your_class3}}
When `$wgCategoriesAsBodyClasses` is true, classes for each of a page's
categories are automatically added to the body with a 'cat-' prefix.
Along with a lowercase class prefixed with 'icat-'.