Template:Tt: Difference between revisions

From Elwiki
(Undo revision 828601 by Bluhen (talk))
Tag: Undo
(🤔)
Line 1: Line 1:
<includeonly><div data-tippy-content="x" data-tippy-placement="{{{pos|}}}" style="display: inline-block; {{#ifeq:{{{line|}}}|false||border-bottom: 1px dotted black;}} {{{style|}}}" class="tippy-btn"><span class="content">{{#if:{{{align|}}}|<div style="text-align: {{{align|}}}">}}{{{2|}}}{{#if:{{{align|}}}|</div>}}</span><div>{{{1|}}}</div></div></includeonly><noinclude>{{Doc}}</noinclude>
<includeonly><{{{span|div}}} data-tippy-content="x" data-tippy-placement="{{{pos|}}}" style="display: inline-block; {{#ifeq:{{{line|}}}|false||border-bottom: 1px dotted black;}} {{{style|}}}" class="tippy-btn"><{{{span|div}}} class="content">{{#if:{{{align|}}}|<{{{span|div}}} style="text-align: {{{align|}}}">}}{{{2|}}}{{#if:{{{align|}}}|</{{{span|div}}}>}}</{{{span|div}}}><{{{span|div}}}>{{{1|}}}</{{{span|div}}}></{{{span|div}}}></includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 00:37, 28 September 2022

Notebook.png
Information: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:Tt/doc.

Usage & Examples

{{tt|Normal text|Tooltip text}}

Tooltip text
Normal text


{{tt|Normal text without underline|Tooltip text|line=false}}

Tooltip text
Normal text without underline


{{tt|Tooltip with wikitext|[[File:SuryaPassive1.png]] [[Shamanism]]}}

Tooltip with wikitext


{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}

Tooltip
Text
Tooltip text with horizontal rule

{{tt|{{tt|Nested tooltip|Top text}}|Bottom text}}

Bottom text
Top text
Nested tooltip


{{tt|left-aligned text|Tooltip text|text-align=left}}

Tooltip text
left-aligned text


A template to spawn tooltipped content.

Template parameters

ParameterDescriptionTypeStatus
Tooltipped element1

no description

Stringoptional
Tooltip content2

no description

Stringoptional
Positionpos

no description

Default
auto
Stringoptional
Lineline

no description

Default
true
Booleanoptional
Stylestyle

no description

Stringoptional
Alignalign

no description

Default
left
Unknownoptional