Difference between revisions of "Manual:Extension/BlueSpiceNamespaceCSS"

[unchecked revision][quality revision]
m (Mlink-rodrigue moved page Manual:Extension/NamespaceCss to Manual:Extension/BlueSpiceNamespaceCSS without leaving a redirect: Aligned with name shown in Version)
m
(Tag: 2017 source edit)

Contents

What is NamespaceCss?[edit | edit source]

The extension NamespaceCSS allows users to use apply different CSS styles for to different namespaces. This can be very useful to e.g. distinguish between different manuals or parts of your wiki.

How does NamespaceCss work?

Creating the styles for a namespace[edit | edit source]

For each namespace you want to define your own CSS for, you have to create a page in the MediaWiki namespace, using the following template:

MediaWiki:NamespaceName_css

You can now enter your desired CSS-code directly into this page.
The link Namesapce-CSS Manager in the menu Global actions > Management opens the page Special:NamespaceCSSManager. This page lists all namespaces and the link to their associated CSS page.

Namespace-CSS Manager
Namespace-CSS Manager


To add or overwrite the styles for a namesapce:

  1. Click on the source page link for the namespace.
  2. Enter your CSS-code directly in this page. Example: MediaWiki:User_css affects all pages in the namespace User.
Please note
  1. Save the page and review your changes on the pages in the affected namespace.

Note: The Special namespace is an exception, as you cannot define

a

separate CSS declarations for it.

Hint[edit | edit source]

Make sure that the following code is part of every MediaWiki:NamespaceName_css page to ensure that the CSS registers properly. Otherwise the VisualEditor might discard your notations:

                 /*
 __NOEDITOR__
 */

            


Related info



Attachments

Discussions