Template:Tt/doc: Difference between revisions
Jump to navigation
Jump to search
ReinDevildom (talk | contribs) Created page with "{{Documentation/Header}} {{Lua}} {{CSS|Tooltip}} {{JS|Gadget-Tooltip}} Adds a simple text tooltip to text. ==Syntax== {{T|tt|v1=text|v2=tiptext|P3=link=1/((page name))|p4=noline=1}} * {{F|1}} — Text to show. Can include links, but be careful if you don't supply tip text. * {{F|2}} — Text for tooltip. Don't use links or HTML tags. * {{F|link}} — Link for display text. Set as 1 to link to {{F|1}}, or enter the custom page to link. ==Examples== {{T|tt|So..." |
No edit summary |
||
| Line 13: | Line 13: | ||
==Examples== | ==Examples== | ||
{{T|tt|Some text|A tooltip for the text.|_Y_=1}}<br> | {{T|tt|Some text|A tooltip for the text.|_Y_=1}}<br> | ||
{{T|tt| | {{T|tt|Kiana|is a bird|p3=link=1|_Y_=1}}<br> | ||
{{T|tt| | {{T|tt|Kiana Kaslana|is a bird|p3=link=Kiana|_Y_=1}} | ||
==Template Data== | ==Template Data== | ||
Revision as of 04:56, 4 September 2025
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 |