Template:Tooltip: Difference between revisions

From FamilySearch Wiki
(Created page with "{{#if: {{{Hover words|}}}| <div class="tooltip"><u style="border-bottom: 1px dotted black; text-decoration: none;">{{{Hover words}}}</u> <span class="tooltiptext" style=" widt...")
 
No edit summary
Line 11: Line 11:
   |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>
  }}</nowiki></noinclude><noinclude>[[Category:Guided Research]][[Category:Templates]]</noinclude>

Revision as of 16:29, 30 November 2018


This template will create a popup box tooltip when the user hovers over 'Hover words', which will be underlined. The following is an example of what the call to this template should look like:

 {{Tooltip
  |Width=200px   /* adjust to desired box width */
  |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'.
 }}