Template:Tt: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Tooltipped element" | "label": "Tooltipped element", | ||
"type": "string" | |||
}, | }, | ||
"2": { | "2": { | ||
Line 29: | Line 30: | ||
"pos": { | "pos": { | ||
"label": "Position", | "label": "Position", | ||
"type": "string" | "type": "string", | ||
"default": "auto" | |||
}, | }, | ||
"line": { | "line": { | ||
"label": "Line" | "label": "Line", | ||
"type": "boolean", | |||
"default": "true" | |||
}, | }, | ||
"style": { | "style": { | ||
"label": "Style" | "label": "Style", | ||
"type": "string" | |||
}, | }, | ||
"align": { | "align": { | ||
"label": "Align" | "label": "Align", | ||
"default": "left" | |||
} | } | ||
}, | }, |
Revision as of 22:47, 10 September 2022
Usage & Examples
{{tt|Normal text|Tooltip text}}
Tooltip text
Normal text
{{tt|Normal text without underline|Tooltip text|line=false}}
Tooltip text
Normal text without underline
{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}
Tooltip
Text
Text
Tooltip text with horizontal rule
{{tt|{{tt|Nested tooltip|Bottom text}}|Top text}}
Top text
Bottom text
Nested tooltip
{{tt|left-aligned text|Tooltip text|text-align=left}}
Tooltip text
left-aligned text
A template to spawn tooltipped content.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Tooltipped element | 1 | no description | String | optional |
Tooltip content | 2 | no description | String | optional |
Position | pos | no description
| String | optional |
Line | line | no description
| Boolean | optional |
Style | style | no description | String | optional |
Align | align | no description
| Unknown | optional |