Difference between revisions of "Template:Tooltip"

51 bytes added ,  06:55, 6 September 2020
no edit summary
Line 1: Line 1:
<includeonly><onlyinclude>{{#css:
<includeonly><onlyinclude>{{#if:{{#var:hide tips}}|{{{1|{{{base|text}}}}}}|{{#css:
.tooltip {
.tooltip {
   position: relative;
   position: relative;
Line 25: Line 25:
   visibility: visible;
   visibility: visible;
}
}
}}<div class="tooltip">{{{1|{{{base|text}}}}}}<span class="tooltiptext" style="min-width: {{{width|0}}};">{{{2|{{{tip|{{{tooltip|tip}}}}}}}}}</span></div></includeonly></onlyinclude>
}}<div class="tooltip">{{{1|{{{base|text}}}}}}<span class="tooltiptext" style="min-width: {{{width|0}}};">{{{2|{{{tip|{{{tooltip|tip}}}}}}}}}</span></div>}}</includeonly></onlyinclude>
<noinclude>
<noinclude>
This template does the same thing as <code><nowiki><abbr></nowiki></code> tooltips, except that the tips can be viewed on mobile this time.
This template does the same thing as <code><nowiki><abbr></nowiki></code> tooltips, except that the tips can be viewed on mobile this time.
trusted
5,894

edits