Template:Tt: Difference between revisions

From Elwiki
No edit summary
(🤔)
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 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>

Revision as of 02:21, 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 textNormal text

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

{{tt|Tooltip with wikitext|[[File:SuryaPassive1.png]] [[Shamanism]]}}
ShamanismTooltip 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 textTop textNested tooltip

{{tt|left-aligned text|Tooltip text|text-align=left}}
Tooltip textleft-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