Template:Tltt: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SebastianHelm
(let's see if i can add the pipe this way)
meta>SebastianHelm
(can add any number of parameters now)
Line 12: Line 12:


In addition, the template can add one parameters as follows:
In addition, the template can add one parameters as follows:
* <nowiki>{{tltt2|unblock|par=Reason for unblock|Request to be unblocked}}</nowiki> or, equivalently
* <nowiki>{{tltt|unblock|par=Reason for unblock|Request to be unblocked}}</nowiki> or, equivalently
* <nowiki>{{tltt2|unblock|Request to be unblocked|par=Reason for unblock}}</nowiki>
* <nowiki>{{tltt|unblock|Request to be unblocked|par=Reason for unblock}}</nowiki>
 
If you want to include more than one parameter, separate them with "&#124;" (without the quotes), which will render as a pipe symbol. Example:
 
* <nowiki>{{tltt|some template|description of this template|par=par1&#124;par2}}</nowiki> will render as:<br> {{tltt|some template|description of this template|par=par1&#124;par2}}
 


===Known problems===
===Known problems===

Revision as of 04:26, 14 February 2007

{{[[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.