Difference between revisions of "Template:FeatsTable Keyword"

From Epic Paths
Jump to navigation Jump to search
 
Line 18: Line 18:
{{#if:{{{2|}}}|{{{2}}}
{{#if:{{{2|}}}|{{{2}}}


<wbr>|}}{{#cargo_query:tables=Feats, Feats__SubCategories
<wbr>|}}{{#cargo_query:tables=Feats
|join on=Feats._ID=Feats__SubCategories._rowID
|group by=Feats._pageName
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|where=Keywords HOLDS "{{{1}}}" AND Advanced = 0 AND Feats__SubCategories._value != 'Drawback'
|where=Keywords HOLDS "{{{1}}}" AND Advanced = 0 AND Drawback = 0
|format=table
|format=table
}}
}}
{{#cargo_query:tables=Feats, Feats__SubCategories
{{#cargo_query:tables=Feats
|join on=Feats._ID=Feats__SubCategories._rowID
|group by=Feats._pageName
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|where=Keywords HOLDS "{{{1}}}" AND Advanced = 1 AND Feats__SubCategories._value != 'Drawback'
|where=Keywords HOLDS "{{{1}}}" AND Advanced = 1 AND Drawback = 0
|intro='''Advanced {{{3|{{{1}}}}}} Feats'''
|intro='''Advanced {{{3|{{{1}}}}}} Feats'''
|default=
|default=
|format=table
|format=table
}}
}}
{{#cargo_query:tables=Feats, Feats__SubCategories
{{#cargo_query:tables=Feats
|join on=Feats._ID=Feats__SubCategories._rowID
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
|group by=Feats._pageName
|where=Keywords HOLDS "{{{1}}}" AND Drawback = 1
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,CONCAT(Feats.SubCategories__full)=Categories,Prereq=Prerequisites,Short=Benefit
|where=Keywords HOLDS "{{{1}}}" AND Feats__SubCategories._value = 'Drawback'
|intro='''{{{3|{{{1}}}}}} Drawback Feats'''
|intro='''{{{3|{{{1}}}}}} Drawback Feats'''
|default=
|default=
|format=table
|format=table
}}</includeonly>
}}</includeonly>

Latest revision as of 15:04, 4 September 2021

Parameters

1(required): The keyword to filter for. Also show up as a heading name. (Shout)

2(optional): Description to place under the heading. (These are feats which alter shouts)

3(optional): Heading to use instead of the filter category name (Shout Feats)

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

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


Template: {{FeatsTable_SubCategory|}}