Template:Tt: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Created page with "<onlyinclude><span class="tooltip" title="{{{1|}}}">{{{2|<sup>?</sup>}}}</span></onlyinclude> ==Purpose== This template formats enclosed text with a '''tooltip''', which is a...")
 
mNo edit summary
 
Line 1: Line 1:
<onlyinclude><span class="tooltip" title="{{{1|}}}">{{{2|<sup>?</sup>}}}</span></onlyinclude>
<onlyinclude><span class="explain" title="{{{1|}}}">{{{2|<sup>?</sup>}}}</span></onlyinclude>


==Purpose==
==Purpose==

Latest revision as of 19:58, July 28, 2012

?

Purpose

This template formats enclosed text with a tooltip, which is a brief description that appears when hovering over the text. It is useful for abbreviations and brief annotations where a note or reference link isn't appropriate.

Usage

{{Tt| hover text | displayed text }}

Fore example, the above would produce displayed text. (Hover over "displayed text" to see the tooltip "hover text".)

If the displayed text is omitted and the hover text is passed as the only parameter, a superscript question mark (?) serves as a target to display the hidden text.

{{Tt|hover text}}?