Template:Tooltip/doc: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
(Created page with "{{documentation |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.'' |<code><nowiki>{{tooltip|<TEXT>|<TOOLTIP_TEXT>}}</nowiki></code> |Typing <code><nowiki>{{tooltip|Gladiator Money|...and this is where the text is hidin...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|<code><nowiki>{{tooltip|<TEXT>|<TOOLTIP_TEXT>}}</nowiki></code>
|<code><nowiki>{{tooltip|<TEXT>|<TOOLTIP_TEXT>}}</nowiki></code>
|Typing <code><nowiki>{{tooltip|Gladiator Money|...and this is where the text is hiding.}}</nowiki></code> produces this: {{tooltip|Gladiator Money|...and this is where the text is hiding.}}<br>
|Typing <code><nowiki>{{tooltip|Gladiator Money|...and this is where the text is hiding.}}</nowiki></code> produces this: {{tooltip|Gladiator Money|...and this is where the text is hiding.}}<br>
Other templates can be used inside a tooltip template, therefore <code><nowiki>{{tooltip|{{color|This colorful bold text.|orange}}|...is a beauty to look at, ain't it?!}}</nowiki></code><br>...produces this: {{tooltip|{{color|'''This colorful bold text.'''|orange}}|...is a beauty to look at, ain't it?!}}}}
Typing <code><nowiki>{{tooltip|{{color|This colorful bold text.|orange}}|...is a beauty to look at, ain't it?!}}</nowiki></code> produces this: {{tooltip|{{color|'''This is a color template.'''|orange}}|...INSIDE a tooltip template. Neat, eh?}}}}<noinclude>[[Category:Doc_templates]]</noinclude>
</noinclude>[[Category:Doc_templates]]</noinclude>

Latest revision as of 01:26, 22 November 2021

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.