Template:Tooltip: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--<abbr class="basic-tooltip" style="border-bottom:1px dotted" title="{{#tag:nowiki|{{{2}}}}}">{{{1}}}</abbr>--><span style="border-bottom: 1px dotted;" title="{{{2}}}">{{{1}}}</span><noinclude>
<span id="basic-tooltip" style="border-bottom: 1px dotted;" title="{{{2}}}">{{{1}}}</span><noinclude>{{Tooltip/doc}}[[Category:Templates]]</noinclude>
<br />
 
This template creates dotted underlined text that provides more text when the cursor hovers over it.<br />
The format is used like this: <code><nowiki>{{tooltip|display text|tooltip text}}</nowiki></code>.<br />
'''''Note: This template may not work with some text formats. In that case, a different method of adding a tooltip will need to be used.'''''
[[Category:Templates]]</noinclude>

Latest revision as of 00:24, 22 November 2021

{{{1}}}

Template Documentation

Description

This template allows text to provide a tooltip. To be more specific, text will have a dotted underline, and when the mouse hovers over it, it will display even more text. Note: This template may not work with some text formats. In that case, a different method of adding a tooltip will need to be used.

Syntax

{{tooltip|<TEXT>|<TOOLTIP_TEXT>}}

Examples

Typing {{tooltip|Gladiator Money|...and this is where the text is hiding.}} produces this: Gladiator Money
Typing {{tooltip|{{color|This colorful bold text.|orange}}|...is a beauty to look at, ain't it?!}} produces this: This is a color template.