Template:Hover text: Difference between revisions

From Guild of Archivists
(Create 'Hover text' template for providing text that appears when hovering over other text.)
 
(Remove unintended trailing newline.)
 
Line 1: Line 1:
<includeonly><span title="{{{hovertext|{{{1|}}}}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom: 1px dotted"}}>{{{maintext|{{{2|}}}}}}</span></includeonly>
<includeonly><span title="{{{hovertext|{{{1|}}}}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom: 1px dotted"}}>{{{maintext|{{{2|}}}}}}</span></includeonly><!--
<noinclude>{{documentation}}</noinclude>
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 01:52, 2 December 2024

Template documentation[view] [edit] [history] [purge]

Inserts text into a page that provides additional text that appears when the user hovers over it. The text that appears on the page is the 'main text' and the text that appears when hovered over is the 'hover text'.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hover Text1 hovertext

The text that will appear when the user hovers over the main text.

Stringrequired
Main Text2 maintext

The text that will appear within the page content.

Stringrequired
Dotteddotted

Set to "no" to disable the dots that appear underneath the main text, or "yes" to explicitly enable them.

Suggested values
no yes
Auto value
yes
Stringoptional