Difference between revisions of "Template:AbilityDisplay"
Jump to navigation
Jump to search
>Canim44 (Moved tabber inside of if conditional; added div class noAbilityCap for CSS) |
>Canim44 |
||
| Line 1: | Line 1: | ||
| − | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> | + | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!-- |
// Code to determine which table we want to use | // Code to determine which table we want to use | ||
| Line 23: | Line 23: | ||
|- | |- | ||
| style="text-align:center;{{#if:{{{DisplayCap|}}}||padding-top:45px;position:relative;}}" | | | style="text-align:center;{{#if:{{{DisplayCap|}}}||padding-top:45px;position:relative;}}" | | ||
| − | {{#if:{{{DisplayCap|}}}<!-- | + | {{#tag:tabber| {{#if:{{{DisplayCap|}}}<!-- |
| + | |||
// Display Ability Cap for Wyrmprints | // Display Ability Cap for Wyrmprints | ||
| − | --> | + | -->| Lv1={{#cargo_query:tables={{#var:table}},AbilityLimitedGroup|join on={{#var:table}}.AbilityLimitedGroupId1=AbilityLimitedGroup.Id|fields=Details,AbilityLimitedText=,PartyPowerWeight=Might|where={{#var:table}}.Id='{{{Lv1|}}}'|default=N/A|format=list}} |
{{#ifexpr: {{#var:level}} >= 2| | {{#ifexpr: {{#var:level}} >= 2| | ||
{{!}}-{{!}} | {{!}}-{{!}} | ||
| Line 41: | Line 42: | ||
{{!}}-{{!}} | {{!}}-{{!}} | ||
Lv5={{#cargo_query:tables={{#var:table}},AbilityLimitedGroup|join on={{#var:table}}.AbilityLimitedGroupId1=AbilityLimitedGroup.Id|fields=Details,AbilityLimitedText=,PartyPowerWeight=Might|where={{#var:table}}.Id='{{{Lv5|}}}'|default=N/A|format=list}} | Lv5={{#cargo_query:tables={{#var:table}},AbilityLimitedGroup|join on={{#var:table}}.AbilityLimitedGroupId1=AbilityLimitedGroup.Id|fields=Details,AbilityLimitedText=,PartyPowerWeight=Might|where={{#var:table}}.Id='{{{Lv5|}}}'|default=N/A|format=list}} | ||
| − | | | + | |}}<!-- |
| − | }}<!-- | + | |
// Default: don't display Ability Cap | // Default: don't display Ability Cap | ||
| − | --> | + | -->|{{#css: |
| + | .tabbertab .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 */ | ||
| + | .tabbertab .ability-header-spacer { | ||
| + | font-size: 14px; | ||
| + | height: 0px; | ||
| + | padding: 0 10px; | ||
| + | visibility: hidden; | ||
| + | white-space: nowrap; | ||
| + | } | ||
| + | }} | ||
| + | Lv1={{#invoke:CargoQuery|main | ||
|q?tables={{#var:table}} | |q?tables={{#var:table}} | ||
|q?fields=GenericName=Name,AbilityIconName=Icon,Details,PartyPowerWeight=Might,CONCAT('{{{event|0}}}')=Event | |q?fields=GenericName=Name,AbilityIconName=Icon,Details,PartyPowerWeight=Might,CONCAT('{{{event|0}}}')=Event | ||
| Line 96: | Line 118: | ||
}} | }} | ||
|}} | |}} | ||
| − | |||
| − | |||
}} | }} | ||
}} | }} | ||
|}</includeonly> | |}</includeonly> | ||
Revision as of 22:01, 22 February 2020
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.. |
Error: Table Abilities not found. ]]
|
|---|
|
Error: Table Abilities not found.
Error: Table Abilities not found.
Error: Table Abilities not found.
|
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.. |