Difference between revisions of "Template:Tltt"

From MINR.ORG WIKI
(par parameter)
m (26 revisions imported: Import Template Tlx and subtemplates)
 
(14 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<tt><span title="{{{2}}}">{{<span title="{{{2}}}">[[Template:{{{1}}}|{{{1}}}]]{{{par|}}}</span>}}</span></tt><noinclude>
+
<kbd title="{{{2}}}">&#123;&#123;[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{par|}}}|{{!}}{{{par}}}}}{{#if:{{{par2|}}}|{{!}}{{{par2}}}}}&#125;&#125;</kbd><noinclude>
 
+
{{documentation}}
===Meaning===
 
'''tltt''' stands for '''"template link with [[tooltip]]". "tt" also can stand for the <nowiki><tt></nowiki> tag that surrounds it. '''
 
 
 
===Usage===
 
Like {{tltt|tl|A template to refer to templates. Name stands for 'template link'.}} (see [[Template:Tl/doc|documentation]]), with an additional parameter for the tooltip. This will be displayed when user hovers over the curly braces. (Try it right here: {{tltt|tltt|Template link with tooltip}}!)
 
 
 
The template is meant to be used in pages such as {{tltt|TestTemplates|Our list of user warning templates}}, where it is desirable to provide a bit more explanation for a template than what its name reveals.
 
 
 
Differently from <nowiki>{{tl}}</nowiki>, it contains a  <nowiki><tt></nowiki> tag to make all names appear in [[non-proportional font]].
 
 
 
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>{{tltt2|unblock|Request to be unblocked|par=Reason for unblock}}</nowiki>
 
 
 
===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.
 
 
 
[[Category:Internal link templates|Tltt]]
 
[[Category:Miscellaneous templates|Tltt]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:27, 11 August 2017

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

Template documentation[create]