Help:Editing Special:CSS
93,495pages on
this wiki
this wiki
Editing MediaWiki:Wikia.css routes you to Special:CSS, an updated experience for editing your wikia's CSS.
For more tips and help with editing CSS on Wikia, visit Help:CSS.
Contents
[show]Accessing Wikia.css
Edit
An entry point to the editing interface can be found on Admin Dashboard. Browsing to Mediawiki:Wikia.css and clicking 'Edit' will also route you to the interface, which is located at Special:CSS.
Features
Edit
Special:CSS comes with a variety of features, including:
- Line numbering
- Active syntax highlighting to improve readability
Active error checking ("linting"):
- As you type code, the page will let you know about any errors in the syntax that might have occurred
- An icon will appear for any line with the
!importantdeclaration - Do note that not every error must be solved - CSS technology is ever evolving, and browsers do not all behave identically: some messages may not require action
A sidebar of useful links:
- CSS update blog posts - each week we release notes on upcoming CSS changes that might affect your wiki's customizations, in the Technical Update blog posts.
- Related help and information pages, such as the Community Central Forum Board.
Common errors
Edit
As you type, the page will check your CSS for any errors. Not all errors it reports need to be actioned.
| Error | Explanation |
|---|---|
@import prevent parallel downloads, use <link> instead
| Link tags are normally used to import CSS. However, MediaWiki does not support adding your own link tags without use of javascript, so this error can normally be ignored. |
Expected X but found Y
| This means you have entered an invalid value for a property. For example, in 'color: foo;' foo is an invalid value for the color property because it is not a color.
|
Use of !important
| !important should be avoided in CSS as it makes them harder to maintain at a later date. It also makes it harder for users to override in their personal CSS. Most of the time, using the correct selector will help you avoid using !important.
|
Further Help and Feedback
Edit
- Browse and search other help pages at Help:Contents
- Check Help:Wikia Community Central for sources of further help and support
- Check Help:Contacting Wikia for how to report any errors or unclear steps in this article
| | |||
|---|---|---|---|---|
|