Template:Tooltip
This template is used to generate a tooltip that will appear when hovering over marked text. Note that tooltips are generally not usable on mobile devices, so they should not be used to contain important information. By default, the marked text will appear with a dotted underline and special cursor.
Usage
{{Tooltip|inline text|hover text|abbr=...|dotted=...|class=...|style=...|id=...}}
Parameters
|1=— (required) the text to be explained; rendered in-line as normal text.|2=— (required) the text that will appear in the tooltip. Note that this cannot contain any HTML or wiki markup.|abbr=— set this toyesif the tooltip is to explain an acronym, initialism, or abbreviation. This will change the<span>tag to an<abbr>tag for better semantics.|dotted=— set this tonoto disable the dotted underlining and special cursor.|class=— one or more CSS classes to add to the<span>tag that contains the text.|style=— CSS styles to apply to the regular text.|id=— an HTML ID to add to the<span>tag that contains the text.
Examples
{{tooltip|Series|Certain items appear in the Cattlelog under a specific Series and Issue.}}→ Series{{tooltip|''propAcc''|The base accuracy of a gag}}→ propAcc{{tooltip|RNG|Random number generator|abbr=yes}}→ RNG{{tooltip|Show As Offline|Prevents you from being shown as Online to your friends until you've whispered them.|dotted=no}}→ Show As Offline
TemplateData
Generates a tooltip that will display when the text is hovered over.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | The text to explain; rendered in-line as normal text. | Content | required |
| Tooltip | 2 | The text that will display in the tooltip popup. No HTML or wiki markup is allowed. | String | required |
| Abbreviation? | abbr | Set this to "yes" if the tooltip is to explain an acronym, initialism, or abbreviation.
| Boolean | suggested |
| Dotted | dotted | Whether the text should be rendered with a dotted underline. Also applies a "help" cursor when the text is hovered over.
| Boolean | optional |
| Class | class | Any CSS classes (space-separated) to add to the <span> tag that contains the text. | String | optional |
| ID | id | An HTML ID to apply to the <span> tag that contains the text. | String | optional |
| Style | style | CSS styles to apply to the inline text. | String | optional |