Template:Tt: Difference between revisions

342 bytes added ,  10 September 2022
no edit summary
No edit summary
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>== What this is ==
<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>
A template to write tooltips!
 
 
== Usage & Examples ==
== Usage & Examples ==
<code><nowiki>{{tt|Normal text|Tooltip text}}</nowiki></code>
<code><nowiki>{{tt|Normal text|Tooltip text}}</nowiki></code>
Line 20: Line 17:


[[Category:Code templates]][[Category:Templates]]
[[Category:Code templates]][[Category:Templates]]
</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Tooltipped element"
},
"2": {
"label": "Tooltip content",
"type": "string"
},
"pos": {
"label": "Position",
"type": "string"
},
"line": {
"label": "Line"
},
"style": {
"label": "Style"
},
"align": {
"label": "Align"
}
},
"description": "A template to spawn tooltipped content."
}
</templatedata></noinclude>