Template:Hover: Difference between revisions
From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
KrytenKoro (talk | contribs) No edit summary |
m (Protected "Template:Hover" ([Edit=Allow only KHWiki staff] (indefinite) [Move=Allow only KHWiki staff] (indefinite))) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span title="{{{2|}}}" style="border-bottom: 1px dotted # | <includeonly><span class="explain" title="{{#replace:{{{2|}}}|"|"}}" style="border-bottom:{{{s|1px}}} dotted {{{3|#777}}}">{{{1}}}</span></includeonly><noinclude> | ||
==Documentation== | ==Documentation== | ||
This template is used to display a string of normal text which will provide additional information as a tooltip when the reader's mouse cursor hovers over the text. | This template is used to display a string of normal text which will provide additional information as a tooltip when the reader's mouse cursor hovers over the text. | ||
==Usage== | ==Usage== | ||
<pre>{{hover|text|hovertext}}</pre> | <pre>{{hover|text|hovertext|color (optional)}}</pre> | ||
*'''''text''''' is the text that is displayed and underlined on the page, highlighting the cursor hover zone. | *'''''text''''' is the text that is displayed and underlined on the page, highlighting the cursor hover zone. | ||
*'''''hovertext''''' is the text that will be displayed when the cursor hovers over the above text. This parameter will not accept line breaks (<nowiki><br></nowiki>), wikitext, or quotation marks ("), because these items will cause the template to function incorrectly. | *'''''hovertext''''' is the text that will be displayed when the cursor hovers over the above text. This parameter will not accept line breaks (<nowiki><br></nowiki>), wikitext, or quotation marks ("), because these items will cause the template to function incorrectly. | ||
[[Category: | [[Category:In-line templates]]</noinclude> | ||
</noinclude> |
Latest revision as of 15:39, 16 September 2022
Documentation
This template is used to display a string of normal text which will provide additional information as a tooltip when the reader's mouse cursor hovers over the text.
Usage
{{hover|text|hovertext|color (optional)}}
- text is the text that is displayed and underlined on the page, highlighting the cursor hover zone.
- hovertext is the text that will be displayed when the cursor hovers over the above text. This parameter will not accept line breaks (<br>), wikitext, or quotation marks ("), because these items will cause the template to function incorrectly.