Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
  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-'.

About

A MediaWiki extension for adding custom classes to the <body> tag

Resources

Packages

No packages published

Languages