Is there an easy way to give a MediaWiki wiki a specific background color?
2 answers
For MediaWiki 1.18 you need CSS and this code:
{{#css:
#bodyContent { background-color: yellow; }
body {
background: navajowhite;
}
}}
This will give the text portion of the page yellow and the rest (border) brown-ish .
For best results, place this in a template eg. {{Page Color}}, so it can be called with, for example, {{Page Color | red | yellow}}. The template code will be as follows:
{{#css:
#bodyContent { background-color: {{{1|yellow}}}; }<!-- Page color -->
body {
background: {{{2|navajowhite}}};<!-- Border color -->
}
}}
where 1 and 2 are parameters (page and border respectively) with default colors (yellow and brown).
+1
a source to share