(Added documentation) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
Arguments | |||
|text = Text or files (including images) you want to have a hovering tooltip. | |||
|hovertext = The text you wish to appear on mouse hover | |||
|dotted = Should the text be underlined? (yes/no) (Optional) | |||
</pre> | </pre> | ||
== | ==Examples== | ||
<pre>{{Tooltip|text=Test|hovertext=Hovertext}}</pre> | <pre>{{Tooltip|text=Test|hovertext=Hovertext}}</pre> | ||
{{Tooltip|text=Text|hovertext=Hovertext}} | {{Tooltip|text=Text|hovertext=Hovertext}} | ||
<pre>{{Tooltip|text=[[File:Umvc3_spencer_face.jpg]]|hovertext=The face of a man with a bionic arm.|dotted=no}}</pre> | |||
{{Tooltip|text=[[File:Umvc3_spencer_face.jpg]]|hovertext=The face of a man with a bionic arm.|dotted=no}} | |||
{{doc/end}} | {{doc/end}} |
Latest revision as of 19:54, 1 August 2022
Purpose
Creates a popup tooltip on mouse hover.
Usage
Arguments |text = Text or files (including images) you want to have a hovering tooltip. |hovertext = The text you wish to appear on mouse hover |dotted = Should the text be underlined? (yes/no) (Optional)
Examples
{{Tooltip|text=Test|hovertext=Hovertext}}
Text
{{Tooltip|text=[[File:Umvc3_spencer_face.jpg]]|hovertext=The face of a man with a bionic arm.|dotted=no}}
The above documentation is transcluded from Template:Tooltip/Documentation/doc. (edit | history)