Template:Tltt

From MINR.ORG WIKI
Revision as of 17:09, 15 February 2007 by Gracenotes (talk) (use character substitution instead; also, more direct span tag. *crosses fingers*)

{{[[Template:{{{1}}}|{{{1}}}]]}}

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: {{tltt}}!)

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}}, it contains a <tt> tag to make all names appear in non-proportional font.

In addition, the template can add one parameters as follows:

  • {{tltt|unblock|par=Reason for unblock|Request to be unblocked}} or, equivalently
  • {{tltt|unblock|Request to be unblocked|par=Reason for unblock}}

If you want to include more than one parameter, separate them with "|" (without the quotes), which will render as a pipe symbol. Example:

  • {{tltt|some template|description of this template|par=par1|par2}} will render as:
    {{some template|par1|par2}}


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.