Difference between revisions of "Template:Tooltip"
m |
m |
||
Line 22: | Line 22: | ||
<br><br> | <br><br> | ||
will produce : {{Tooltip|Sample Display|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}} | will produce : {{Tooltip|Sample Display|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}} | ||
− | [[Category:Template]] | + | [[Category:Template]][[Category:Wiki Tools]] |
<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> | <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> |
Revision as of 14:09, 14 October 2011
Generic tooltip template.
Usage
{{Tooltip|displayed_text|tooltip_text}}
- 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
{{Tooltip|displayed_text|tooltip_text|offset_x|offset_y}}
- offset_x : x-axis tooltip position relative to the displayed text
- offset_x : y-axis tooltip position relative to the displayed text
Example
{{Tooltip|Sample Display|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
will produce : Sample DisplayLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.