Template:Tooltip/doc: Difference between revisions
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 |
||
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?!}}}} | 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?!}}}}<noinclude>[[Category:Doc_templates]]</noinclude> | ||
< |
Revision as of 00:24, 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
Other templates can be used inside a tooltip template, therefore {{tooltip|{{color|This colorful bold text.|orange}}|...is a beauty to look at, ain't it?!}}
...produces this: This colorful bold text.