Erweiterung:AddBodyClass

This page is a translated version of the page Extension:AddBodyClass and the translation is 50% complete.
MediaWiki-Erweiterungen
AddBodyClass
Freigabestatus: ohne Wartung
Einbindung Parser-Funktion
Beschreibung Allows adding custom classes to the HTML ‎<body> tag
Autor(en) Povilas Kanapickas, Will Stott
Letzte Version 1.2.0 (2016-03-21)
MediaWiki 1.18
Datenbankänderungen Nein
Lizenz GNU General Public License 2.0 oder später
Herunterladen
README

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

Verwendung

{{#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

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens AddBodyClass im Ordner extensions/ ablegen.
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    require_once "$IP/extensions/AddBodyClass/AddBodyClass.php";
    
  •   Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.