Difference between revisions of "Template:AbilityDisplay"
Jump to navigation
Jump to search
>Caledor92 |
>Caledor92 (added DisplayCap parameter) |
||
| Line 11: | Line 11: | ||
! {{AbilityDisplayHeader|icon={{#cargo_query:tables={{#var:table}}|fields=AbilityIconName=icon|where=Id='{{{Lv1|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html}}|name={{#cargo_query:tables={{#var:table}}|fields=GenericName=name|where=Id='{{{Lv1|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html|default={{{Lv1|}}}}}|event={{{event|0}}}}} | ! {{AbilityDisplayHeader|icon={{#cargo_query:tables={{#var:table}}|fields=AbilityIconName=icon|where=Id='{{{Lv1|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html}}|name={{#cargo_query:tables={{#var:table}}|fields=GenericName=name|where=Id='{{{Lv1|}}}'|group by=_pageName|named args=yes|limit=1|more results text=|no html|default={{{Lv1|}}}}}|event={{{event|0}}}}} | ||
|- | |- | ||
| − | | style="text-align:center;" | {{# | + | | style="text-align:center;" | |
| − | | | + | {{#tag:tabber| {{#if:{{{DisplayCap|}}}<!-- |
| − | + | ||
| + | // 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 |
| − | | | + | |Lv2={{#cargo_query:tables={{#var:table}},AbilityLimitedGroup|join on={{#var:table}}.AbilityLimitedGroupId1=AbilityLimitedGroup.Id|fields=Details,AbilityLimitedText=,PartyPowerWeight=Might|where={{#var:table}}.Id='{{{Lv2|}}}'|default=N/A|format=list}} |
| − | Lv1={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv1|}}}'|group by=_pageName|default=N/A|format=list}} | + | {{!}}-{{!}} |}} |
| + | {{#ifexpr: {{#var:level}} >= 3 | ||
| + | |Lv3={{#cargo_query:tables={{#var:table}},AbilityLimitedGroup|join on={{#var:table}}.AbilityLimitedGroupId1=AbilityLimitedGroup.Id|fields=Details,AbilityLimitedText=,PartyPowerWeight=Might|where={{#var:table}}.Id='{{{Lv3|}}}'|default=N/A|format=list}} | ||
| + | {{!}}-{{!}} |}} | ||
| + | {{#ifexpr: {{#var:level}} >= 4 | ||
| + | |Lv4={{#cargo_query:tables={{#var:table}},AbilityLimitedGroup|join on={{#var:table}}.AbilityLimitedGroupId1=AbilityLimitedGroup.Id|fields=Details,AbilityLimitedText=,PartyPowerWeight=Might|where={{#var:table}}.Id='{{{Lv4|}}}'|default=N/A|format=list}} | ||
| + | {{!}}-{{!}} |}} | ||
| + | {{#ifexpr: {{#var:level}} >= 5 | ||
| + | |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 | ||
| + | -->|Lv1={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv1|}}}'|group by=_pageName|default=N/A|format=list}} | ||
{{!}}-{{!}} | {{!}}-{{!}} | ||
| − | + | {{#ifexpr: {{#var:level}} >= 2 | |
| − | + | |Lv2={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv2|}}}'|group by=_pageName|default=N/A|format=list}} | |
| − | + | {{!}}-{{!}} |}} | |
| − | + | {{#ifexpr: {{#var:level}} >= 3 | |
| − | + | |Lv3={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv3|}}}'|group by=_pageName|default=N/A|format=list}} | |
| − | {{!}}-{{!}} | + | {{!}}-{{!}} |}} |
| − | + | {{#ifexpr: {{#var:level}} >= 4 | |
| − | + | |Lv4={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv4|}}}'|group by=_pageName|default=N/A|format=list}} | |
| − | + | {{!}}-{{!}} |}} | |
| − | + | {{#ifexpr: {{#var:level}} >= 5 | |
| − | + | |Lv5={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv5|}}}'|group by=_pageName|default=N/A|format=list}} | |
| − | + | {{!}}-{{!}} |}} }} | |
| − | |||
| − | {{!}}-{{! | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | Lv4={{#cargo_query:tables={{#var:table}}|fields=Details,PartyPowerWeight=Might|where=Id='{{{Lv4|}}}'|group by=_pageName|default=N/A|format=list}} | ||
| − | {{!}}-{{!}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{!}}-{{! | ||
| − | |||
| − | }} | ||
| − | |||
}} | }} | ||
|}</includeonly> | |}</includeonly> | ||
Revision as of 09:39, 27 November 2019
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
Error: Table CoAbilities not found. ]]
|
|---|
|
Error: Table CoAbilities not found.
Error: Table CoAbilities not found.
Error: Table CoAbilities not found.
Error: Table CoAbilities not found.
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}}
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.
Error: Table Abilities not found.
|
Long Names
{{AbilityDisplay|Lv1=584|}}
{{AbilityDisplay|Lv1=585}}
{{AbilityDisplay|Lv1=584|Lv2=585}}
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.
|