Template:Tt/doc

Revision as of 16:48, 29 August 2025 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page for Tt.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Tt, a script written in Lua.
This template uses CSS found at MediaWiki:Tooltip.css (edit | hist).
This template uses MediaWiki:Gadget-Tooltip.js (edit | hist), a script written in JavaScript.

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|Xiao|is a bird|link = 1}} yields: XiaoXiaoXiaoXiaoTooltip for XiaoXiao
{{tt|Xiao|is a bird|link = Alatus}} yields: XiaoXiaoXiaoXiaoTooltip for XiaoXiao

Template Data

Adds a simple text tooltip to text.

Template parameters

ParameterDescriptionTypeStatus
Text1

Text to show. Can include links, but be careful if you don't supply tip text.

Stringrequired
Title2

Text for tooltip. Don't use double quotes, links or HTML tags.

Stringrequired
Linklink

Link for display text. Set as 1 to link display text, or enter the custom page to link.

Stringoptional