Template:Tt/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
{{Lua}} | {{Lua}} | ||
{{CSS|Tooltip}} | {{CSS|Gadget-Tooltip}} | ||
{{JS|Gadget-Tooltip}} | {{JS|Gadget-Tooltip}} | ||
Adds a simple text tooltip to text. | Adds a simple text tooltip to text. | ||
Latest revision as of 21:16, 13 July 2026
This is the documentation page for Tt. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Adds a simple text tooltip to text.
Syntax
{{tt|text|tiptext|link = 1/page name|noline = 1}}
- 1 — Text to show. Can include links, but be careful if you don't supply tip text.
- 2 — Text for tooltip. Don't use links or HTML tags.
- link — Link for display text. Set as 1 to link to 1, or enter the custom page to link.
Examples
{{tt|Some text|A tooltip for the text.}} yields: Some textSome text
{{tt|Kiana|is a bird|link = 1}} yields: KianaKianaKianaKiana Tooltip for KianaKianaⓘ
{{tt|Kiana Kaslana|is a bird|link = Kiana}} yields: Kiana KaslanaKiana KaslanaKiana KaslanaKiana Kaslana Tooltip for Kiana KaslanaKiana Kaslanaⓘ
Template Data
Adds a simple text tooltip to text.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | Text to show. Can include links, but be careful if you don't supply tip text. | String | required |
| Title | 2 | Text for tooltip. Don't use double quotes, links or HTML tags. | String | required |
| Link | link | Link for display text. Set as 1 to link display text, or enter the custom page to link. | String | optional |