Difference between revisions of "Template:GenericAbility"
Jump to navigation
Jump to search
>Mornsta-gpuser (Created page with "{{Disambig}} {{PAGENAME}} may be referring to one of these pages: ==Abilities== {| class="wikitable sortable" style="text-align:center;" ! Name ! Adventurers with Ability ! Wy...") |
>FlareKyn (Hiding fields that shouldn't exist yet, but could be used in the future) |
||
| (110 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{Disambig}} | + | <noinclude>[[Category:Templates]]</noinclude><includeonly>{{Disambig}} |
{{PAGENAME}} may be referring to one of these pages: | {{PAGENAME}} may be referring to one of these pages: | ||
| − | ==Abilities== | + | {{#ifeq:{{#cargo_query:tables=Abilities|where=GenericName="{{#titleparts: {{PAGENAME}} }}"|default=0}}|0||==Abilities== |
| − | { | + | {{{!}} class="wikitable sortable" style="text-align:center;" |
! Name | ! Name | ||
| + | ! Might Value | ||
! Adventurers with Ability | ! Adventurers with Ability | ||
! Wyrmprints with Ability | ! Wyrmprints with Ability | ||
! Dragons with Ability | ! Dragons with Ability | ||
| − | + | ! Weapons with Ability | |
| + | {{!}}- | ||
{{#invoke:CargoQuery|main | {{#invoke:CargoQuery|main | ||
|q?tables=Abilities | |q?tables=Abilities | ||
| − | |q?fields=Id=Id, | + | |q?fields=_pageName=Name,Id=Id,PartyPowerWeight |
| − | |q?where=GenericName ="{{PAGENAME}}" | + | |q?where=GenericName ="{{#titleparts: {{PAGENAME}} }}" |
|q?groupBy=_pageName | |q?groupBy=_pageName | ||
| + | |q?orderBy=PartyPowerWeight DESC, Id DESC | ||
|template=AbilitySimpleTableEntry | |template=AbilitySimpleTableEntry | ||
| − | |default={{Row|-|-|-|-}} | + | |default={{Row|-|-|-|-|-|-}} |
}} | }} | ||
| − | |} | + | {{!}}} |
| − | + | }}<!-- end of abilities | |
| + | -->{{#ifeq:{{#cargo_query:tables=CoAbilities|where=GenericName="{{#titleparts: {{PAGENAME}} }}"|default=0}}|0||<nowiki></nowiki> | ||
==Co-Abilities== | ==Co-Abilities== | ||
| − | { | + | {{{!}} class="wikitable sortable" style="text-align:center;" |
! Name | ! Name | ||
| − | ! Adventurers with Co-Ability | + | ! Might Value |
| + | ! Adventurers with Co-Ability<!-- Hiding these as there currently aren't any Wyrmprints or Dragons with co-abilities, but there is the possibility of them being added in the future | ||
! Wyrmprints with Co-Ability | ! Wyrmprints with Co-Ability | ||
| − | ! Dragons with Co-Ability | + | ! Dragons with Co-Ability--> |
| − | + | {{!}}- | |
{{#invoke:CargoQuery|main | {{#invoke:CargoQuery|main | ||
|q?tables=CoAbilities | |q?tables=CoAbilities | ||
| − | |q?fields=Id=Id,_pageName=Name | + | |q?fields=Id=Id,_pageName=Name,PartyPowerWeight |
| − | |q?where=GenericName ="{{PAGENAME}}" | + | |q?where=GenericName ="{{#titleparts: {{PAGENAME}} }}" |
|q?groupBy=_pageName | |q?groupBy=_pageName | ||
| + | |q?orderBy=PartyPowerWeight DESC, Id DESC | ||
|template=CoAbilitySimpleTableEntry | |template=CoAbilitySimpleTableEntry | ||
| − | |default={{Row|-|-|-|-}} | + | |default={{Row|-|-|-|-|-}} |
| + | }} | ||
| + | {{!}}} | ||
| + | }}<!-- end of co-abilities | ||
| + | -->{{#ifeq:{{#cargo_query:tables=ChainCoAbilities|where=GenericName="{{#titleparts: {{PAGENAME}} }}"|default=0}}|0||<nowiki></nowiki> | ||
| + | ==Chain Co-Abilities== | ||
| + | {{{!}} class="wikitable sortable" style="text-align:center;" | ||
| + | ! Name | ||
| + | ! Adventurers with Co-Ability | ||
| + | {{!}}- | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=ChainCoAbilities | ||
| + | |q?fields=Id=Id,_pageName=Name,PartyPowerWeight | ||
| + | |q?where=GenericName ="{{#titleparts: {{PAGENAME}} }}" | ||
| + | |q?groupBy=_pageName | ||
| + | |q?orderBy=_pageName DESC, Id DESC | ||
| + | |template=ChainCoAbilitySimpleTableEntry | ||
| + | |default={{Row|-|-}} | ||
}} | }} | ||
| − | |} | + | {{!}}} |
| − | + | }}<!-- end of chain co-abilities | |
| + | -->{{#ifeq:{{#cargo_query:tables=Materials|where=Name LIKE "{{#titleparts: {{PAGENAME}} }}" OR Name LIKE "{{#sub:{{#titleparts: {{PAGENAME}} }}|0|-1}}"|default=0}}|0||<nowiki></nowiki> | ||
==Materials== | ==Materials== | ||
| − | {{#cargo_query:tables=Materials|where=Name LIKE " | + | {{#cargo_query:tables=Materials|where=Name LIKE "{{#titleparts: {{PAGENAME}} }}" OR Name LIKE "{{#sub:{{#titleparts: {{PAGENAME}} }}|0|-1}}"|format=ul|order by=Id|default=None.}} |
| + | }}<!-- | ||
| + | -- Skills -- | ||
| + | -->{{#ifeq:{{#cargo_query:tables=Skills|where=Name LIKE "{{#titleparts: {{PAGENAME}} }}" OR Name LIKE "{{#sub:{{#titleparts: {{PAGENAME}} }}|0|-1}}"|default=0}}|0||<nowiki></nowiki> | ||
| + | ==Skills== | ||
| + | {{#cargo_query:tables=Skills|where=Name LIKE "{{#titleparts: {{PAGENAME}} }}" OR Name LIKE "{{#sub:{{#titleparts: {{PAGENAME}} }}|0|-1}}"|format=ul|order by=SkillId|default=None.}} | ||
| + | }}</includeonly> | ||