Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tooltip: Difference between revisions

Template page
mNo edit summary
m added usage guide
Line 1: Line 1:
<includeonly><onlyinclude><span class='uwiki-tooltip'>{{{1|}}}
Generic tooltip template.
<span class='frame' style='top: {{{3|auto}}};left: {{{4|auto}}};'>
==Usage==
<span class='top'></span>
<br>
<span class='content'>{{{2|}}}</span>
<font style='size:120%;color:white;'><nowiki>{{Tooltip|displayed_text|tooltip_text}}</nowiki></font>
<span class='bottom'></span>
<br><br>
</span>
 
</span></onlyinclude></includeonly>
*displayed_text : text you want to display, can be a wiki link or normal text.
*tooltip_text : text you want to display on the tooltip. There's a maximum width if you want to include images.
 
==Advanced Usage==
<br>
<font style='size:120%;color:white;'><nowiki>{{Tooltip|displayed_text|tooltip_text|offset_x|offset_y}}</nowiki></font>
<br><br>
 
*offset_x : x-axis tooltip position relative to the displayed text
*offset_x : y-axis tooltip position relative to the displayed text
 
[[Category:Template]]
<includeonly><onlyinclude><span class='uwiki-tooltip'>{{{1|}}}<span class='frame' style='top: {{{3|auto}}};left: {{{4|auto}}};'><span class='top'></span><span class='content'>{{{2|}}}</span><span class='bottom'></span></span></span></onlyinclude></includeonly>