|
|
Line 1: |
Line 1: |
| <includeonly><div class="tooltip" {{ #ifeq: {{{line|true}}} | false | style="border-bottom: 0;" }}>{{{1}}}<span class="tooltiptext" style="{{#if:{{{text-align|}}}|text-align:{{{text-align|default}}};}}">{{{2}}}</span></div></includeonly><noinclude>== What this is == | | <includeonly><span class="explain" title="{{{2}}}">{{{1}}}</span></includeonly> |
| A template to write tooltips!
| | <noinclude>{{Doc}}</noinclude> |
| | |
| | |
| == Usage & Examples ==
| |
| <code><nowiki>{{tt|Normal text|Tooltip text}}</nowiki></code>
| |
| {{tt|Normal text|Tooltip text}}
| |
| <br>
| |
| <code><nowiki>{{tt|Normal text without underline|Tooltip text|line=false}}</nowiki></code>
| |
| {{tt|Normal text without underline|Tooltip text|line=false}}
| |
| <br>
| |
| <code><nowiki>{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}</nowiki></code>
| |
| {{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}} | |
| <br>
| |
| <code><nowiki>{{tt|{{tt|Nested tooltip|Bottom text}}|Top text}}</nowiki></code>
| |
| {{tt|{{tt|Nested tooltip|Bottom text}}|Top text}}
| |
| <br>
| |
| <code><nowiki>{{tt|left-aligned text|Tooltip text|text-align=left}}</nowiki></code>
| |
| {{tt|left-aligned text|Tooltip text|text-align=left}}
| |
| | |
| [[Category:Code templates]][[Category:Templates]]
| |
| </noinclude> | |
Latest revision as of 15:09, 7 January 2018
Warning: This
template is deprecated. Please use
Template:Tt instead.
This template is used for tooltips which appear when hovering over a specific piece of text.
Usage:
{{Tooltip|text|tooltip text}}
Example:
Text