trusted
5,920
edits
SurtrFan8511 (talk | contribs) (Created page with "<includeonly><onlyinclude>{{#css: .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .tooltip .tooltiptext { visibility: hidden;...") |
SurtrFan8511 (talk | contribs) (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| | <pre>{{Tooltip|text1|text2}}</pre> | ||
{{Tooltip|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> |