Difference between revisions of "Template:Hover"

From Yugipedia
Jump to: navigation, search
(class="explain")
(allow element to be changed from span)
Line 1: Line 1:
<includeonly><span class="explain" title="{{{2|}}}">{{{1|}}}</span></includeonly><noinclude>{{Tlx|hover}} is used to display some normal text which will display some extra info when hovered over.
+
<includeonly><{{ #if: {{{el|}}} | {{{el}}} | span }} class="explain" title="{{{2|}}}">{{{1|}}}</{{ #if: {{{el|}}} | {{{el}}} | span }}></includeonly><noinclude>{{Tlx|hover}} is used to display some normal text which will display some extra info when hovered over.
  
 
==Usage==
 
==Usage==

Revision as of 07:03, 18 March 2015

{{hover}} is used to display some normal text which will display some extra info when hovered over.

Usage

{{hover|text|hovertext}}
  • text is the text displayed on the page. This should be restricted to a single set of words or a name.
  • hovertext is the text that will be displayed when hovered over.
  • hovertext cannot use breaks, wikitext, or the " character without breaking.