Difference between revisions of "Template:AbilityDisplayTEST"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Canim44
(-}})
>Canim44
(Formating & -|)
Line 4: Line 4:
 
<!-- Code to determine how many levels this ability has -->
 
<!-- Code to determine how many levels this ability has -->
 
{{#vardefine:level
 
{{#vardefine:level
|{{#ifexpr: {{{Lv5|}}} |5
+
    |{{#ifexpr: {{{Lv5|}}} |5
  |{{#ifexpr: {{{Lv4|}}} |4
+
        |{{#ifexpr: {{{Lv4|}}} |4
    |{{#ifexpr: {{{Lv3|}}} |3
+
            |{{#ifexpr: {{{Lv3|}}} |3
      |{{#ifexpr: {{{Lv2|}}} |2
+
                |{{#ifexpr: {{{Lv2|}}} |2
        |{{#ifexpr: {{{Lv1|}}} |1 |}}
+
                    |{{#ifexpr: {{{Lv1|}}} |1 |}}
      }}
+
                }}
 +
            }}
 +
        }}
 
     }}
 
     }}
  }}
+
}}
}}}}
 
 
<!-- Table Display Code -->
 
<!-- Table Display Code -->
 
<!-- Display Ability Cap for Wyrmprints -->
 
<!-- Display Ability Cap for Wyrmprints -->
Line 19: Line 20:
 
     |-
 
     |-
 
     ! {{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|}}}||padding-top:45px;position:relative;}}" |
 
     | style="text-align:center;{{#if:{{{DisplayCap|}}}||padding-top:45px;position:relative;}}" |

Revision as of 22:57, 23 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


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)

{{AbilityDisplayTEST|Lv1=110120003|Lv2=110120004|Lv3=721}}
{{AbilityDisplayTEST|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

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


Lua error: Error: Table Abilities not found..


Lua error: Error: Table Abilities not found..


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

Error: Table Abilities not found.

Error: Table Abilities not found.