From OniGalore
Revision as of 22:41, 3 December 2023 by Iritscen (talk | contribs) (divhides hate this one weird "center"!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Hover template is for popping up text or an image under the cursor when some text is hovered over by the reader. The text which should be hovered over is given first as an unnamed parameter. Then you pass either the parameter "text" with the desired popup text or "image" with the name of an image (no "[[Image:__]]" wrapper, just the file name). You cannot use both parameters. You can also control the padding with "padding" (specify the units, e.g. "5px") and background color with "bgcolor" (e.g. "#0C0C0C" or "purple").

You have the following additional options if providing a text popup:

  • Specifying a "width" parameter (with the unit, e.g. "50px") will determine the width of the box within which your popup text will be wrapped.

You have the following additional options if providing an image popup:

  • You can specify "width" (with the unit, e.g. "500px"). This allows you to scale the image up or down.
  • You can add a "link" parameter and the image will be clickable, leading to the page of your choice.

Pass a "secret" parameter with value "yes" to avoid the underlining that indicates the presence of a hover text/image.


{{Hover|Blam!|text=Oni crashed|bgcolor=lightgray}}
Blam!Oni crashed