MediaWiki/Global CSS

From Wikimedia Belgium
Jump to navigation Jump to search

It can be very useful to enable Global CSS.

Tip: edit m:Special:MyPage/global.css (valid for all Wikimedia websites; you only need to encode this once).

Color code redirect pages[edit]

A small CSS style can do wonderful things with your websites:

#history-toolbox {display: block !important;}
.mw-disambig {background-color: #AFEEEE;}
.mw-redirect {background-color: wheat;}
  1. The first option adds an additional menu on history pages (copyright check)
  2. Disambiguation will be visually indicated
  3. Redirects will be visually indicated

Notes

  1. Most of the times a disambiguation, or even a redirect, is bad practice.
  2. Sometimes a redirect is OK when a future lemma could/would/might be created.

Section heading colors[edit]

To color the section headers:

h1 {color: #990000;}
h2 {color: #339966;}
h3 {color: #006699;}

More options[edit]

.gallerytext {text-align: center;}
.mw-editsection {display: none;}
  1. Center gallery captions
  2. Omit edit commands (you should enable right click to edit page section)

See also[edit]