Jump to content

Template:Tooltip/doc

From Toontown Rewritten Wiki

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 to yes if 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 to no to 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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

The text to explain; rendered in-line as normal text.

Contentrequired
Tooltip2

The text that will display in the tooltip popup. No HTML or wiki markup is allowed.

Stringrequired
Abbreviation?abbr

Set this to "yes" if the tooltip is to explain an acronym, initialism, or abbreviation.

Default
no
Booleansuggested
Dotteddotted

Whether the text should be rendered with a dotted underline. Also applies a "help" cursor when the text is hovered over.

Default
yes
Booleanoptional
Classclass

Any CSS classes (space-separated) to add to the <span> tag that contains the text.

Stringoptional
IDid

An HTML ID to apply to the <span> tag that contains the text.

Stringoptional
Stylestyle

CSS styles to apply to the inline text.

Stringoptional


Cookies help us deliver our services. By using our services, you agree to our use of cookies.