Template:Hover
From Scouts Canada Wiki
Calling this template will allow you to customize the hover text on links.
Params
1 - The text to be displayed on the screen
2 - The text to be displayed when the user hovers over
3 - The title of a page to link to
hideLink - If a value is set for hideLink a link will not be generated
Usage
{{hover|display Text|Hover text|link_address}}
Adds a title to the selected text, which can be viewed in most browsers by holding the mouse cursor over the underlined text.
Based on
{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{2}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{1}}}</span>]]|<span title="{{{2}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{1}}}</span>}}
Draft
{{{4|{{{3}}} }}}<span title="{{{2}}}" style="border-bottom:1px dotted">{{{1}}}</span>{{{4|]]}}}
If the Extension:ParserFunctions was installed the following could be used to add a link optionally
{{#ifeq:{{{3|a}}}|a|<span title="{{{2}}}" {{#ifeq:{{{4|dotted}}}|none||style="border-bottom:1px dotted"}}>{{{1}}}</span>|[[{{{3}}}|<span title="{{{2}}}" {{#ifeq:{{{4|dotted}}}|none||style="border-bottom:1px dotted"}}>]]}}