Difference between revisions of "User:Chu2038/Sandbox"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Chu2038
>Chu2038
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>|- class="character-grid-entry grid-entry" data-class="{{{Type|}}}" data-element="{{{Element|}}}" data-weapon="{{{Weapon|}}}" data-rarity="{{{Rarity|}}}" style="text-align:center"
+
<includeonly>
 +
    |- class="character-grid-entry grid-entry" data-class="{{{Type|}}}" data-element="{{{Element|}}}" data-weapon="{{{Weapon|}}}" data-rarity="{{{Rarity|}}}" style="text-align:center"
 
     | [[File:{{{InternalId|}}} 0{{{VariationId|}}} r0{{{Rarity|}}}.png|80px|link={{{Link|}}}]]
 
     | [[File:{{{InternalId|}}} 0{{{VariationId|}}} r0{{{Rarity|}}}.png|80px|link={{{Link|}}}]]
 
     | [[{{{Link|}}}|{{{Name|}}}]]
 
     | [[{{{Link|}}}|{{{Name|}}}]]
     | <div>{{{Rarity|}}} {{InlineIcon|Icon Rarity|{{{Rarity|}}}}}</div>
+
     | [[File:Icon Skill Share.png|18px|link=]]{{{EditSkillCost|}}}
    | {{#ifeq: {{{EditSkillLevelNum|}}} | 0 | | {{#ifeq: {{{EditSkillLevelNum|}}} | 1 | {{SkillTooltip|{{{Skill1Name|}}}}} | {{SkillTooltip|{{{Skill2Name|}}}}}}} }}
+
    | {{#switch:{{{EditSkillLevelNum|}}} | 1 = {{ #vardefine:SharedSkill|{{{Skill1Name|}}} }} | 2 = {{ #vardefine:SharedSkill|{{{Skill2Name|}}} }} | }}
 +
    {{#invoke:CargoQuery|main
 +
        |q?tables=Skills
 +
        |q?fields=_pageName=Link,Name,SkillLv1IconName,SpEdit,SpLv2Edit,SpLv3Edit,SpLv4Edit,Description1,Description2,Description3,Description4,MaxSkillLevel
 +
        |q?where=Name="{{#var:SharedSkill}}"
 +
    |template=vardefine}}<p>[[File:{{#var:SkillLv1IconName}}.png|25px|link={{#var:Link}}]] [[{{#var:Link}}|{{#var:Name}}]]</p>
 +
    | {{#var:SpLv4Edit}}
 +
    | {{tab/start|default={{#var:MaxSkillLevel}}}}
 +
    {{tab/header|Lv1}}
 +
    <p>{{#var:Description1}}</p>
 +
    <!--
 +
    -->{{#ifexpr: {{#var:MaxSkillLevel}}>=2 |
 +
    <nowiki />
 +
    {{tab/header|Lv2}}
 +
    <p>{{#var:Description2}}</p>
 +
    <!--
 +
    -->{{#ifexpr: {{#var:MaxSkillLevel}}>=3 |
 +
    <nowiki />
 +
    {{tab/header|Lv3}}
 +
    <p>{{#var:Description3}}</p>
 +
    <!--
 +
    -->{{#ifexpr: {{#var:MaxSkillLevel}}>=4 |
 +
    <nowiki />
 +
    {{tab/header|Lv4}}
 +
    <p>{{#var:Description4}}</p> }} }} }}
 +
    {{tab/end}}
 
     |-
 
     |-
 
</includeonly>
 
</includeonly>
Line 10: Line 36:
 
         {| class="wikitable sortable" style="width:100%"
 
         {| class="wikitable sortable" style="width:100%"
 
         |-
 
         |-
         ! Icon
+
         ! style="width:10%" | Icon
         ! Name
+
         ! style="width:5%" | Name
         ! Rarity
+
         ! style="width:5%" | Cost
         ! Skill Share
+
         ! style="width:15%" | Shareable Skill
 +
        ! style="width:5%" | SP
 +
        ! Description
 
         {{#invoke:CargoQuery|main
 
         {{#invoke:CargoQuery|main
 
     |q?tables=Adventurers
 
     |q?tables=Adventurers
     |q?fields=_pageName=Link,FullName=Name,ElementalType=Element,Title,WeaponType=Weapon,Rarity,Availability,Id=InternalId,CharaType=Type,VariationId,ReleaseDate,Skill1Name,Skill2Name,EditSkillLevelNum
+
     |q?fields=_pageName=Link,FullName=Name,ElementalType=Element,Title,WeaponType=Weapon,Rarity,Availability,Id=InternalId,CharaType=Type,VariationId,ReleaseDate,Skill1Name,Skill2Name,EditSkillLevelNum,EditSkillCost
     |q?where=IsPlayable!=0 AND ReleaseDate <= NOW()
+
     |q?where=IsPlayable!=0 AND ReleaseDate <= NOW() AND EditSkillLevelNum>0
 
     |template=User:Chu2038/Sandbox
 
     |template=User:Chu2038/Sandbox
 
     |q?groupBy=_pageName
 
     |q?groupBy=_pageName

Latest revision as of 12:19, 25 May 2020


Icon Name Cost Shareable Skill SP Description
       Lua error: Error: Table Adventurers not found..