<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.telosrealms.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ASkillHover%2Fdoc</id>
	<title>Template:SkillHover/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.telosrealms.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ASkillHover%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Template:SkillHover/doc&amp;action=history"/>
	<updated>2026-06-22T09:31:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.telosrealms.com/index.php?title=Template:SkillHover/doc&amp;diff=14996&amp;oldid=prev</id>
		<title>Willow: the mass documenting</title>
		<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Template:SkillHover/doc&amp;diff=14996&amp;oldid=prev"/>
		<updated>2026-06-20T11:55:14Z</updated>

		<summary type="html">&lt;p&gt;the mass documenting&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;Template:SkillHover&amp;lt;/code&amp;gt; renders a skill-tree node box that reveals a description tooltip to the right when the reader hovers over it.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This template draws the same 220×80px dark node box as [[Template:Skill]] (label centered in white), but wraps it so that hovering the box pops up a description tooltip beside it. It takes two parameters: &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; (the box label) and &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; (the tooltip text). If &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; is empty the whole template renders nothing. The hover behaviour is driven by an inline &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;script&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; block in the template. On the live wiki the Skill Tree page is built from &amp;lt;code&amp;gt;{{ImageTooltip}}&amp;lt;/code&amp;gt; nodes inside the per-class data templates instead, so &amp;lt;code&amp;gt;SkillHover&amp;lt;/code&amp;gt; documents an alternative text-box node and is not the node type currently used on the live [[Skill Tree]] page.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Required? !! What it does !! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || Required || The text shown centered inside the node box. If blank or omitted, the template renders nothing. || &amp;lt;code&amp;gt;name=Unyielding Bastion&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; || Optional || The text shown in the tooltip that appears when the reader hovers the box. If omitted, the tooltip shows the fallback text &amp;quot;Hover for description&amp;quot;. || &amp;lt;code&amp;gt;description=Gain +2 defense for 3s when your shield deals damage.&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== How to use ==&lt;br /&gt;
1. Type &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{SkillHover&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to start the template.&lt;br /&gt;
2. Add the node label with &amp;lt;code&amp;gt;|name=&amp;lt;/code&amp;gt;.&lt;br /&gt;
3. Add the hover text with &amp;lt;code&amp;gt;|description=&amp;lt;/code&amp;gt;. You can leave this out — it will then say &amp;quot;Hover for description&amp;quot;.&lt;br /&gt;
4. Close with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Special-syntax notes: the tooltip is positioned to the right of the box (it appears at &amp;lt;code&amp;gt;left:230px&amp;lt;/code&amp;gt;), so leave room on the right side of the node. The hover show/hide is handled by the template&amp;#039;s built-in script that targets every &amp;lt;code&amp;gt;.skill-node&amp;lt;/code&amp;gt; element on the page, so you do not need to add any JavaScript yourself — just place the template. The &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; may contain wikitext/HTML if you want line breaks or coloured spans.&lt;br /&gt;
&lt;br /&gt;
== Copy this ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{SkillHover&lt;br /&gt;
|name=&lt;br /&gt;
|description=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Live result (hover the box to see the tooltip):&lt;br /&gt;
&lt;br /&gt;
{{SkillHover|name=Unyielding Bastion|description=When your shield deals damage or when you take damage, gain +2 defense for 3s (Max 20)}}&lt;br /&gt;
&lt;br /&gt;
Wikitext that produced it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{SkillHover&lt;br /&gt;
|name=Unyielding Bastion&lt;br /&gt;
|description=When your shield deals damage or when you take damage, gain +2 defense for 3s (Max 20)&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips &amp;amp; notes ==&lt;br /&gt;
* Box size and colours are hard-coded (same as [[Template:Skill]]); only &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; are editable.&lt;br /&gt;
* Empty &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; = nothing rendered; empty &amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; = the tooltip falls back to &amp;quot;Hover for description&amp;quot;.&lt;br /&gt;
* The tooltip opens to the right of the box — don&amp;#039;t place a SkillHover hard against the right page margin or the tooltip may be clipped.&lt;br /&gt;
* Related: [[Template:Skill]] (same box, no tooltip) and [[Template:ImageTooltip]] (image-based hover node used in the live [[Skill Tree]] data templates).&lt;/div&gt;</summary>
		<author><name>Willow</name></author>
	</entry>
</feed>