Jump to content

MediaWiki/Global CSS

From Wikimedia Belgium

It can be very useful to enable Global CSS. This way you have a single location where you can customise all Wikimedia platforms. You need to be logged in. It is part of your account configuration.

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

[edit]
  • Add an additional menu on history pages (copyright check and statistics).
#history-toolbox {display: block !important;}

PS: This option is by default enabled on the French Wikipedia for all users.

Color code redirect pages

[edit]

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

  • Disambiguation will be visually indicated
  • Redirects will be visually indicated
.mw-disambig {background-color: #AFEEEE;}
.mw-redirect {background-color: wheat;}

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;}

Disable section edit labels

[edit]

To read the content more easily: omit edit commands:

.mw-editsection {display: none;}

Tip: Enable right click section edit.

More options

[edit]
  • Center gallery captions
.gallerytext {text-align: center;}

See also

[edit]