Template:Hover info: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Fixed the issue)
(Fixed the issue)
Line 1: Line 1:
<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>
<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>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.


'''Examples:'''
'''Examples:'''

Revision as of 12:10, 2 August 2018

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.

Examples:

Default

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

Result: Hover here


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

Result: Main_Page


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

Result: Hover here


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

Result: Main_Page (with link)


Note: Who ever made it that the (with link) right there doesn't work how I wanted it to be, could you please fix it and tell me what the issue was because, I was trying to find out, please help!!