Template:Tt: Difference between revisions

From Elwiki
(🤔)
m (🤔)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span 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|}}}|<span style="text-align: {{{align|}}}">}}{{{2|}}}{{#if:{{{align|}}}|</span>}}</span><span>{{{1|}}}</span></span></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 class="content">{{#if:{{{align|}}}|<{{{span|div}}} style="text-align: {{{align|}}}">}}{{{2|}}}{{#if:{{{align|}}}|</{{{span|div}}}>}}</span><{{{span|div}}}>{{{1|}}}</{{{span|div}}}></{{{span|div}}}></includeonly><noinclude>{{Doc}}</noinclude>

Revision as of 23:49, 27 September 2022

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]]}}

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[Edit template data]

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