Template:Tt: Difference between revisions

507 bytes removed ,  14 July 2023
m
nvm
No edit summary
m (nvm)
Tag: Undo
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><{{{span|div}}} class="tooltip" {{ #ifeq: {{{line|true}}} | false | style="border-bottom: 0;" }}>{{{1}}}<span class="tooltiptext" style="{{#if:{{{text-align|}}}|text-align:{{{text-align|default}}};}}">{{{2}}}</span></{{{span|div}}}></includeonly><noinclude>== What this is ==
<includeonly><{{{span|div}}} data-tippy-content="x" data-tippy-placement="{{{pos|}}}" style="display: inline-block; {{#ifeq:{{{line|}}}|false||margin-bottom: 3px; text-decoration-style: dotted; text-decoration-thickness: 1px; text-decoration-line: underline; text-decoration-color: inherit; text-underline-offset: 5px;}} {{{style|}}}" class="tippy-btn {{{class|}}}"><span class="content"><{{{span|div}}} style="text-align: {{{align|center}}};">{{{2|}}}</{{{span|div}}}></span><{{{span|div}}}>{{{1|}}}</{{{span|div}}}></{{{span|div}}}></includeonly><noinclude>{{Doc}}</noinclude>
A template to write tooltips!
 
 
== Usage & Examples ==
<code><nowiki>{{tt|Normal text|Tooltip text}}</nowiki></code>
{{tt|Normal text|Tooltip text}}
<br>
<code><nowiki>{{tt|Normal text without underline|Tooltip text|line=false}}</nowiki></code>
{{tt|Normal text without underline|Tooltip text|line=false}}
<br>
<code><nowiki>{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}</nowiki></code>
{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}
<br>
<code><nowiki>{{tt|{{tt|Nested tooltip|Bottom text}}|Top text}}</nowiki></code>
{{tt|{{tt|Nested tooltip|Bottom text}}|Top text}}
<br>
<code><nowiki>{{tt|left-aligned text|Tooltip text|text-align=left}}</nowiki></code>
{{tt|left-aligned text|Tooltip text|text-align=left}}
 
[[Category:Code templates]][[Category:Templates]]
</noinclude>
ElEditors
8,317

edits