Actions

Template

Difference between revisions of "FeatsTable SubCategory"

From P6 Spheres

 
(9 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
-----
 
-----
  
'''Template:''' <nowiki>{{FeatsTable_SubCategory|||}}</nowiki>
+
'''Template:''' <nowiki>{{FeatsTable_SubCategory|}}</nowiki>
 
</noinclude><includeonly>{{EditHeading|{{{3|{{{1}}}}}}|{{{4|3}}}}}
 
</noinclude><includeonly>{{EditHeading|{{{3|{{{1}}}}}}|{{{4|3}}}}}
  
 
{{#if:{{{2|}}}|{{{2}}}
 
{{#if:{{{2|}}}|{{{2}}}
  
<wbr>|}}{{#cargo_query:tables=Feats
+
<wbr>|}}{{#cargo_query:tables=Feats, Feats__SubCategories
|where=SubCategories HOLDS LIKE "%{{{1}}}%"
+
|join on=Feats._ID=Feats__SubCategories._rowID
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,SubCategories=Categories,Prereq=Prerequisites,Short=Benefit
+
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,CONCAT(Feats.SubCategories__full)=Categories,Prereq=Prerequisites,Short=Benefit
 +
|where=Feats__SubCategories._value = "{{{1}}}"
 
|format=table
 
|format=table
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 14:19, 8 May 2021

Parameters

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

2(optional): Description to place under the heading. (These are combat feats)

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

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


Template: {{FeatsTable_SubCategory|}}