Template:Skill: Difference between revisions
imported>DupingToaster Created page with "<div class="skill-box" style="border: 2px solid #2D2E30; padding: 4px; text-align: center; width: 100px; height: 40px; display: inline-block;"> <span title="{{{description|Hover for description}}}"> {{{name|Skill}}} </span> </div>" |
the mass documenting |
||
| (64 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div | <!-- Template:Skill --> | ||
{{#if:{{{name|}}}| | |||
<div style="background-color:#191919; border:3px solid #4d4d4b; width:220px; height:80px; display:flex; align-items:center; justify-content:center; color:white; box-sizing:border-box; margin-left:10px;" > | |||
{{{name}}} | |||
</div> | </div> | ||
|}}<noinclude> | |||
{{Documentation}} | |||
</noinclude> | |||
Latest revision as of 11:55, 20 June 2026
Template:Skill renders a single dark, bordered skill-tree node box containing a label, with no hover behaviour.
Overview
name parameter, which is the text shown inside the box. If name is left empty the template outputs nothing at all (the box is suppressed). It is the plain, non-interactive sibling of Template:SkillHover (which adds a hover tooltip). On the live wiki the actual skill trees are built with
nodes inside the per-class Skill Tree data templates, so Template:Skill is a simple/standalone node box and is not currently the node type used on the live Skill Tree page.
Parameters
| Parameter | Required? | What it does | Example |
|---|---|---|---|
name |
Required | The text shown centered inside the node box. If blank or omitted, the template renders nothing. | name=Unyielding Bastion
|
How to use
1. Type {{Skill to start the template.
2. Add the node label with |name= followed by the text you want inside the box.
3. Close with }}.
There is no special syntax — name is plain text. Example: {{Skill|name=Rampage}} produces a box reading "Rampage". Because the box is a fixed 220×80px and has a fixed left margin, dropping several of them in a row produces a vertical-ish stack of equally sized node boxes.
Note: if you want the box to also show a description when the reader hovers over it, use Template:SkillHover instead.
Copy this
{{Skill
|name=
}}Example
Live result:
Unyielding Bastion
Wikitext that produced it:
{{Skill|name=Unyielding Bastion}}Tips & notes
- The box size (220×80px), colours (
#191919fill,#4d4d4bborder) and left margin are hard-coded in the template — there are no parameters to change them. - An empty
namerenders nothing, so this template will never leave a blank box on the page. - Related: Template:SkillHover is the same box plus a hover tooltip; Template:ImageTooltip is the image-based node actually used to build the live Skill Tree data templates.