Template:Tltt: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Lkopeter
m (+zh)
m (33 revisions imported)
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<span title="{{{2}}}" style="font-family:monospace;">&#123;&#123;[[Template:{{{1}}}|<span title="{{{2}}}">{{{1}}}</span>]]{{#if:{{{par|}}} |{{!}}{{{par}}}}}{{#if:{{{par2|}}}|{{!}}{{{par2}}}}}&#125;&#125;</span><noinclude>
#REDIRECT [[Template:Tlx]]
 
{{r with history}}
===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>, 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:
:<tt><nowiki>{{tltt|Template name|Tooltip text|par=First parameter=1|par2=Second parameter=2}}</nowiki></tt>
Produces:
:{{tltt|Template name|Tooltip text|par=First parameter=1|par2=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.
 
[[Category:Internal link templates|Tltt]]
[[Category:Typing-aid templates|Tltt]]
 
[[zh:Template:Tltt]]
</noinclude>

Latest revision as of 05:17, 3 September 2020

Redirect to:

  • With history: This is a redirect from a page containing substantive page history. This page is kept as a redirect to preserve its former content and attributions. Please do not remove the tag that generates this text (unless the need to recreate content on this page has been demonstrated), nor delete this page.
    • This template should not be used for redirects having some edit history but no meaningful content in their previous versions, nor for redirects created as a result of a page merge (use {{R from merge}} instead), nor for redirects from a title that forms a historic part of Wikipedia (use {{R with old history}} instead).