Template:TooltipInline: Difference between revisions

From Nova Sector 13
Jump to navigation Jump to search
(For the nonrecursive, inline uses.)
 
m (TemplateData is a real thing)
Line 19: Line 19:
For some reason, recursive tooltips don't love span, choosing to dump everything after the tooltip into the deepest tooltip instead of... fully after the top-most tooltip.
For some reason, recursive tooltips don't love span, choosing to dump everything after the tooltip into the deepest tooltip instead of... fully after the top-most tooltip.


[[Category:Templates]][[Category:Maintenance templates]][[Category:Misc Styling Templates]]</noinclude>
[[Category:Templates]][[Category:Maintenance templates]][[Category:Misc Styling Templates]]<templatedata>
{
"params": {
"Display Text": {
"aliases": [
"text"
],
"label": "Display Text",
"description": "The text that is displayed on the page. It will appear with a dotted line underneath, and the user will mouse over it to expand a tooltip.",
"example": "Kessler Syndrome",
"type": "string",
"default": "word",
"required": true
},
"Tooltip": {
"aliases": [
"tooltip",
"box"
],
"label": "Tooltip",
"description": "The text that appears in a gray box when the user hovers over the display text. Links are functional, but this template should not be used recursively.",
"type": "content",
"suggestedvalues": [
"Tooltip"
],
"default": "Tooltip Text",
"required": true
}
},
"paramOrder": [
"Display Text",
"Tooltip"
],
"description": "An in-line tooltip that displays a short text with a dotted line underneath, which when moused over, displays a gray box overtop the text, with its own tooltip text. Should not be used recursively, as Span is not a very stable keyword."
}
</templatedata></noinclude>

Revision as of 00:58, 21 June 2024


TooltipInline should not be used recursively.

Test Cases

Base CaseThis is the simplest test of a Tooltip.

Blank tooltip: EMPTY TOOLTIP ALERTEMPTY TOOLTIP TEXT ALERT


Ideally, this paragraph should appear as a single paragraph, where the next bit is a multi word tooltipwith punctuation? with wizardry?, with the comma directly adjacent to the words. This part should still be on the same line.


For some reason, recursive tooltips don't love span, choosing to dump everything after the tooltip into the deepest tooltip instead of... fully after the top-most tooltip.

An in-line tooltip that displays a short text with a dotted line underneath, which when moused over, displays a gray box overtop the text, with its own tooltip text. Should not be used recursively, as Span is not a very stable keyword.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Display TextDisplay Text text

The text that is displayed on the page. It will appear with a dotted line underneath, and the user will mouse over it to expand a tooltip.

Default
word
Example
Kessler Syndrome
Stringrequired
TooltipTooltip tooltip box

The text that appears in a gray box when the user hovers over the display text. Links are functional, but this template should not be used recursively.

Suggested values
Tooltip
Default
Tooltip Text
Contentrequired