Difference between revisions of "Template:Hover"

From questden
(Testing porting over a template for mouseover text)
 
(Adding source)
 
Line 1: Line 1:
 
<noinclude>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.
 
<noinclude>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.
 +
 +
Ripped off wholesale from [https://en.wikiversity.org/wiki/Help:Mouse-over here].
  
 
</noinclude><includeonly>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>]]|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
 
</noinclude><includeonly>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>]]|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 20:21, 13 March 2016

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.

Ripped off wholesale from here.