Difference between revisions of "Template:Tooltip"

From Project Alfheim Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><span class="explain" title="{{{2}}}">{{{1}}}</span></includeonly><noinclude>__NOTOC__ This template is used to create a tooltip over a particular text when the m...")
 
 
Line 7: Line 7:
 
* '''explanation''' is the tooltip text that describes the target text.
 
* '''explanation''' is the tooltip text that describes the target text.
  
=== Example ===
+
===Example===
 
{|class=wikitable
 
{|class=wikitable
 
|<code><nowiki>{{Tooltip|iRO|International Ragnarok Online}}</nowiki></code>||{{Tooltip|iRO|International Ragnarok Online}}
 
|<code><nowiki>{{Tooltip|iRO|International Ragnarok Online}}</nowiki></code>||{{Tooltip|iRO|International Ragnarok Online}}

Latest revision as of 13:39, 7 October 2022

This template is used to create a tooltip over a particular text when the mouse is over it.

Usage

{{Tooltip|text|explanation}}
  • text is the target text to be used.
  • explanation is the tooltip text that describes the target text.

Example

{{Tooltip|iRO|International Ragnarok Online}} iRO
{{Tooltip|iWDB|iRO Wiki Database}} iWDB

Notes

  • Using some characters like a quotation mark (") or an equal mark (=) in the 'explanation' parameter (the hidden text) will cause the template to display incorrectly. To display these characters, use the html entity quot (i.e. write & quot ; without the spaces) or alternatively put the second parameter in <nowiki> tags.