Template:Tooltip/Documentation

From Mizuumi Wiki
Jump to navigation Jump to search

Add a tooltip that is shown when hovering over text. Use '
' to add line breaks in tooltip box.

Parameters

|text=
Text displayed.
|hovertext=
Tooltip text displayed when hovered over.

Optional Parameters

|underline=
Line below text. Common parameters include 'none', 'dotted', 'dashed', and 'solid'. (Default:dashed)
|color=
Color of text.
|bgcolor=
Color of background.
Example colors
Name RGB Hexadecimal Result
red rgb(255,0,0) #FF0000 Example
green rgb(0,255,0) #00FF00 Example
blue rgb(0,0,255) #0000FF Example
purple rgb(128,0,128) #800080 Example
grey rgb(128,128,128) #808080 Example
white rgb(255,255,255) #FFFFFF Example

Examples

Example 1

{{Tooltip|text=Example text|hovertext=Example hovertext}}

Output

Example text

Example 2

{{Tooltip|text=Example text|hovertext=Example hovertext|underline=dotted|color=yellow|bgcolor=purple}}

Output

Example text

Reference

https://en.wikipedia.org/w/index.php?title=Template:Hover_title