Difference between revisions of "Template:Skill"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Boblers
(adding support for a third alt icon)
 
(89 intermediate revisions by 4 users not shown)
Line 6: Line 6:
 
|SkillId=String
 
|SkillId=String
 
|Name=String
 
|Name=String
 +
|Type=String
 
|SkillLv1IconName=String
 
|SkillLv1IconName=String
 
|SkillLv2IconName=String
 
|SkillLv2IconName=String
 
|SkillLv3IconName=String
 
|SkillLv3IconName=String
 +
|SkillLv4IconName=String
 +
|AltSkillIconName1=String
 +
|AltSkillIconName2=String
 +
|AltSkillIconName3=String
 
|Description1=Wikitext (size=3000)
 
|Description1=Wikitext (size=3000)
 
|Description2=Wikitext (size=3000)
 
|Description2=Wikitext (size=3000)
 
|Description3=Wikitext (size=3000)
 
|Description3=Wikitext (size=3000)
 
|Description4=Wikitext (size=3000)
 
|Description4=Wikitext (size=3000)
|HideLevel3=Boolean
+
<!--|HideLevel3=Boolean-->
 
|MaxSkillLevel=Integer
 
|MaxSkillLevel=Integer
 
|Sp=Integer
 
|Sp=Integer
 
|SPLv2=Integer
 
|SPLv2=Integer
 +
|SPLv3=Integer
 +
|SPLv4=Integer
 +
|SpEdit=Integer
 +
|SpLv2Edit=Integer
 +
|SpLv3Edit=Integer
 +
|SpLv4Edit=Integer
 +
|SpDragon=Integer
 +
|SpLv2Dragon=Integer
 +
|SpLv3Dragon=Integer
 +
|SpLv4Dragon=Integer
 
|SpRegen=Integer
 
|SpRegen=Integer
 
|IsAffectedByTension=Boolean
 
|IsAffectedByTension=Boolean
 
|CrisisModifier=String
 
|CrisisModifier=String
 
|IframeDuration=String
 
|IframeDuration=String
 +
|MaxAmmo=Integer
 +
|AmmoUsage=Integer
 
|
 
|
 
}}</noinclude><includeonly><!--
 
}}</noinclude><includeonly><!--
Line 29: Line 46:
 
|SkillId={{{SkillId|}}}
 
|SkillId={{{SkillId|}}}
 
|Name={{{Name|}}}
 
|Name={{{Name|}}}
 +
|Type={{{SkillType|}}}
 
|SkillLv1IconName={{{SkillLv1IconName|}}}
 
|SkillLv1IconName={{{SkillLv1IconName|}}}
 
|SkillLv2IconName={{{SkillLv2IconName|}}}
 
|SkillLv2IconName={{{SkillLv2IconName|}}}
 
|SkillLv3IconName={{{SkillLv3IconName|}}}
 
|SkillLv3IconName={{{SkillLv3IconName|}}}
 +
|SkillLv4IconName={{{SkillLv4IconName|}}}
 +
|AltSkillIconName1={{{AltSkillIconName1|}}}
 +
|AltSkillIconName2={{{AltSkillIconName2|}}}
 +
|AltSkillIconName3={{{AltSkillIconName3|}}}
 
|Description1={{{Description1|}}}
 
|Description1={{{Description1|}}}
 
|Description2={{{Description2|}}}
 
|Description2={{{Description2|}}}
 
|Description3={{{Description3|}}}
 
|Description3={{{Description3|}}}
 
|Description4={{{Description4|}}}
 
|Description4={{{Description4|}}}
|HideLevel3={{{HideLevel3|}}}
+
<!--|HideLevel3={{{HideLevel3|}}}-->
 
|MaxSkillLevel={{{MaxSkillLevel|}}}
 
|MaxSkillLevel={{{MaxSkillLevel|}}}
 
|Sp={{{Sp|}}}
 
|Sp={{{Sp|}}}
 
|SPLv2={{{SpLv2|{{{Sp|}}}}}}
 
|SPLv2={{{SpLv2|{{{Sp|}}}}}}
 +
|SPLv3={{{SpLv3|}}}
 +
|SPLv4={{{SpLv4|}}}
 +
