Difference between revisions of "Template:Tooltip"

Jump to navigation Jump to search
118 bytes added ,  16:07, 1 September 2020
Added width settings
(Created page with "<includeonly><onlyinclude>{{#css: .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .tooltip .tooltiptext { visibility: hidden;...")
 
(Added width settings)
Line 23: Line 23:
   visibility: visible;
   visibility: visible;
}
}
}}<div class="tooltip">{{{1|{{{base|text}}}}}}<span class="tooltiptext">{{{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.


==Usage==
==Usage==
<pre>{{Tooltip|text1|text1}}</pre>
<pre>{{Tooltip|text1|text2}}</pre>
{{Tooltip|text1|text1}}
{{Tooltip|text1|text2}}


<pre>{{Tooltip|base=text1|tip=text2}}</pre>
<pre>{{Tooltip|base=text1|tip=text2}}</pre>
Line 39: Line 39:
<pre>{{Tooltip|[[File:Element dark.png|50px]]|Nether element}}</pre>
<pre>{{Tooltip|[[File:Element dark.png|50px]]|Nether element}}</pre>
{{Tooltip|[[File:Element dark.png|50px]]|Nether element}}
{{Tooltip|[[File:Element dark.png|50px]]|Nether element}}
<pre>{{Tooltip|text1|text2|width=120px}}</pre>
{{Tooltip|text1|text2|width=120px}}
</noinclude>
</noinclude>
trusted
5,920

edits

Navigation menu