Difference between revisions of "Template:Skill test"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(add translation)
old>Realpsojed
(read parameters from Data page instead of skill tooltip page, add second passive bonus and value)
Line 1: Line 1:
{| width=300px;
<includeonly>{| width=300px;
|{{#ifexist: File:{{ROOTPAGENAME}}.png | <div style="position:relative;float:right;margin-top: -9px;">[[File:{{ROOTPAGENAME}}.png|{{Translate|{{{Name|{{ROOTPAGENAME}}}}}|SkillNames}}|link={{ROOTPAGENAME}}/Tooltip]]| }}</div><span style="font-size: 20px;">{{Translate|{{{Name|{{ROOTPAGENAME}}}}}|SkillNames}}</span> <br />{{#switch: {{{Active}}} | Active | active = {{C|Active|{{Translate|Active|Properties}}}} | Passive | passive = {{C|Passive|{{Translate|Passive|Properties}}}} | {{{Active}}} }}
|{{#ifexist: File:{{ROOTPAGENAME}}.png | <div style="position:relative;float:right;margin-top: -9px;">[[File:{{ROOTPAGENAME}}.png|{{Translate|{{{Name|{{ROOTPAGENAME}}}}}|SkillNames}}|link={{ROOTPAGENAME}}/Tooltip]]| }}</div><span style="font-size: 20px;">{{Translate|{{{Name|{{ROOTPAGENAME}}}}}|SkillNames}}</span> <br />{{#switch: {{:Data|{{ROOTPAGENAME}}|Active}} | Active | active = {{C|Active|{{Translate|Active|Properties}}}} | Passive | passive = {{C|Passive|{{Translate|Passive|Properties}}}} | {{:Data|{{ROOTPAGENAME}}|Active}} }}
{{Tooltip rule}}
{{Tooltip rule}}
|-
|-
|{{#switch: {{{Active}}}
|{{#switch: {{:Data|{{ROOTPAGENAME}}|Active}}
| Active
| Active
| active = <div style="float: left">{{Translate|Type|Properties}}</div><div style="float: right">{{Translate|{{{Type}}}|Properties}}</div>{{Clear}}{{#if: {{{Range|}}} | <div style="float: left">{{Translate|Range|Properties}}</div><div style="float: right">{{Translate|{{{Range}}}|Properties}}</div>{{Clear}} | }}{{#if: {{{Energy|}}} | <div style="float: left">{{Translate|Energy|Properties}}</div><div style="float: right">{{Translate|{{{Energy}}}|Properties}}</div>{{Clear}} |}}{{#if: {{{Cooldown|}}} | <div style="float: left">{{Translate|Cooldown|Properties}}</div><div style="float: right">{{Translate|{{{Cooldown}}}|Properties}}</div>{{Clear}} | }}{{#if: {{{Modifiers|}}} | {{Translate|Modified by:|Properties}} {{Translate|{{{Modifiers}}}|Properties}}{{#if: {{{Requirements|}}}|<br><br>}}|{{#if: {{{Requirements|}}}|<br>}}}}
| active = <div style="float: left">{{Translate|Type|Properties}}</div><div style="float: right">{{Translate|{{:Data|{{ROOTPAGENAME}}|Type}}|Properties}}</div>{{Clear}}{{#if: {{:Data|{{ROOTPAGENAME}}|Range}} | <div style="float: left">{{Translate|Range|Properties}}</div><div style="float: right">{{:Data|{{ROOTPAGENAME}}|Range}}</div>{{Clear}} | }}{{#if: {{:Data|{{ROOTPAGENAME}}|Energy}} | <div style="float: left">{{Translate|Energy|Properties}}</div><div style="float: right">{{:Data|{{ROOTPAGENAME}}|Energy}}</div>{{Clear}} |}}{{#if: {{:Data|{{ROOTPAGENAME}}|Cooldown}} | <div style="float: left">{{Translate|Cooldown|Properties}}</div><div style="float: right">{{:Data|{{ROOTPAGENAME}}|Cooldown}}</div>{{Clear}} | }}{{#if: {{:Data|{{ROOTPAGENAME}}|Modifiers}} | {{Translate|Modified by|Properties}}: {{Translate|{{:Data|{{ROOTPAGENAME}}|Modifiers}}|Properties}}{{#if: {{:Data|{{ROOTPAGENAME}}|Requirements}}|<br><br>}}|{{#if: {{:Data|{{ROOTPAGENAME}}|Requirements}}|<br>}}}}
| }}{{#if: {{{Requirements|}}}|{{C|Req|{{Translate|{{{Requirements}}}|Properties}}}}{{Tooltip rule}}|{{#if: {{{Type|}}} |{{Tooltip rule}}}}}}
| }}{{#if: {{:Data|{{ROOTPAGENAME}}|Requirements}}|{{C|Req|{{Translate|{{:Data|{{ROOTPAGENAME}}|Requirements}}|Properties}}}}{{Tooltip rule}}|{{#if: {{:Data|{{ROOTPAGENAME}}|Type}} |{{Tooltip rule}}}}}}
|-
|-
| {{C|Gray|{{Translate|{{{Description}}}|SkillDescription}} {{#if: {{{Passivebonus|}}}|<br><br>{{C|Orange|{{Translate|Passive bonus:|Properties}}}}<br>{{{Passivevalue1}}} {{Translate|{{{Passivebonus1}}}|Properties}}}}}}
| {{C|Gray|{{Translate|{{:Data|{{ROOTPAGENAME}}|Description}}|SkillDescription}} {{#if: {{:Data|{{ROOTPAGENAME}}|Passivevalue1}}|<br><br>{{C|Orange|{{Translate|Passive bonus|Properties}}:}}<br>{{:Data|{{ROOTPAGENAME}}|Passivevalue1}} {{Translate|{{:Data|{{ROOTPAGENAME}}|Passivebonus1}}|Properties}}{{#if: {{:Data|{{ROOTPAGENAME}}|Passivevalue2}} |<br>{{:Data|{{ROOTPAGENAME}}|Passivevalue2}} {{Translate|{{:Data|{{ROOTPAGENAME}}|Passivebonus2}}|Properties}}}}}}}}
|}</includeonly><noinclude>{{doc}}
|}</includeonly><noinclude>{{doc}}


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

Revision as of 18:56, 21 June 2021

Template-info.png Documentation

This is skill template used to test new changes in Skill template.


Examples:

Skill test

Skill test

Skill test

Skill test

Skill test

Skill test

Skill test

Skill test

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

Skill test

Example of a non-existing skill:

Skill test