Template:HoverText/Doc

< Template:HoverText
  • This is the documentation for Template:HoverText. It is transcluded into the template page.


Usage[edit]

Adds a title to the provided text, which can be viewed in most browsers by holding the mouse cursor over the underlined text.

Parameters[edit]

  • dotted: Set to no to suppress the dotted underline. Other values will show the underline.
  • color: The color for the dotted underline. Default is #000: [        ]
    This can be any valid CSS color value, such as named color or HTML hex.
  • cursor: Set to yes to change the cursor to Help when the text is hovered on.
  • url: The address for a page when the display should be a link.
  • type: If url is provided, this value indicates what type of address it is.
    Valid values are:
    • page: An interwiki page link. This is the default when url is provided.
    • web: An external website address.
  • Parameter 1: The text to be shown when the user hovers over the display text.
  • Parameter 2: This can be one of two values:
    1. The actual text to be displayed on the page.
    2. The display text for a link.

Syntax[edit]

{{HoverText|dotted=[yes|no]|color=|url=|type=|hover-title-text|display-text}}
{{HoverText
  |dotted=[yes|no]
  |color=
  |cursor=
  |url=
  |type=
  |hover-title-text
  |display-text
}}

Examples[edit]

Simple Text[edit]

Code:

{{HoverText|color=#c0c0c0|This is what you'll see when hovering over the text.|Put your cursor over me!}}

Output:

  • Put your cursor over me!

Link (Internal)[edit]

Code:

{{HoverText|color=#00FF00|cursor=yes|url=Main Page|type=page|Go to the main page.|Wiki Home}}

Output:

Link (External)[edit]

Code:

{{HoverText|color=#FF0000|url=http://www.google.com|type=web|Search the web.|Google}}

Output:

This article uses material from the "Template:HoverText/Doc" article on FFXIclopedia and is licensed under the CC-BY-SA License.