Template:Tltt
From MansunWiki
Revision as of 12:39, 16 July 2015 by DarkMavis (Talk | contribs) (Created page with "<code title="{{{2}}}"><!-- -->{{[[Template:{{{1}}}|{{{1}}}]]<!-- -->{{#if:{{{par|}}} |{{!}}{{{par}}}}}<!-- -->{{#if:{{{par2|}}} |{{!}}{{{par2}}}}}}...")
{{[[Template:{{{1}}}|{{{1}}}]]}}
This documentation is transcluded from Template:Tltt/doc. (edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Contents
[hide]Meaning
tltt stands for "template link with tooltip". "tt" also can stand for the <tt> tag that surrounds it.
Usage
Like {{tl}}
(see documentation), with an additional parameter for the tooltip. This will be displayed when user hovers over the curly braces. (Try it right here: {{Any template}}
!)
The template is meant to be used in pages such as {{TestTemplates}}
, where it is desirable to provide a bit more explanation for a template than what its name reveals.
Differently from {{tl}}, the font is set in monospace, so that all text appears in non-proportional font.
The template also permits up to two named parameters, like so:
- {{tltt|Template name|Tooltip text|par=First parameter=1|par2=Second parameter=2}}
Produces:
{{Template name|First parameter=1|Second parameter=2}}
Known problems
- On some systems, the text only displays when user hovers over the curly braces, not over the link itself.
- It is not possible to include double quotes in the text. Use single quotes instead.