Extension:AddBodyClass

From MediaWiki.org
(Redirected from Extension:AddBodyTags)
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
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
README]
Hooks used
ParserFirstCallInit

OutputPageBodyAttributes
OutputPageBeforeHTML

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]

Template:Extension/enInstall