Difference between revisions of "Template:AbilityDisplay"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Yvsdrop
m (fix header wrapping issue)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
+
<noinclude>{{AbilityDisplay|Lv1=584|Lv2=585|Lv3=609}}{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
  
 
// Code to determine which table we want to use
 
// Code to determine which table we want to use
Line 15: Line 15:
 
   }}
 
   }}
 
}}}}<!--
 
}}}}<!--
 
// Use DisplayCap code for single level abilities (usually long names).
 
-->{{#ifexpr: {{#var:level}} = 1 | {{#vardefine:oldcode|1}} }}<!--
 
  
 
// Table Display Code
 
// Table Display Code
 
--> {| class="skill-table skill-levels"
 
--> {| class="skill-table skill-levels"
{{#if:{{{DisplayCap|}}}{{#var:oldcode}}|
+
{{#if:{{{DisplayCap|}}}|
 
! {{AbilityDisplayHeader|icon={{#cargo_query:tables={{#var:table}}|fields=AbilityIconName=icon|where=Id='{{{Lv{{#var:level}}|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html}}|name={{#cargo_query:tables={{#var:table}}|fields=GenericName=name|where=Id='{{{Lv{{#var:level}}|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html|default={{{Lv{{#var:level}}|}}}}}|event={{{event|0}}}}}
 
! {{AbilityDisplayHeader|icon={{#cargo_query:tables={{#var:table}}|fields=AbilityIconName=icon|where=Id='{{{Lv{{#var:level}}|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html}}|name={{#cargo_query:tables={{#var:table}}|fields=GenericName=name|where=Id='{{{Lv{{#var:level}}|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html|default={{{Lv{{#var:level}}|}}}}}|event={{{event|0}}}}}
 
|}}
 
|}}
 
|-
 
|-
| style="text-align:center;{{#if:{{{DisplayCap|}}}{{#var:oldcode}}||padding-top:45px;position:relative;}}" |
+
| style="text-align:center;{{#if:{{{DisplayCap|}}}||padding-top:45px;position:relative;}}" |
{{#tag:tabber| {{#if:{{{DisplayCap|}}}{{#var:oldcode}}<!--
+
{{#tag:tabber| {{#if:{{{DisplayCap|}}}<!--
  
 
// Display Ability Cap for Wyrmprints
 
// Display Ability Cap for Wyrmprints
Line 58: Line 55:
 
   left: 0;
 
   left: 0;
 
   top: 0;
 
   top: 0;
 +
  white-space: nowrap;
 +
}
 +
/** Hack to expand the header to the right width */
 +
.tabbertab .ability-header-spacer {
 +
  font-size: 14px;
 +
  height: 0px;
 +
  padding: 0 10px;
 +
  visibility: hidden;
 +
  white-space: nowrap;
 
}
 
}
 
}}
 
}}

Revision as of 11:08, 15 January 2020

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

50px Documentation

Example

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

Lua error: Error: Table CoAbilities not found..

Lua error: Error: Table CoAbilities not found..

Lua error: Error: Table CoAbilities not found..

Lua error: Error: Table CoAbilities not found..

Lua error: Error: Table CoAbilities not found..

Unknown.png
[[
Error: Table Abilities not found.
]]

Error: Table Abilities not found.

Error: Table Abilities not found.

Error: Table Abilities not found.

Unknown.png
[[
Error: Table Abilities not found.
]]

Error: Table Abilities not found.

Error: Table Abilities not found.

Mana Spiral Update

Abilities that change family midway (Cassandra's)

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

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Long Names

{{AbilityDisplay|Lv1=584|}}
{{AbilityDisplay|Lv1=585}}
{{AbilityDisplay|Lv1=584|Lv2=585}}

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..

Lua error: Error: Table Abilities not found..