|SpEdit={{{SpEdit|}}}
 +
|SpLv2Edit={{{SpLv2Edit|}}}
 +
|SpLv3Edit={{{SpLv3Edit|}}}
 +
|SpLv4Edit={{{SpLv4Edit|}}}
 +
|SpDragon={{{SpDragon|}}}
 +
|SpLv2Dragon={{{SpLv2Dragon|}}}
 +
|SpLv3Dragon={{{SpLv3Dragon|}}}
 +
|SpLv4Dragon={{{SpLv4Dragon|}}}
 
|SpRegen={{{SpRegen|}}}
 
|SpRegen={{{SpRegen|}}}
 
|IsAffectedByTension={{{IsAffectedByTension|}}}
 
|IsAffectedByTension={{{IsAffectedByTension|}}}
 
|CrisisModifier={{{CrisisModifier|}}}
 
|CrisisModifier={{{CrisisModifier|}}}
 
|IframeDuration={{#iferror: {{#expr:{{{ZoominTime|}}} + {{{Zoom2Time|}}} + {{{ZoomWaitTime|}}} }} | ? | {{#expr:{{{ZoominTime|}}} + {{{Zoom2Time|}}} + {{{ZoomWaitTime|}}} }} second(s) }}
 
|IframeDuration={{#iferror: {{#expr:{{{ZoominTime|}}} + {{{Zoom2Time|}}} + {{{ZoomWaitTime|}}} }} | ? | {{#expr:{{{ZoominTime|}}} + {{{Zoom2Time|}}} + {{{ZoomWaitTime|}}} }} second(s) }}
}}
+
|MaxAmmo={{{MaxAmmo|}}}
 +
|AmmoUsage={{{AmmoUsage|}}}
 +
}}
 
| }}<!--
 
| }}<!--
  
Line 59: Line 93:
 
<div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;overflow:hidden">
 
<div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;overflow:hidden">
 
<div style="width:350px;text-align:center;display:flex;flex-direction:column;justify-content:center">{{#tag:tabber|
 
<div style="width:350px;text-align:center;display:flex;flex-direction:column;justify-content:center">{{#tag:tabber|
Icon={{#ifexist: File:{{{SkillLv1IconName|}}}.png | [[File:{{{SkillLv1IconName|}}}.png]] | [[File:Unknown.png|link=File:{{{SkillLv1IconName|}}}.png]] }}
+
Icon={{#ifexist: File:{{{SkillLv1IconName|}}}.png | [[File:{{{SkillLv1IconName|}}}.png]] | [[File:Unknown.png|112x112px|link=File:{{{SkillLv1IconName|}}}.png]] }}
 
{{!}}-{{!}}
 
{{!}}-{{!}}
Borderless={{#ifexist: File:{{{SkillLv1IconName|}}} Borderless.png | [[File:{{{SkillLv1IconName|}}} Borderless.png]] | [[File:Unknown.png|link=File:{{{SkillLv1IconName|}}} Borderless.png]] }}
+
Borderless={{#ifexist: File:{{{SkillLv1IconName|}}} Borderless.png | [[File:{{{SkillLv1IconName|}}} Borderless.png]] | [[File:Unknown.png|108x98px|link=File:{{{SkillLv1IconName|}}} Borderless.png]] }}
 
{{exists|File:{{{SkillLv1IconName|}}} (Small).png |
 
{{exists|File:{{{SkillLv1IconName|}}} (Small).png |
 
then={{!}}-{{!}} Small Icon=[[File:{{{SkillLv1IconName|}}} (Small).png]] |
 
then={{!}}-{{!}} Small Icon=[[File:{{{SkillLv1IconName|}}} (Small).png]] |
 
else= }}
 
else= }}
}}</div>
+
}}
 +
{{#ifeq:{{{SkillLv3IconName|}}}|{{{SkillLv2IconName|}}}||
 +
{{#tag:tabber|
 +
Lv3 Icon=[[File:{{{SkillLv3IconName|}}}.png]]
 +
{{!}}-{{!}}
 +
Borderless=[[File:{{{SkillLv3IconName|}}} Borderless.png]]
 +
}}}}
 +
{{#ifeq:{{{SkillLv4IconName|{{{SkillLv3IconName|}}}}}}|{{{SkillLv3IconName|}}}||
 +
{{#tag:tabber|
 +
Lv4 Icon=[[File:{{{SkillLv4IconName|}}}.png]]
 +
{{!}}-{{!}}
 +
Borderless=[[File:{{{SkillLv4IconName|}}} Borderless.png]]
 +
}}}}
 +
{{#if:{{{AltSkillName1|}}}{{{AltSkillIconName1|}}}
 +
|{{#tag:tabber|
 +
{{{AltSkillName1|}}}=[[File:{{{AltSkillIconName1|}}}.png]]
 +
{{!}}-{{!}}
 +
Borderless=[[File:{{{AltSkillIconName1|}}} Borderless.png]]
 +
}}}}
 +
{{#if:{{{AltSkillName2|}}}{{{AltSkillIconName2|}}}
 +
|{{#tag:tabber|
 +
{{{AltSkillName2|}}}=[[File:{{{AltSkillIconName2|}}}.png]]
 +
{{!}}-{{!}}
 +
Borderless=[[File:{{{AltSkillIconName2|}}} Borderless.png]]
 +
}}}}
 +
{{#if:{{{AltSkillName3|}}}{{{AltSkillIconName3|}}}
 +
|{{#tag:tabber|
 +
{{{AltSkillName3|}}}=[[File:{{{AltSkillIconName3|}}}.png]]
 +
{{!}}-{{!}}
 +
Borderless=[[File:{{{AltSkillIconName3|}}} Borderless.png]]
 +
}}}}</div>
 
<div class="skill-levels skill-details" style="flex-grow:1;text-align:center">
 
<div class="skill-levels skill-details" style="flex-grow:1;text-align:center">
<p style="width:300px;margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Description</p>
+
<p style="width:300px;margin:15px auto 0;border-bottom:1px solid;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Description</p>
{{#if:{{{HideLevel3|}}} | {{#tag:tabber|
+
{{#tag:tabber|
 
Lv1=
 
Lv1=
 
<div style="flex-grow:1;text-align:center">
 
<div style="flex-grow:1;text-align:center">
Line 74: Line 138:
 
</div>
 
</div>
  
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{Sp|}}} }}
+
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{Sp|}}} }}<!--
 +
-->{{#ifexpr: {{{Sp|0}}} != {{{SpEdit|0}}} | {{TermDescription|{{Tooltip|Shared SP Cost|Amount a skill needs to be charged before the skill can be cast as a shared skill.}}|{{{SpEdit|}}} }} }}<!--
 +
 
 +
-->{{#ifexpr:{{{MaxSkillLevel|}}} >= 2 |
 
{{!}}-{{!}}
 
{{!}}-{{!}}
 
Lv2=
 
Lv2=
Line 81: Line 148:
 
</div>
 
</div>
  
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{SpLv2|{{{Sp|}}}}}} }}
+
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{SpLv2|{{{Sp|}}}}}} }}<!--
}} | {{#tag:tabber|
+
-->{{#ifexpr: {{{SpLv2|0}}} != {{{SpLv2Edit|0}}} | {{TermDescription|{{Tooltip|Shared SP Cost|Amount a skill needs to be charged before the skill can be cast as a shared skill.}}|{{{SpLv2Edit|}}} }} }}<!--
Lv1=
 
<div style="flex-grow:1;text-align:center">
 
<div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Description1|No details yet.}}}</div>
 
</div>
 
  
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{Sp|}}} }}
+
-->{{#ifexpr:{{{MaxSkillLevel|}}} >= 3 |
 
{{!}}-{{!}}
 
{{!}}-{{!}}
Lv2=
+
Lv3=
 
<div style="flex-grow:1;text-align:center">
 
<div style="flex-grow:1;text-align:center">
<div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Description2|No details yet.}}}</div>
+
<div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Description3|No details yet.}}}</div>
 
</div>
 
</div>
  
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{SpLv2|{{{Sp|}}}}}} }}
+
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{SpLv3|}}} }}<!--
{{!}}-{{!}}
+
-->{{#ifexpr: {{{SpLv3|0}}} != {{{SpLv3Edit|0}}} | {{TermDescription|{{Tooltip|Shared SP Cost|Amount a skill needs to be charged before the skill can be cast as a shared skill.}}|{{{SpLv3Edit|}}} }} }}<!--
Lv3=
 
<div style="flex-grow:1;text-align:center">
 
<div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Description3|No details yet.}}}</div>
 
</div><!--
 
  
-->{{#if:{{{Description4|}}}
+
-->{{#ifexpr:{{{MaxSkillLevel|}}} >= 4 |  
| {{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{SpLv2|{{{Sp|}}}}}} }}
 
 
{{!}}-{{!}}
 
{{!}}-{{!}}
 
Lv4=
 
Lv4=
 
<div style="flex-grow:1;text-align:center">
 
<div style="flex-grow:1;text-align:center">
 
<div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Description4|No details yet.}}}</div>
 
<div style="width:300px;margin:5px auto 10px;font-style:italic;font-size:.9em;">{{{Description4|No details yet.}}}</div>
</div>}}
+
</div>
  
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{Sp|{{{Sp|}}}}}} }}
+
{{TermDescription|{{Tooltip|SP Cost|Amount a skill needs to be charged before the skill can be cast.}}|{{{SpLv4|}}} }}<!--
}}
+
-->{{#ifexpr: {{{SpLv4|0}}} != {{{SpLv4Edit|0}}} | {{TermDescription|{{Tooltip|Shared SP Cost|Amount a skill needs to be charged before the skill can be cast as a shared skill.}}|{{{SpLv4Edit|}}} }} }}
}}
+
<!--Lv4-->}}
{{#if:{{{SpRegen|}}} | {{TermDescription|{{Tooltip|SP Regen|Amount of SP recovered per second}}|{{{SpRegen|}}} }} }}
+
<!--Lv3-->}}
 +
<!--Lv2-->}}
 +
<!--Tabber-->}}<!--
 +
-->{{#if:{{{SpRegen|}}} | {{TermDescription|{{Tooltip|SP Regen|Amount of SP recovered per second}}|{{{SpRegen|}}} }} }}<!--
 +
-->{{#if:{{{MaxAmmo|}}} | {{TermDescription|{{Tooltip|Max Ammo|Maximum Ammo that can be held at a time}}|{{{MaxAmmo|}}} }} }}<!--
 +
-->{{#if:{{{AmmoUsage|}}} | {{TermDescription|{{Tooltip|Ammo Usage|Ammo expended per use of this skill}}|{{{AmmoUsage|}}} }} }}
 
{{TermDescription|{{Tooltip|Camera Duration|After casting a skill, Camera Duration is the amount of time the camera zooms in on the user during the skill animation.}}|{{#iferror: {{#expr:{{{ZoominTime|0}}} + {{{Zoom2Time|0}}} + {{{ZoomWaitTime|0}}} }} | ? | {{#expr:{{{ZoominTime|0}}} + {{{Zoom2Time|0}}} + {{{ZoomWaitTime|0}}} }} second(s) }} }}
 
{{TermDescription|{{Tooltip|Camera Duration|After casting a skill, Camera Duration is the amount of time the camera zooms in on the user during the skill animation.}}|{{#iferror: {{#expr:{{{ZoominTime|0}}} + {{{Zoom2Time|0}}} + {{{ZoomWaitTime|0}}} }} | ? | {{#expr:{{{ZoominTime|0}}} + {{{Zoom2Time|0}}} + {{{ZoomWaitTime|0}}} }} second(s) }} }}
 
{{TermDescription|{{Tooltip|Affected by Energized|Stacks 50% additively with other Attack Skills and Recovery Potency boost modifiers. Resets on use or being afflicted.}}|{{#switch:{{{IsAffectedByTension|}}}|1=Yes|0=No|Unknown}} }}
 
{{TermDescription|{{Tooltip|Affected by Energized|Stacks 50% additively with other Attack Skills and Recovery Potency boost modifiers. Resets on use or being afflicted.}}|{{#switch:{{{IsAffectedByTension|}}}|1=Yes|0=No|Unknown}} }}
Line 121: Line 184:
 
<div style="padding:1em;">
 
<div style="padding:1em;">
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Adventurers with this skill</p>
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Adventurers with this skill</p>
{{#cargo_query:tables=Adventurers|fields=CONCAT('[[File:',Id,' 0',VariationId,' r0',Rarity,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Skill1Name="{{{Name|{{PAGENAME}}}}}" OR Skill2Name="{{{Name|{{PAGENAME}}}}}"|format=ul|group by=_pageName|default=
+
{{#cargo_query:tables=Adventurers|fields=CONCAT('[[File:',Id,' 0',VariationId,' r0',Rarity,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=Skill1Name="{{{Name|{{PAGENAME}}}}}" OR Skill1ID="{{{SkillId|}}}" OR Skill2ID="{{{SkillId|}}}" OR Skill2Name="{{{Name|{{PAGENAME}}}}}"|format=ul|group by=_pageName|default=
 
:''There are no adventurers with this skill.''|order by= ElementalTypeId ASC, WeaponTypeId ASC, Rarity DESC, Id DESC, FullName ASC}}
 
:''There are no adventurers with this skill.''|order by= ElementalTypeId ASC, WeaponTypeId ASC, Rarity DESC, Id DESC, FullName ASC}}
  
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Weapons with this skill</p>
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Weapons with this skill</p>
{{#cargo_query:tables=Weapons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,' ',FormId,'.png|24px|link=',_pageName,']] [[',_pageName,'|',WeaponName,']]')|where=SkillName="{{{Name|{{PAGENAME}}}}}"|format=ul|group by=_pageName|default=
+
{{#cargo_query:tables=Weapons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,' ',FormId,'.png|24px|link=',_pageName,']] [[',_pageName,'|',WeaponName,']]')|where=SkillName="{{{Name|{{PAGENAME}}}}}" OR Skill="{{{SkillId|}}}"|format=ul|group by=_pageName|default=
 
:''There are no weapons with this skill.''|order by= ElementalTypeId ASC, TypeId ASC, Rarity DESC, Id DESC, WeaponName ASC}}
 
:''There are no weapons with this skill.''|order by= ElementalTypeId ASC, TypeId ASC, Rarity DESC, Id DESC, WeaponName ASC}}
  
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Dragons with this skill</p>
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Dragons with this skill</p>
{{#cargo_query:tables=Dragons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=SkillName="{{{Name|{{PAGENAME}}}}}"|format=ul|group by=_pageName|default=
+
{{#cargo_query:tables=Dragons|fields=CONCAT('[[File:',BaseId,' 0',VariationId,'.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=SkillName="{{{Name|{{PAGENAME}}}}}" OR SkillID="{{{SkillId|}}}" OR Skill2ID="{{{SkillId|}}}" OR Skill2Name="{{{Name|{{PAGENAME}}}}}"|format=ul|group by=_pageName|default=
 
:''There are no dragons with this skill.''|order by= ElementalTypeId ASC, Rarity DESC, Id DESC, FullName ASC}}
 
:''There are no dragons with this skill.''|order by= ElementalTypeId ASC, Rarity DESC, Id DESC, FullName ASC}}
  

Latest revision as of 06:12, 30 July 2020

50px Documentation

Usage

{{Skill
|SkillId=
|Name={{PAGENAME}}
|SkillType=
|SkillLv1IconName=
|SkillLv2IconName=
|SkillLv3IconName=
|SkillLv4IconName=
|Description1=
|Description2=
|Description3=
|Description4=
|HideLevel3= (DEPRECATED AND REMOVED)
|MaxSkillLevel=Integer (USE THIS INSTEAD)
|Sp=
|SpLv2=
|SpLv3=
|SpLv4=
|SpEdit=
|SpLv2Edit=
|SpLv3Edit=
|SpLv4Edit=
|SpDragon=
|SpLv2Dragon=
|SpLv3Dragon=
|SpLv4Dragon=
|SpRegen=
|IsAffectedByTension=
|ZoominTime=
|Zoom2Time=
|ZoomWaitTime=
|CrisisModifier= (leave blank if none)
|MaxAmmo= (leave blank if none)
|AmmoUsage= (leave blank if none)
}}

This template defines the table "Skills". This table has not been created yet.