Wikia Developers Wiki


823pages on
this wiki
Add New Page
Talk0 Share
Ambox octogon stopIN DEVELOPMENT
Do not try to use this yet, it is unfinished and will likely break repeatedly and change massively.

The HoverContent is a CSS modification that make hover content possible. Hover content is content that popups ones you reached an specific text or image with your pointer.


Add this CSS on your wiki:

@import url("/load.php?mode=articles&articles=w:dev:HoverContent/code.css&only=styles");


Add the following css classes to your wikia:

  • h-link
  • h-content
  • h-note
  • h-note2
  • h-switch
  • h-switch0
  • h-switch1


Add this HTML to your article:

<div class="h-link">image/text
<div class="h-content">Here goes the note that is hidden</div>



This style make it possible to hover text over your other content:

<div class="h-link h-note">image/text
<div class="h-content h-note">Here goes the note that is hidden</div>


Improved style version:

<div class="h-link h-note2">image/text
<div class="h-content h-note2">Here goes the note that is hidden</div>


Add this HTML to your article:

<div class="h-switch"><div class="h-switch0">OFF</div><div class="h-switch1">ON</div>


Under Contruction

Source Mode — The safe way to edit
Source mode is designed to handle complex html codes on an article, allowing to reduce the amount of unwanted code that is sometimes automatically added. Source mode is the best way to edit if you are using templates, or html tags such as <span>, <p>, and <div>. Click "Expand" to learn how to you can switch to this mode and make your code look cleaner.

Location Source

Here are some useful tips:

  • When copy or pasting content, always use source mode!
  • When you see Double Brackets Icon in the edit area of visual mode, it refers to a template, or content with code that is not supported or too complex for the visual editor to handle. In source mode you will see this content in full.
  • When you see Comment Icon in the edit area of visual mode, it refers to a comment. In source mode, you will see this content as <!-- -->.
  • MediaWiki has a special language called wikitext to make editing more easy. This language is supported in visual mode and will not break as easily as html.
  • Some html tags like <u> or <s> are supported in visual mode.
  • You can also enter source mode when creating or replying to threads in a forum, or when using a message wall by clicking Comment Source Modus underneath the edit area.
  • You can edit templates only in source mode.
  • Some html tags are not supported on the source mode such as <input>, <iframe>. These codes will only work on mediaWiki pages when using verbatim to import them on your page.


  • Since it's an css class the css will not work if:
  • You edit an article in the visual editor
  • You visit an article on an mobile platform or when the mobile skin is activated

In both situation the hidden content will be visible on default.

Other usefull css

  • Since the h-link class also support images as an hover. you can combine this css with HoverImageClass for the best results.



Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.