Teamplaid:Tltt
{{[[Teamplaid:{{{1}}}|{{{1}}}]]}}
Meaning
[deasaich]Tltt stands for "template link with tooltip". "Tt" also stood for the <Tt>...</Tt>
tags that formerly surrounded it (for compliance with HTML5 these were replaced with <kbd>...</kbd>
, which also displays a monospaced font).
Ùsaid - Usage
[deasaich]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
[deasaich]- 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.
Faic cuideachd - Also see
- {{Tltt2}} - allows one sample parameter
- {{Tltt/tip}} - inform user that tooltips can be displayed
- {{Tltts}} - where subst: is required
The above documentation is transcluded from Teamplaid:Tltt/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |