Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tooltip: Difference between revisions

Template page
m Fix formatting
m text-wrap formatting since unsupported in styles.css
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="cursor:help; border-bottom:1px {{{3}}};" title="{{{2}}}">{{{1}}}</span><noinclude>
<templatestyles src="Tooltip/styles.css" />
<div class="tooltip" style="border-bottom-style:{{{3}}};">{{{1}}}<span class="tooltiptext" style="background-color: var(--color-surface-2); text-wrap: balance;">{{{2}}}</span></div><noinclude>
<templatedata>
<templatedata>
{
{
Line 26: Line 27:
"solid"
"solid"
],
],
"default": "dashed"
"required": true,
"suggested": true,
"autovalue": "dashed"
}
}
},
},

Latest revision as of 06:03, 27 September 2023

{{{1}}}{{{2}}}

Adds text with a tooltip

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Visible Text1

Text you want seen on the page

Stringrequired
Hover Text2

Text you want seen when you hover

Stringrequired
Underline Style3

Style of the line

Suggested values
dashed dotted solid
Auto value
dashed
Stringrequired