Jump to content

Extension:NamespaceStyle

From mediawiki.org
MediaWiki extensions manual
NamespaceStyle
Release status: stable
Implementation User interface, Skin
Description Allows you to create different styles for different namespaces.
Author(s) Mark A. Hershberger (MarkAHershbergertalk)
Latest version 0.0.1
Compatibility policy Master maintains backward compatibility.
MediaWiki >= 1.41.0
Database changes No
Composer nichework/namespace-style
License GNU General Public License 3.0 or later
Download
README

The NamespaceStyle extension allows you to create per-namespace stylesheets.

To provide a namespace-specific style, create a page in the MediaWiki namespace. The page should begin with the namespace name and have the suffix -namespace.css. You can use (main) (as in MediaWiki:(main)-namespace.css) for the main namespace.

Installation

[edit]
  • Download and place the file(s) in a directory called NamespaceStyle in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'NamespaceStyle' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.