Template:Hover: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
No edit summary
m (Protected "Template:Hover" ([Edit=Allow only KHWiki staff] (indefinite) [Move=Allow only KHWiki staff] (indefinite)))
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span title="{{{2|}}}" style="border-bottom: 1px dotted {{{3|#777777}}}; cursor: help;">{{{1|}}}</span></includeonly><!--
<includeonly><span class="explain" title="{{#replace:{{{2|}}}|"|&#34;}}" style="border-bottom:{{{s|1px}}} dotted {{{3|#777}}}">{{{1}}}</span></includeonly><noinclude>
 
--><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.
This template has been adapted from [[w:c:anime|Animepedia]] and [[w:c:aselia|Aselia]]. See [[w:c:anime:Template:Hover|this page]] for full documentation.


==Usage==
==Usage==
Line 13: Line 9:
*'''''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:In-line templates]]
[[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.