Template:Tooltip

Revision as of 01:13, 11 August 2025 by HyperNervie (talk | contribs) (Escape markups in tooltip; Add documentation)
Template-info.svg Template Documentation

This template adds a dotted underline and a tooltip (passed as {{{2}}}) to a piece of text (passed as {{{1}}}). On desktop view, the tooltip shows when cursor hovers on the text. On mobile view, tapping on the text changes itself to the tooltip; tapping again changes it back to the original text.

Any Wikitext and HTML markups (e.g. ''italic'', <br>) in tooltip are escaped. To insert newlines, use the character entity reference &#10;, &#xA;, &#xa; or &NewLine;.

Examples:

  • {{tt|Text|Tooltip}}Text
  • {{tt|Text|Tool<br>Tip}}Text
  • {{tt|Text|Tool&#10;Tip}}Text