Template:Tooltip: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><abbr title="{{{1}}}">{{{2}}}</abbr></includeonly> <noinclude>Category:Templates Usage: <code><nowiki>{{Tooltip |(hover text)|(text to be hovered over)}}</now...")
 
(Add a default circled question mark as the hover element)
Line 1: Line 1:
<includeonly><abbr title="{{{1}}}">{{{2}}}</abbr></includeonly>
<includeonly><abbr title="{{{1}}}">{{{2|<sup><span style="display:inline-block;width:1.8ex;height:1.8ex;line-height:1.8ex;border-radius:1.2ex;margin-left:4px;border:1px solid #cccccc;text-align:center;padding:1px;font-size:1.8ex;font-style:normal;">?</span></sup>}}}</abbr></includeonly>
<noinclude>[[Category:Templates]]
<noinclude>[[Category:Templates]]
Usage: <code><nowiki>{{Tooltip |(hover text)|(text to be hovered over)}}</nowiki></code>
Usage: <code><nowiki>{{Tooltip |(hover text)|(description text to be hovered over)}}</nowiki></code>


{{Tooltip |(hover text)|(text to be hovered over)}}</noinclude>
Example 1 - description text specified: {{Tooltip |(hover text)|(example description text)}}
Example 2 - no description text specified:{{Tooltip |(hover text)}}</noinclude>

Revision as of 20:09, 26 June 2019

Usage: {{Tooltip |(hover text)|(description text to be hovered over)}}

Example 1 - description text specified: (example description text)

Example 2 - no description text specified:?