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

(Difference between pages)
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{BSExtensionInfobox
{{DISPLAYTITLE:Namespace CSS manager}}
|desc=Allows to list and count subpages
|status=stable
|developer=Jeroen De Dauw
|type=MediaWiki
|edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud
|compatible=MediaWiki
|category=Content Structuring
|license=GPL v2+
|docu=https://www.mediawiki.org/wiki/Extension:SubPageList
|active=Yes
}}
{{BSVersion|bsvFrom=4.2|bsvTo=|bsvFeature=}}


=== <span class="mw-headline">Examples</span> ===
{{BSVersion|bsvFrom=|bsvTo=4.1|bsvFeature=}}
<span>Listing the subpages of the current page using default settings:</span><div>
<nowiki>{{#subpages:}}</nowiki>
</div><span>Listing subpages for page "MyAwesomePage":</span><div>
<nowiki>{{#subpages:MyAwesomePage}}</nowiki>
</div><span>Listing subpages using an ordered list:</span><div>
<nowiki>{{#subpages:format=ol}}</nowiki>
</div><span>Full page names that are not linked:</span><div>
<nowiki>{{#subpages:pathstyle=full|links=no}}</nowiki>
</div>The full user documentation can be found on gitub: https://github.com/JeroenDeDauw/SubPageList/blob/master/doc/USAGE.md


==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.
<br />
[[File:Mediawiki Extension NamespaceCss.png|alt=Namespace-CSS Manager|center|thumb|650x650px|Namespace-CSS Manager]]
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.
==  BlueSpice 4.2+ ==
To apply specific styling to a namespace, you have to apply it directly in the page ''MediaWiki:Common.css''.
For example, to apply a different navigation background color to the namespace Manual:
# Go to the [[Manual:Extension/BlueSpiceNamespaceManager|Namespace manager]] page, to find the id of the namespace:
# Go to  ''MediaWiki:Common.css'' and add the namespace id as a css class to your style:  <br />
<syntaxhighlight lang="text">
.ns-3002 #sb-pri-cnt {background: #A9DFBF} /* give the namespace 3002 a green navigation background*/
</syntaxhighlight>
[[File:Manual:namespace styling.png|alt=Namespace-specific styling|center|thumb|650x650px|Namespace-specific styling]]
{{Box Links-en|Topic1=[[Reference:BlueSpiceNamespaceCSS]]|Topic3=https://www.mediawiki.org/wiki/Help:Namespaces|Topic2=[[Reference:BlueSpiceNamespaceManager]]}}
{{translation}}
{{translation}}
__FORCETOC__
[[Category:Customization]]
[[Category:CSS]]

Latest revision as of 13:31, 26 July 2022


is available up to BlueSpice 4.1.


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.

BlueSpice 4.2+

To apply specific styling to a namespace, you have to apply it directly in the page MediaWiki:Common.css.

For example, to apply a different navigation background color to the namespace Manual:

  1. Go to the Namespace manager page, to find the id of the namespace:
  2. Go to MediaWiki:Common.css and add the namespace id as a css class to your style:
.ns-3002 #sb-pri-cnt {background: #A9DFBF} /* give the namespace 3002 a green navigation background*/
Namespace-specific styling
Namespace-specific styling

Related info

Discussions