Difference between revisions of "Template:Skill"

From Stoneshard wiki
Jump to navigation Jump to search
m (Undo revision 52593 by Phoenixx (talk))
Tag: Undo
(Merge changes from Skill_test)
Line 1: Line 1:
<includeonly>{| width=300px;
<includeonly><!--
|<div style="position:relative;float:right;margin-top: -9px;">{{#ifexist: File:{{ROOTPAGENAME}}.png |[[File:{{ROOTPAGENAME}}.png|{{{Name|{{ROOTPAGENAME}}}}}|link={{ROOTPAGENAME}}/Tooltip]]|[[File:{{ROOTPAGENAME}}.png]] }}</div><span style="font-size: 20px;">{{{Name|{{ROOTPAGENAME}}}}}</span> <br />{{#switch: {{{Active}}} | Active | active = {{C|Active|Active}} | Passive | passive = {{C|Passive|Passive}} | {{{Active}}} }}
-->{{#vardefine:Page|{{#if:{{{1|}}}|{{{1|}}}|{{ROOTPAGENAME}}}}}}<!--
--><div style="width: 300px;">{{#if: {{{1|}}}||{{#ifexist: File:{{#var:Page}}.png | <div style="position:relative;float:right;margin-top: -9px;">[[File:{{#var:Page}}.png|{{Translate|{{{Name|{{#var:Page}}}}}|SkillNames}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}]]</div>| }}}}<span style="font-size: 20px;">{{Translate|{{{Name|{{#var:Page}}}}}|SkillNames}}</span> <br />{{#switch: {{:Skill data|{{#var:Page}}|Active}} | Active | active = {{C|Active|{{Translate|Active|Properties}}}} | Passive | passive = {{C|Passive|{{Translate|Passive|Properties}}}} | {{:Skill data|{{#var:Page}}|Active}} }}
{{Tooltip rule}}
{{Tooltip rule}}
|-
{{#switch: {{:Skill data|{{#var:Page}}|Active}}
|{{#switch: {{{Active}}}
| Active
| Active
| active = <div style="float: left">Type</div><div style="float: right">{{{Type}}}</div>{{Clear}}{{#if: {{{Range|}}} | <div style="float: left">Range</div><div style="float: right">{{{Range}}}</div>{{Clear}} | }}{{#if: {{{Energy|}}} | <div style="float: left">Energy</div><div style="float: right">{{{Energy}}}</div>{{Clear}} |}}{{#if: {{{Cooldown|}}} | <div style="float: left">Cooldown</div><div style="float: right">{{{Cooldown}}}</div>{{Clear}} | }}{{#if: {{{Modifiers|}}} | Modified by: {{{Modifiers}}}{{#if: {{{Requirements|}}}|<br><br>}}|{{#if: {{{Requirements|}}}|<br>}}}}
| active = <div style="float: left">{{Translate|Type|Properties}}</div><div style="float: right">{{Translate|{{:Skill data|{{#var:Page}}|Type}}|Properties}}</div>{{Clear}}{{#if: {{:Skill data|{{#var:Page}}|Range}} | <div style="float: left">{{Translate|Range|Properties}}</div><div style="float: right">{{Translate|{{:Skill data|{{#var:Page}}|Range}}|Properties}}</div>{{Clear}} | }}{{#if: {{:Skill data|{{#var:Page}}|Energy}} | <div style="float: left">{{Translate|Energy|Properties}}</div><div style="float: right">{{:Skill data|{{#var:Page}}|Energy}}</div>{{Clear}} |}}{{#if: {{:Skill data|{{#var:Page}}|Cooldown}} | <div style="float: left">{{Translate|Cooldown|Properties}}</div><div style="float: right">{{:Skill data|{{#var:Page}}|Cooldown}}</div>{{Clear}} | }}{{#if: {{:Skill data|{{#var:Page}}|Modifiers}} | {{Translate|Modified by|Properties}}: {{Translate|{{:Skill data|{{#var:Page}}|Modifiers}}|Properties}}{{#if: {{:Skill data|{{#var:Page}}|Requirements}}|<br><br>}}|{{#if: {{:Skill data|{{#var:Page}}|Requirements}}|<br>}}}}
| }}{{#if: {{{Requirements|}}}|{{C|Req|{{{Requirements}}}}}{{Tooltip rule}}|{{#if: {{{Type|}}} |{{Tooltip rule}}}}}}
| }}{{#if: {{:Skill data|{{#var:Page}}|Requirements}}|{{C|Req|{{Translate|{{:Skill data|{{#var:Page}}|Requirements}}|Properties}}}}{{Tooltip rule}}|{{#if: {{:Skill data|{{#var:Page}}|Type}} |{{Tooltip rule}}}}}}
|-
<div class="mw-collapsible" id="mw-customcollapsible-description1">{{C|Gray|{{Translate|{{:Skill data|{{#var:Page}}|Description}}|SkillDescription}}}}</div>
| {{C|Gray|{{{Description}}} {{#if: {{{Passivebonus|}}}|{{#if: {{{Passivetext|}}}|<br><br>{{C|Orange|Required materials:}}|<br><br>{{C|Orange|Passive bonus:}}}}<br>{{{Passivebonus}}} }} }}
{{#if: {{{1|}}}||<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-description1">{{C|Gray|{{Translate|{{:Skill data|{{#var:Page}}|Formuladesc}}|SkillDescription}}}}</div>}}{{C|Gray|{{#if: {{:Skill data|{{#var:Page}}|Hiddenvalue1}}|<br>{{C|Orange|{{Translate|Hidden bonus|Properties}}:}}<br>{{#if: {{:Skill data|{{#var:Page}}|Hiddentext1}}|{{:Skill data|{{#var:Page}}|Hiddentext1}}<br>}} {{:Skill data|{{#var:Page}}|Hiddenvalue1}} {{Translate|{{:Skill data|{{#var:Page}}|Hiddenbonus1}}|Properties}}{{#if: {{:Skill data|{{#var:Page}}|Hiddenvalue2}} |<br>{{:Skill data|{{#var:Page}}|Hiddenvalue2}} {{Translate|{{:Skill data|{{#var:Page}}|Hiddenbonus2}}|Properties}}}} }}<!--
|}</includeonly><noinclude>{{doc}}
-->{{#if: {{:Skill data|{{#var:Page}}|Reqvalue1}}|<br>{{C|Orange|{{Translate|Required materials|Properties}}:}}<br>{{Translate|{{:Skill data|{{#var:Page}}|Reqvalue1}}|Properties}}{{#if: {{:Skill data|{{#var:Page}}|Reqvalue2}} |<br>{{Translate|{{:Skill data|{{#var:Page}}|Reqvalue2}}|Properties}}}}{{#if: {{:Skill data|{{#var:Page}}|Reqvalue3}} |<br>{{Translate|{{:Skill data|{{#var:Page}}|Reqvalue3}}|Properties}} }} }}<!--
-->{{#if: {{:Skill data|{{#var:Page}}|Passivevalue1}}|<br>{{C|Orange|{{Translate|Passive bonus|Properties}}:}}<br>{{:Skill data|{{#var:Page}}|Passivevalue1}} {{Translate|{{:Skill data|{{#var:Page}}|Passivebonus1}}|Properties}}{{#if: {{:Skill data|{{#var:Page}}|Passivevalue2}} |<br>{{:Skill data|{{#var:Page}}|Passivevalue2}} {{Translate|{{:Skill data|{{#var:Page}}|Passivebonus2}}|Properties}}}}{{#if: {{:Skill data|{{#var:Page}}|Passivevalue3}} |<br>{{:Skill data|{{#var:Page}}|Passivevalue3}} {{Translate|{{:Skill data|{{#var:Page}}|Passivebonus3}}|Properties}}}} }} }}<!--
-->{{#if: {{{1|}}}||<div style="text-align:center;"><br><span class="mw-collapsible mw-customtoggle-description1 mw-customtoggle-description2" id="mw-customcollapsible-description2" style="background-color: #272340; border: 2px solid black; padding: 10px 15px; font-size: 16px;">Show formulas</span><!--
--><span class="mw-collapsible mw-collapsed mw-customtoggle-description1 mw-customtoggle-description2" id="mw-customcollapsible-description2" style="background-color: #272340; border: 2px solid black; padding: 10px 15px; font-size: 16px;">Hide formulas</span></div>}}
</div></includeonly><noinclude>{{doc}}


[[Category:Tooltip templates]]</noinclude>
[[Category:Tooltip templates]]</noinclude>

Revision as of 22:45, 30 July 2022

Template-info.png Documentation

This is skill template used to create an infobox on a specific skill's Tooltip page. It loads the skill data from the respective Skill data page.

Usage: Copy this code to any page. The name of the page will be used as the skill name parameter.

{{ {{{1|Tooltip hover box}}}|title={{Skill}}}}


You can specify a different skill name to be used instead of the page name. For example:

{{ {{{1|Tooltip hover box}}}|title={{Skill|My skill name}}}}


Skill pages also display icons and skill formulae for skills that have them, but this doesn't work for tooltips.
For this case, you can define a tooltip=1 parameter to not show the skill image.

{{ {{{1|Tooltip hover box}}}|title={{Skill|My skill name|tooltip=1}}}}


If you don't want a skill to display skill formulae (and hide the button), remove the

|Formuladesc = ...

parameter from the skill's data.


This template is also used by:

See Swords_(skill_tree) for examples.


Examples without icons below:

Stone Armor
Geomancy skill data
Geomancy skill data
Geomancy skill data


Hidden bonus:
Geomancy skill data
Geomancy skill data Geomancy skill data
Geomancy skill data Geomancy skill data
Required materials:
Geomancy skill data
Geomancy skill data
Geomancy skill data
Passive bonus:
Geomancy skill data Geomancy skill data
Geomancy skill data Geomancy skill data
Geomancy skill data Geomancy skill data

Cleaving Strike
Sword skill data
Sword skill data
Sword skill data


Hidden bonus:
Sword skill data
Sword skill data Sword skill data
Sword skill data Sword skill data
Required materials:
Sword skill data
Sword skill data
Sword skill data
Passive bonus:
Sword skill data Sword skill data
Sword skill data Sword skill data
Sword skill data Sword skill data

Offensive Tactic
Warfare skill data
Warfare skill data
Warfare skill data


Hidden bonus:
Warfare skill data
Warfare skill data Warfare skill data
Warfare skill data Warfare skill data
Required materials:
Warfare skill data
Warfare skill data
Warfare skill data
Passive bonus:
Warfare skill data Warfare skill data
Warfare skill data Warfare skill data
Warfare skill data Warfare skill data

Hammer and Anvil
Mace skill data
Mace skill data
Mace skill data


Hidden bonus:
Mace skill data
Mace skill data Mace skill data
Mace skill data Mace skill data
Required materials:
Mace skill data
Mace skill data
Mace skill data
Passive bonus:
Mace skill data Mace skill data
Mace skill data Mace skill data
Mace skill data Mace skill data

Campfire
Survival skill data
Survival skill data
Survival skill data


Hidden bonus:
Survival skill data
Survival skill data Survival skill data
Survival skill data Survival skill data
Required materials:
Survival skill data
Survival skill data
Survival skill data
Passive bonus:
Survival skill data Survival skill data
Survival skill data Survival skill data
Survival skill data Survival skill data

Honed Edge
Sword skill data
Sword skill data
Sword skill data


Hidden bonus:
Sword skill data
Sword skill data Sword skill data
Sword skill data Sword skill data
Required materials:
Sword skill data
Sword skill data
Sword skill data
Passive bonus:
Sword skill data Sword skill data
Sword skill data Sword skill data
Sword skill data Sword skill data

Skinning
Survival skill data
Survival skill data
Survival skill data


Hidden bonus:
Survival skill data
Survival skill data Survival skill data
Survival skill data Survival skill data
Required materials:
Survival skill data
Survival skill data
Survival skill data
Passive bonus:
Survival skill data Survival skill data
Survival skill data Survival skill data
Survival skill data Survival skill data

Element of Surprise
Basic skill data
Basic skill data
Basic skill data


Hidden bonus:
Basic skill data
Basic skill data Basic skill data
Basic skill data Basic skill data
Required materials:
Basic skill data
Basic skill data
Basic skill data
Passive bonus:
Basic skill data Basic skill data
Basic skill data Basic skill data
Basic skill data Basic skill data

Example of a tooltip version (doesn't show the skill image, helps with some plugin limitations):

Campfire
Survival skill data
Survival skill data
Survival skill data


Hidden bonus:
Survival skill data
Survival skill data Survival skill data
Survival skill data Survival skill data
Required materials:
Survival skill data
Survival skill data
Survival skill data
Passive bonus:
Survival skill data Survival skill data
Survival skill data Survival skill data
Survival skill data Survival skill data

Example of a non-existing skill:

I don't exist
Skill data missing.
Skill data missing.
Skill data missing.


Hidden bonus:
Skill data missing.
Skill data missing. Skill data missing.
Skill data missing. Skill data missing.
Required materials:
Skill data missing.
Skill data missing.
Skill data missing.
Passive bonus:
Skill data missing. Skill data missing.
Skill data missing. Skill data missing.
Skill data missing. Skill data missing.