Difference between revisions of "Template:Skill test"

From Stoneshard wiki
Jump to navigation Jump to search
(add third passive value for skills)
(add Formuladesc param and toggle to show/hide formulas)
Line 1: Line 1:
<includeonly>{| 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={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/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}} }}
|{{#ifexist: File:{{ROOTPAGENAME}}.png | <div style="position:relative;float:right;margin-top: -9px;">[[File:{{ROOTPAGENAME}}.png|{{Translate|{{{Name|{{ROOTPAGENAME}}}}}|SkillNames}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}]]| }}</div><span style="font-size: 20px;">{{Translate|{{{Name|{{ROOTPAGENAME}}}}}|SkillNames}}</span> <br />{{#switch: {{:Skill data|{{ROOTPAGENAME}}|Active}} | Active | active = {{C|Active|{{Translate|Active|Properties}}}} | Passive | passive = {{C|Passive|{{Translate|Passive|Properties}}}} | {{:Skill data|{{ROOTPAGENAME}}|Active}} }}
{{Tooltip rule}}
{{Tooltip rule}}
|-
|-
|{{#switch: {{:Data|{{ROOTPAGENAME}}|Active}}
|{{#switch: {{:Skill data|{{ROOTPAGENAME}}|Active}}
| Active
| Active
| 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">{{Translate|{{:Data|{{ROOTPAGENAME}}|Range}}|Properties}}</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>}}}}
| active = <div style="float: left">{{Translate|Type|Properties}}</div><div style="float: right">{{Translate|{{:Skill data|{{ROOTPAGENAME}}|Type}}|Properties}}</div>{{Clear}}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Range}} | <div style="float: left">{{Translate|Range|Properties}}</div><div style="float: right">{{Translate|{{:Skill data|{{ROOTPAGENAME}}|Range}}|Properties}}</div>{{Clear}} | }}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Energy}} | <div style="float: left">{{Translate|Energy|Properties}}</div><div style="float: right">{{:Skill data|{{ROOTPAGENAME}}|Energy}}</div>{{Clear}} |}}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Cooldown}} | <div style="float: left">{{Translate|Cooldown|Properties}}</div><div style="float: right">{{:Skill data|{{ROOTPAGENAME}}|Cooldown}}</div>{{Clear}} | }}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Modifiers}} | {{Translate|Modified by|Properties}}: {{Translate|{{:Skill data|{{ROOTPAGENAME}}|Modifiers}}|Properties}}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Requirements}}|<br><br>}}|{{#if: {{:Skill data|{{ROOTPAGENAME}}|Requirements}}|<br>}}}}
| }}{{#if: {{:Data|{{ROOTPAGENAME}}|Requirements}}|{{C|Req|{{Translate|{{:Data|{{ROOTPAGENAME}}|Requirements}}|Properties}}}}{{Tooltip rule}}|{{#if: {{:Data|{{ROOTPAGENAME}}|Type}} |{{Tooltip rule}}}}}}
| }}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Requirements}}|{{C|Req|{{Translate|{{:Skill data|{{ROOTPAGENAME}}|Requirements}}|Properties}}}}{{Tooltip rule}}|{{#if: {{:Skill data|{{ROOTPAGENAME}}|Type}} |{{Tooltip rule}}}}}}
|-
|-
| {{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}}}}{{#if: {{:Data|{{ROOTPAGENAME}}|Passivevalue3}} |<br>{{:Data|{{ROOTPAGENAME}}|Passivevalue3}} {{Translate|{{:Data|{{ROOTPAGENAME}}|Passivebonus3}}|Properties}}}} }}}}
| <div class="mw-collapsible" id="mw-customcollapsible-description1">{{C|Gray|{{Translate|{{:Skill data|{{ROOTPAGENAME}}|Description}}|SkillDescription}}</div><!--
--><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-description1">{{C|Gray|{{Translate|{{:Skill data|{{ROOTPAGENAME}}|Formuladesc}}|SkillDescription}}</div> {{#if: {{:Skill data|{{ROOTPAGENAME}}|Passivevalue1}}|<br><br>{{C|Orange|{{Translate|Passive bonus|Properties}}:}}<br>{{:Skill data|{{ROOTPAGENAME}}|Passivevalue1}} {{Translate|{{:Skill data|{{ROOTPAGENAME}}|Passivebonus1}}|Properties}}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Passivevalue2}} |<br>{{:Skill data|{{ROOTPAGENAME}}|Passivevalue2}} {{Translate|{{:Skill data|{{ROOTPAGENAME}}|Passivebonus2}}|Properties}}}}{{#if: {{:Skill data|{{ROOTPAGENAME}}|Passivevalue3}} |<br>{{:Skill data|{{ROOTPAGENAME}}|Passivevalue3}} {{Translate|{{:Skill data|{{ROOTPAGENAME}}|Passivebonus3}}|Properties}}}} }}}}
|-
| {{Tooltip rule}}<div style="text-align:center;"><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>
|}</includeonly><noinclude>{{doc}}
|}</includeonly><noinclude>{{doc}}


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

Revision as of 12:23, 21 June 2022

Template-info.png Documentation

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


Examples:

Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas
Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas

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

Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas

Example of a non-existing skill:

Skill test
Skill data missing.
Skill data missing.
Gray|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.

Show formulasHide formulas