Difference between revisions of "Template:AbilityDisplayTEST"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Canim44
(Attempting CSS fix)
>Canim44
(Moved </div>)
Line 67: Line 67:
 
}
 
}
 
}}
 
}}
<div class="tab">{{Tab/header|Lv1}}</div>
+
<div class="tab">{{Tab/header|Lv1}}
 
{{#invoke:CargoQuery|main
 
{{#invoke:CargoQuery|main
 
|q?tables={{#var:table}}
 
|q?tables={{#var:table}}
Line 75: Line 75:
 
|default=N/A
 
|default=N/A
 
|template=AbilityDisplayTab
 
|template=AbilityDisplayTab
}}
+
}}</div>
 
{{#ifexpr: {{#var:level}} >= 2|
 
{{#ifexpr: {{#var:level}} >= 2|
<div class="tab">{{Tab/header|Lv2}}</div>
+
<div class="tab">{{Tab/header|Lv2}}
 
{{#invoke:CargoQuery|main
 
{{#invoke:CargoQuery|main
 
|q?tables={{#var:table}}
 
|q?tables={{#var:table}}
Line 85: Line 85:
 
|default=N/A
 
|default=N/A
 
|template=AbilityDisplayTab
 
|template=AbilityDisplayTab
}}
+
}}</div>
 
|}}
 
|}}
 
{{#ifexpr: {{#var:level}} >= 3|
 
{{#ifexpr: {{#var:level}} >= 3|
<div class="tab">{{Tab/header|Lv3}}</div>
+
<div class="tab">{{Tab/header|Lv3}}
 
{{#invoke:CargoQuery|main
 
{{#invoke:CargoQuery|main
 
|q?tables={{#var:table}}
 
|q?tables={{#var:table}}
Line 96: Line 96:
 
|default=N/A
 
|default=N/A
 
|template=AbilityDisplayTab
 
|template=AbilityDisplayTab
}}
+
}}</div>
 
|}}
 
|}}
 
{{#ifexpr: {{#var:level}} >= 4|
 
{{#ifexpr: {{#var:level}} >= 4|
<div class="tab">{{Tab/header|Lv4}}</div>
+
<div class="tab">{{Tab/header|Lv4}}
 
{{#invoke:CargoQuery|main
 
{{#invoke:CargoQuery|main
 
|q?tables={{#var:table}}
 
|q?tables={{#var:table}}
Line 107: Line 107:
 
|default=N/A
 
|default=N/A
 
|template=AbilityDisplayTab
 
|template=AbilityDisplayTab
}}
+
}}</div>
 
|}}
 
|}}
 
{{#ifexpr: {{#var:level}} >= 5|
 
{{#ifexpr: {{#var:level}} >= 5|
<div class="tab">{{Tab/header|Lv5}}</div>
+
<div class="tab">{{Tab/header|Lv5}}
 
{{#invoke:CargoQuery|main
 
{{#invoke:CargoQuery|main
 
|q?tables={{#var:table}}
 
|q?tables={{#var:table}}
Line 118: Line 118:
 
|default=N/A
 
|default=N/A
 
|template=AbilityDisplayTab
 
|template=AbilityDisplayTab
}}
+
}}</div>
 
|}}
 
|}}
 
}}
 
}}
 
{{Tab/end}}
 
{{Tab/end}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 13:26, 17 February 2020

50px Documentation

Example

{{AbilityDisplayTEST|isCoability=1|Lv1=101050003|Lv2=101050004|Lv3=101050005|Lv4=101050007|Lv5=101050010}}
{{AbilityDisplayTEST|Lv1=110060004|Lv2=110060005|Lv3=110060006|DisplayCap=1}} 
{{AbilityDisplayTEST|Lv1=320000905|Lv2=320000906|DisplayCap=1}} <-- doesn't have a cap, shouldn't display anything

{{#css: .tab .ability-header {

 background-color: #e6f7ff;
 border-bottom: 1px solid skyblue;
 font-size: 14px;
 padding: 5px 10px;
 position: absolute;
 right: 0;
 left: 0;
 top: 0;
 white-space: nowrap;

} /** Hack to expand the header to the right width */ .tab .ability-header-spacer {

 font-size: 14px;
 height: 0px;
 padding: 0 10px;
 visibility: hidden;
 white-space: nowrap;

} }}

Lv1
Lua error: Error: Table CoAbilities not found..
Lv2
Lua error: Error: Table CoAbilities not found..
Lv3
Lua error: Error: Table CoAbilities not found..
Lv4
Lua error: Error: Table CoAbilities not found..
Lv5
Lua error: Error: Table CoAbilities not found..
Unknown.png
[[
Error: Table Abilities not found.
]]
Lv1
Error: Table Abilities not found.
Lv2
Error: Table Abilities not found.
Lv3
Error: Table Abilities not found.
Unknown.png
[[
Error: Table Abilities not found.
]]
Lv1
Error: Table Abilities not found.
Lv2
Error: Table Abilities not found.

Mana Spiral Update

Abilities that change family midway (Cassandra's)

{{AbilityDisplayTEST|Lv1=110120003|Lv2=110120004|Lv3=721}}
{{AbilityDisplayTEST|Lv1=110020404|Lv2=110020406|Lv3=682}}

{{#css: .tab .ability-header {

 background-color: #e6f7ff;
 border-bottom: 1px solid skyblue;
 font-size: 14px;
 padding: 5px 10px;
 position: absolute;
 right: 0;
 left: 0;
 top: 0;
 white-space: nowrap;

} /** Hack to expand the header to the right width */ .tab .ability-header-spacer {

 font-size: 14px;
 height: 0px;
 padding: 0 10px;
 visibility: hidden;
 white-space: nowrap;

} }}

Lv1
Lua error: Error: Table Abilities not found..
Lv2
Lua error: Error: Table Abilities not found..
Lv3
Lua error: Error: Table Abilities not found..

{{#css: .tab .ability-header {

 background-color: #e6f7ff;
 border-bottom: 1px solid skyblue;
 font-size: 14px;
 padding: 5px 10px;
 position: absolute;
 right: 0;
 left: 0;
 top: 0;
 white-space: nowrap;

} /** Hack to expand the header to the right width */ .tab .ability-header-spacer {

 font-size: 14px;
 height: 0px;
 padding: 0 10px;
 visibility: hidden;
 white-space: nowrap;

} }}

Lv1
Lua error: Error: Table Abilities not found..
Lv2
Lua error: Error: Table Abilities not found..
Lv3
Lua error: Error: Table Abilities not found..

Long Names

{{AbilityDisplayTEST|Lv1=584|}}
{{AbilityDisplayTEST|Lv1=585}}
{{AbilityDisplayTEST|Lv1=584|Lv2=585}}
{{AbilityDisplayTEST|Lv1=584|Lv2=585|DisplayCap=2}}

{{#css: .tab .ability-header {

 background-color: #e6f7ff;
 border-bottom: 1px solid skyblue;
 font-size: 14px;
 padding: 5px 10px;
 position: absolute;
 right: 0;
 left: 0;
 top: 0;
 white-space: nowrap;

} /** Hack to expand the header to the right width */ .tab .ability-header-spacer {

 font-size: 14px;
 height: 0px;
 padding: 0 10px;
 visibility: hidden;
 white-space: nowrap;

} }}

Lv1
Lua error: Error: Table Abilities not found..

{{#css: .tab .ability-header {

 background-color: #e6f7ff;
 border-bottom: 1px solid skyblue;
 font-size: 14px;
 padding: 5px 10px;
 position: absolute;
 right: 0;
 left: 0;
 top: 0;
 white-space: nowrap;

} /** Hack to expand the header to the right width */ .tab .ability-header-spacer {

 font-size: 14px;
 height: 0px;
 padding: 0 10px;
 visibility: hidden;
 white-space: nowrap;

} }}

Lv1
Lua error: Error: Table Abilities not found..
Unknown.png
[[
Error: Table Abilities not found.
]]
Lv1
Error: Table Abilities not found.
Lv2
Error: Table Abilities not found.