WikilyWIKILY
All games20 Wikis · pick your game
Menu

Documentation

Wiki CSS and Sidebar CSS

Updated 2026-09-29

Per-element rules are perfect for one-offs. The moment you want the same look on many elements, a central stylesheet is the answer: define it once, apply it by name everywhere.

Two stylesheets, two jobs

Wiki CSSEvery page and every block. Open Manage › Theme › Custom CSS, then edit the wiki.css tab.
Sidebar CSSNavigation rows, headings and the current-page marker. Edit the sidebar.css tab in the same editor, or open Theme › Sidebar › CSS.

Both take normal CSS with selectors and braces, like .gold-frame { border: 2px solid gold; }. This is the one place you write full rules rather than bare pairs.

Shared classes: define once, reuse anywhere

The bridge is the CSS class field at the bottom of every Custom CSS panel. Name an element, define that class centrally, and every element carrying the name updates together.

The CSS class field suggests only classes that actually exist in your central CSS. Click one to apply or remove it, or jump straight into the stylesheet editor.
  1. Open an element Custom CSS section and click the CSS class field.
  2. The dropdown lists every class that actually exists in the matching stylesheet.
  3. Click a class to apply it, click again to remove it. Several can stack.
  4. No class yet? Edit wiki CSS opens the Theme page. Save any page edits first.

The suggestions are never guesses. Page blocks list Wiki CSS classes; sidebar elements list Sidebar CSS classes. An empty dropdown means the stylesheet has no classes yet.

The code editor

Both stylesheets are in one editor on Theme › Custom CSS, with a wiki.css tab and a sidebar.css tab, line numbers and syntax colours. The preview stays visible while you scroll and edit the settings. Use Article or Overview to check different content, and Desktop or Phone to check both screen layouts.

Click Save theme to publish both sheets with your colour, font and background changes and your sidebar entries.

IndentTab adds indentation in the code editor.
Leave the editorShift+Tab moves back. Press Escape, then Tab to move forward.
Revert allReturns to the last loaded or saved theme and stylesheets. Reset section does the same for one section.
Copy theme codeUnder Import & export. Exports the theme and both stylesheets together. Importing changes only the draft until you save.
Live previewCompare saved temporarily shows the saved look without discarding your draft. Check a real page after publishing page-specific selectors.
Rules for one blockStyle an element
The overviewCustom CSS
Building the sidebarNavigation and the home page