Template:Hover text/doc: Difference between revisions

From Guild of Archivists
(Create documentation page for 'Hover text' template using TemplateData.)
 
m (Add 'autovalue' field for 'dotted' parameter.)
 
Line 24: Line 24:
"description": "Set to \"no\" to disable the dots that appear underneath the main text, or \"yes\" to explicitly enable them.",
"description": "Set to \"no\" to disable the dots that appear underneath the main text, or \"yes\" to explicitly enable them.",
"type": "string",
"type": "string",
"suggestedvalues": ["no", "yes"]
"suggestedvalues": ["no", "yes"],
"autovalue": "yes"
}
}
},
},

Latest revision as of 04:13, 29 November 2024

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