Archive:Reference:BlueSpiceNamespaceCSS and Manual:Extension/BlueSpiceNamespaceCSS: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
{{BSExtensionInfo
{{DISPLAYTITLE:Namespace CSS manager}}
|desc=Enables namespace-specific styling.
{{Messagebox|boxtype=note|Note text=This extension is no longer included starting at BlueSpice v. 4.2. Namespace-specific styling can be applied via MediaWiki:Common.css. See [[Manual:Extension/BlueSpiceNamespaceCSS#BlueSpice 4.2+|BlueSpice 4.2+]] for more info.}}
|status=stable
|developer=HalloWelt
|type=BlueSpice
|edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud
|compatible=BlueSpice
|category=Skinning
|license=GPL v3 only
|features=
{{Messagebox|boxtype=note|Note text=This extension is no longer included starting at BlueSpice v. 4.2. Namespace-specific styling can be applied via MediaWiki:Common.css. See the [[Manual:Extension/BlueSpiceNamespaceCSS|help page]] for more info.}}
The extension '''NamespaceCSS''' allows users to use different CSS styles for different namespaces. This can be useful if you want to visually distinguish between different manuals or parts of your wiki.


It is possible to change the look of the wiki at the namespace level.
==Creating the styles for a namespace==


The CSS code is written to the contents of the ''<namespace name>_css'' page. The extension checks at each page call whether there is a CSS page for this namespace. This is then registered as a StyleSheet.
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.
<br />
[[File:Mediawiki Extension NamespaceCss.png|alt=Namespace-CSS Manager|center|thumb|650x650px|Namespace-CSS Manager]]


Example: ''MediaWiki:User_css'' affects all pages that are in the namespace ''User''.
 
}}
To add or overwrite the styles for a namesapce:
 
#'''Click''' on the source page link for the namespace.
#'''Enter''' your CSS-code directly in this page. Example: ''MediaWiki:User_css'' affects all pages in the namespace ''User''.
#'''Save''' the page and review your changes on the pages in the affected namespace.
 
<br />
 
{{Box Links-en|Topic1=[[Reference:BlueSpiceNamespaceCSS]]|Topic3=[[Mediawiki_namespaces]]|Topic2=[[Reference:BlueSpiceNamespaceManager]]}}
[[en:{{PAGENAME}}]]
[[de:Handbuch:Erweiterung/BlueSpiceNamespaceCSS]]
__FORCETOC__
[[Category:Customization]]
[[Category:CSS]]

Revision as of 12:12, 13 June 2022

Note:This extension is no longer included starting at BlueSpice v. 4.2. Namespace-specific styling can be applied via MediaWiki:Common.css. See BlueSpice 4.2+ for more info.


Creating the styles for a namespace

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.
  3. Save the page and review your changes on the pages in the affected namespace.


Related info

Discussions