Template:Tooltip: Difference between revisions
Jump to navigation
Jump to search
Let's see, if it works now Tag: Reverted |
m Changed div to span to try something Tag: Manual revert |
||
Line 1: | Line 1: | ||
<includeonly><span class="tooltip">{{{1|{{{text|}}}}}}< | <includeonly><span class="tooltip">{{{1|{{{text|}}}}}}<span class="tooltipcontainer">{{TooltipBox|{{{2|{{{description|}}}}}}}}</span></span></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 19:23, 11 December 2024
This template provides a text with a hover-event to show additional information.
Parameters[edit]
Parameter name | Required? | Default value | Description |
---|---|---|---|
text |
Yes | (n/a) | Defines the text to be shown inline. |
description |
Yes | (n/a) | The text inside the box when the text gets hovered. |
Usage[edit]
See the template's testcases:
Parameters by index | |
---|---|
Wiki code | {{Tooltip|Word|Some additional text}} |
Main version | WordSome additional text |
Sandbox version | Word Some additional text
|
Parameters by name | |
---|---|
Wiki code | {{Tooltip|text=Words in text|description=Some additional text}} |
Main version | Words in textSome additional text |
Sandbox version | Words in text Some additional text
|
Testing the tooltip within a list | |
---|---|
Wiki code | * Item 1 at the beginning * Item 2 with {{Tooltip|a tooltip|Some additional text}} in text * Item 3 at the end |
Main version |
|
Sandbox version |
|
The above documentation is transcluded from Template:Tooltip/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |