Difference between revisions of "Template:Skill"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Boblers
(adding support for SkillId in Adventurer and Weapon sections)
>Boblers
(adding support for a third alt icon)
 
(17 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
|SkillLv3IconName=String
 
|SkillLv3IconName=String
 
|SkillLv4IconName=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)
Line 48: Line 51:
 
|SkillLv3IconName={{{SkillLv3IconName|}}}
 
|SkillLv3IconName={{{SkillLv3IconName|}}}
 
|SkillLv4IconName={{{SkillLv4IconName|}}}
 
|SkillLv4IconName={{{SkillLv4IconName|}}}
 +
|AltSkillIconName1={{{AltSkillIconName1|}}}
 +
|AltSkillIconName2={{{AltSkillIconName2|}}}
 +
|AltSkillIconName3={{{AltSkillIconName3|}}}
 
|Description1={{{Description1|}}}
 
|Description1={{{Description1|}}}
 
|Description2={{{Description2|}}}
 
|Description2={{{Description2|}}}
Line 106: Line 112:
 
Borderless=[[File:{{{SkillLv4IconName|}}} Borderless.png]]
 
Borderless=[[File:{{{SkillLv4IconName|}}} Borderless.png]]
 
}}}}
 
}}}}
{{#ifexist: File:{{{AltSkillIconName1|}}}.png|
+
{{#if:{{{AltSkillName1|}}}{{{AltSkillIconName1|}}}
{{#tag:tabber|
+
|{{#tag:tabber|
 
{{{AltSkillName1|}}}=[[File:{{{AltSkillIconName1|}}}.png]]
 
{{{AltSkillName1|}}}=[[File:{{{AltSkillIconName1|}}}.png]]
 
{{!}}-{{!}}
 
{{!}}-{{!}}
 
Borderless=[[File:{{{AltSkillIconName1|}}} Borderless.png]]
 
Borderless=[[File:{{{AltSkillIconName1|}}} Borderless.png]]
 
}}}}
 
}}}}
{{#ifexist: File:{{{AltSkillIconName2|}}}.png|
+
{{#if:{{{AltSkillName2|}}}{{{AltSkillIconName2|}}}
{{#tag:tabber|
+
|{{#tag:tabber|
 
{{{AltSkillName2|}}}=[[File:{{{AltSkillIconName2|}}}.png]]
 
{{{AltSkillName2|}}}=[[File:{{{AltSkillIconName2|}}}.png]]
 
{{!}}-{{!}}
 
{{!}}-{{!}}
 
Borderless=[[File:{{{AltSkillIconName2|}}} Borderless.png]]
 
Borderless=[[File:{{{AltSkillIconName2|}}} Borderless.png]]
 +
}}}}
 +
{{#if:{{{AltSkillName3|}}}{{{AltSkillIconName3|}}}
 +
|{{#tag:tabber|
 +
{{{AltSkillName3|}}}=[[File:{{{AltSkillIconName3|}}}.png]]
 +
{{!}}-{{!}}
 +
Borderless=[[File:{{{AltSkillIconName3|}}} Borderless.png]]
 
}}}}</div>
 
}}}}</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>
 
{{#tag:tabber|
 
{{#tag:tabber|
 
Lv1=
 
Lv1=
Line 176: Line 188:
  
 
<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}}}}}" OR SkillID="{{{SkillId|}}}"|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}}
  

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.