Difference between revisions of "Template:FeatsTable Category"

From Epic Paths
Jump to navigation Jump to search
 
(24 intermediate revisions by the same user not shown)
Line 8: Line 8:


'''4(optional):''' Heading-level of the tables Heading. Default: 2 (''3'')
'''4(optional):''' Heading-level of the tables Heading. Default: 2 (''3'')
'''5(optional):''' Should advanced feats be shown. Default: no
'''filtersubcategories(optional)''' Do not show feats that has these subcategories (comma-separated)


-----
-----


'''Template:''' <nowiki>{{FeatsTable_Category|}}</nowiki>
'''Template:''' <nowiki>{{FeatsTable_Category|}}</nowiki>
</noinclude><includeonly>{{Heading|{{{3|{{{1}}}}}}|{{{4|3}}}}}
 
'''Example:''' <nowiki>{{FeatsTable_Category|Destruction School|filtersubcategories=Blast Shape, Blast Type}}</nowiki>
 
{{FeatsTable_Category|Destruction School|filtersubcategories=Blast Shape, Blast Type}}
</noinclude><includeonly>{{Heading|{{{3|{{{1}}}}}} Feats|{{{4|3}}}}}


{{#if:{{{2|}}}|{{{2}}}
{{#if:{{{2|}}}|{{{2}}}


<wbr>|}}{{#cargo_query:tables=Feats
<wbr>|}}{{#cargo_query:tables=Feats
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Feat Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|where=MainCategory = "{{{1}}}"
|where=MainCategory = "{{{1}}}" AND Advanced = 0 AND Drawback = 0 {{#if:{{{filtersubcategories|}}}|AND NOT (SubCategories HOLDS '{{#arraymap:{{{filtersubcategories}}}|,|x|x|' OR SubCategories HOLDS '}}')}}
|order by=Name
|format=table
}}
 
{{#cargo_query:tables=Feats
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Feat Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|where=MainCategory = "{{{1}}}" AND Advanced = 1 AND Drawback = 0
|order by=Name
|intro='''Advanced {{{3|{{{1}}}}}} Feats'''
|default=
|format=table
}}
 
{{#cargo_query:tables=Feats
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Feat Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|where=MainCategory = "{{{1}}}" AND Drawback = 1
|order by=Name
|intro='''{{{3|{{{1}}}}}} Drawback Feats'''
|default=
|format=table
|format=table
}}</includeonly>
}}</includeonly>

Latest revision as of 16:09, 17 May 2022

Parameters

1(required): The MainCategory to filter for. (Guardian)

2(optional): Description to place under the heading. Default: none. (These are feats from the Guardian Sphere)

3(optional): Heading to use instead of the filter category name. Default: MainCategory name (Guardian Feats)

4(optional): Heading-level of the tables Heading. Default: 2 (3)

5(optional): Should advanced feats be shown. Default: no

filtersubcategories(optional) Do not show feats that has these subcategories (comma-separated)


Template: {{FeatsTable_Category|}}

Example: {{FeatsTable_Category|Destruction School|filtersubcategories=Blast Shape, Blast Type}}

Destruction School Feats

Feat Name Categories Prerequisites Benefit
Battle Mage Arcane Destruction School Gain the ability to create destructive blasts.