Actions

Template

Difference between revisions of "FeatsTable SubCategory"

From P6 Spheres

(Created page with "<noinclude> === Parameters === '''1(required):''' The category to filter for. Also show up as a heading name. (''Combat'') '''2(optional):''' Description to place under the h...")
 
 
(17 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
'''2(optional):''' Description to place under the heading. (''These are combat feats'')
 
'''2(optional):''' Description to place under the heading. (''These are combat feats'')
  
'''3(optional):''' Heading-level of the tables Heading (''3'')
+
'''3(optional):''' Heading to use instead of the filter category name (''Combat Feats'')
 +
 
 +
'''4(optional):''' Heading-level of the tables Heading (''3'')
  
 
-----
 
-----
  
'''Template:''' <nowiki>{{FeatsTable_Category|||}}</nowiki>
+
'''Template:''' <nowiki>{{FeatsTable_SubCategory|}}</nowiki>
</noinclude><includeonly>{{EditHeading|{{{3|3}}}|{{{1}}}}}
+
</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=Categories LIKE "%{{{1}}}%"
+
|join on=Feats._ID=Feats__SubCategories._rowID
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,Categories,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|}}