Template:Tooltip: Difference between revisions

m
no edit summary
m (Reverted edits by Ahancey (talk) to last revision by Batsondl)
Tag: Rollback
mNo edit summary
Line 1: Line 1:
{{#if: {{{Hover words|}}}|
{{#if: {{{Hover words|}}}|
<div class="tooltip"><u style="border-bottom: 1px dotted black; text-decoration: none;">{{{Hover words}}}</u>
<div class="tooltip"><u style="border-bottom: 1px dotted black; text-decoration: none;">{{{Hover words}}}</u>
<span class="tooltiptext" style=" width:{{{Width}}};">{{{Words in popup}}}</span>
<span class="tooltiptext" style=" width:{{{Width}}}; margin-left:-{{{Shift Left}}};">{{{Words in popup}}}</span>
</div>
</div>
}}
}}
Line 9: Line 9:
  {{Tooltip
  {{Tooltip
   |Width=200px  /* adjust to desired box width */
   |Width=200px  /* adjust to desired box width */
  |Shift Left=100px  /* use this to adjust the tooltip box over words.  Typically, this should be 1/2 the size of the Width */
   |Hover words=Hover over these words
   |Hover words=Hover over these words
   |Words in popup=Words here will show up in a box when a user hovers over the 'Hover words'.
   |Words in popup=Words here will show up in a box when a user hovers over the 'Hover words'.
  }}</nowiki></noinclude><noinclude>[[Category:Guided Research]][[Category:Templates|Guided Research]]</noinclude>
  }}</nowiki></noinclude><noinclude>[[Category:Guided Research]][[Category:Templates|Guided Research]]</noinclude>
2,664

edits