Template:Tooltip: Difference between revisions
Jump to navigation
Jump to search
m (Template > Shorthand Template) |
(revamp tooltip styles) |
||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><span class="qud-tooltip mobile-visible">{{#if: {{{2|}}} |<span class="qud-tooltip-ulabel">{{{2}}}</span>|<sup>?</sup>}}<span class="qud-tooltip-text {{#switch: {{{3|extend-line}}} | centered = centered-content | extend-line }}">{{{1}}}</span></span></includeonly> | ||
<noinclude>[[Category:Shorthand Templates]] | <noinclude>[[Category:Shorthand Templates]] | ||
Usage: <code><nowiki>{{Tooltip |(hover text)|(description text to be hovered over)}}</nowiki></code> | Usage: <code><nowiki>{{Tooltip |(hover text)|(description text to be hovered over)}}</nowiki></code> | ||
Example 1 - description text specified: {{Tooltip |(hover text)| | {| class="wikitable" | ||
Example 2 - no description text specified:{{Tooltip |(hover text)}}</noinclude> | ! Parameter | ||
! Required? | |||
! Description | |||
|- | |||
| 1 | |||
| required | |||
| hover tooltip text | |||
|- | |||
| 2 | |||
| optional | |||
| description to be hovered over. If not specified, a circled question mark symbol will be used instead of text. | |||
|- | |||
| 3 | |||
| optional | |||
| specify <code>centered</code> for this parameter to make the tooltip centered over the description/qmark. This option also forces the tooltip content to be fixed-width (120px) | |||
|} | |||
Example 1 - description text specified: {{Tooltip |(hover text)|text}} | |||
Example 2 - no description text specified: {{Tooltip |(hover text)}} | |||
Example 3 - centered content: {{Tooltip|(hover text)|text|centered}} | |||
Example 4 - centered content w/ qmark: {{Tooltip|(hover text)||centered}} | |||
</noinclude> |