From The Mana World
(Creating template to allow creating a text in the box that appears in the mouse-over effect)
 
m (Fixed newline)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>This template allows creating a text in the box of the mouse-over effect. Check http://en.wikiversity.org/wiki/Help:Mouse-over and http://en.wikiversity.org/wiki/Template:H:title
<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>
 
{{Template:{{PAGENAME}}/doc}}
It 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>
[[Category:General Template]]
<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>

Latest revision as of 23:37, 14 April 2015

50px-Template-info.png Template documentation:

This template allows creating a text in the box of the mouse-over effect. Check http://en.wikiversity.org/wiki/Help:Mouse-over and http://en.wikiversity.org/wiki/Template:H:title. It takes two parameters (link=yes/no and dotted=yes/no), and creates underlined text with a hover box for many modern browsers supporting CSS.


Usage:

Copy the following code into your page:

{{H:title|link=no|dotted=yes|This is the mouse-over text|Hover here}}

This will create:
Hover here.