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
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'.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hover Text | 1 hovertext | The text that will appear when the user hovers over the main text. | String | required |
Main Text | 2 maintext | The text that will appear within the page content. | String | required |
Dotted | dotted | Set to "no" to disable the dots that appear underneath the main text, or "yes" to explicitly enable them.
| String | optional |
The above documentation is transcluded from Template:Hover text/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |