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
 
m (extra examples)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{link}}}|yes
<includeonly><onlyinclude>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom: 1px dotted"}}>{{{2}}}</span>]]<!--
|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
-->|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom: 1px dotted"}}>{{{2}}}</span>}}</onlyinclude></includeonly>[[Category:Templates]]
  |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 ==
== Usage ==
Line 13: Line 7:
<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>
 
'''Note:''' Currently, the color argument does not work.
 
===Examples===
<pre>{{ht|A place with Banishing Gates|Garlaige Citadel|link=yes}}</pre>
{{ht|A place with Banishing Gates|Garlaige Citadel|link=yes}}
 
<pre>Orcs drop [[Fire|{{ht|An item used in synthesis|'''Fire Crystals'''|red}}]].
</pre>
Orcs drop [[Fire|{{ht|An item used in synthesis|'''Fire Crystals'''|red}}]].
 
<pre>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.
</pre>
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 21:07, 3 June 2025


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.

Note: Currently, the color argument does not work.

Examples

{{ht|A place with Banishing Gates|Garlaige Citadel|link=yes}}

Garlaige Citadel

Orcs drop [[Fire|{{ht|An item used in synthesis|'''Fire Crystals'''|red}}]].

Orcs drop Fire Crystals.

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.

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