Template:Ht: Difference between revisions

From HorizonXI Wiki
(Created page with "{{#ifeq:{{{link}}}|yes |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no| |style="border-bottom:1px dotted" }}>{{{2}}}</span>]] |<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no| |style="border-bottom:1px dotted" }}>{{{2}}}</span> }}<noinclude>Category:Templates == Usage == This template exists to allow you to create "'''h'''over'''t'''ext" for a word or phrase. <nowiki>{{ht|hovertext|display}}</nowiki> This will produce the word "display", w...")
Tag: visualeditor-wikitext
 
(added examples and put code into includeonly onlyinclude)
 
Line 1: Line 1:
{{#ifeq:{{{link}}}|yes
<includeonly><onlyinclude>{{#ifeq:{{{link}}}|yes
  |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
  |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
   |style="border-bottom:1px dotted"
   |style="border-bottom:1px dotted"
Line 6: Line 6:
   |style="border-bottom:1px dotted"
   |style="border-bottom:1px dotted"
  }}>{{{2}}}</span>
  }}>{{{2}}}</span>
}}<noinclude>[[Category:Templates]]
}}</onlyinclude></includeonly>[[Category:Templates]]


== Usage ==
== Usage ==
Line 13: Line 13:
<nowiki>{{ht|hovertext|display}}</nowiki>
<nowiki>{{ht|hovertext|display}}</nowiki>


This will produce the word "display", which when you hover the mouse over it, will show the hovertext (also known as tooltips).  If you include a color, it will put the display text in that color, otherwise it will be black. See the discussion page for examples.
This will produce the word "display", which when you hover the mouse over it, will show the hovertext (also known as tooltips).  If you include a color, it will put the display text in that color, otherwise it will be black.  
</noinclude>
 
===Examples===
 
Orcs drop [[Fire|{{ht|An item used in synthesis|'''Fire Crystals'''|red}}]].
 
Ginger cookies increase your [[MP Recovered While Healing|{{ht|The rate at which you recover MP while healing|hmp|blue}}]] rate by 5 for 3 minutes.

Latest revision as of 17:52, 22 August 2023


Usage

This template exists to allow you to create "hovertext" for a word or phrase.

{{ht|hovertext|display}}

This will produce the word "display", which when you hover the mouse over it, will show the hovertext (also known as tooltips). If you include a color, it will put the display text in that color, otherwise it will be black.

Examples

Orcs drop Fire Crystals.

Ginger cookies increase your hmp rate by 5 for 3 minutes.