Template:Hover

From Abulafia Random Generator Wiki
Jump to navigation Jump to search

From Wikiversity.

This template takes two parameters (link=yes/no and dotted=yes/no), and creates underlined text with a hover box for many modern browsers supporting CSS. Using mouse-over effects on wiki text can improve usability.

Examples

Without Template:Hover

Hover over me.

Syntax: <span title="Hello, how are you?" >Hover over me.</span>

Using: Template:Hover

The default is a dotted underline

Hover here

Syntax: {{Hover|This is mouse-over text|Hover here}}

Main Page (with link)

Syntax: {{Hover|link=yes|This link will take you to the Main page|Main page}}

To not have a dotted underline, add dotted=no

Hover here

Syntax: {{Hover|dotted=no|This is mouse-over text|Hover here}}

Main Page (with link)

Syntax: {{Hover|link=yes|dotted=no|This link will take you to the Main Page|Main Page}}

To use a link alias:

Link Alias

Syntax: [[Main Page|<span title="mouse-over text">Link Alias</span>]]