Actions

Template

Difference between revisions of "TalentsList"

From Titan's Teeth

Line 5: Line 5:
  
 
<wbr>|}}{{#cargo_query:tables=Talents
 
<wbr>|}}{{#cargo_query:tables=Talents
|where={{#if:{{{Category|}}}|Categories LIKE "%{{{Category}}}%"|{{#if:{{{Where|}}}|{{{Where}}}|Header = "{{{Header}}}"}}}} {{#if:{{{Advanced|}}}|AND Categories LIKE "%Advanced%"|AND (Categories NOT LIKE "%Advanced%" OR Categories = "" OR Categories is null)}}
+
|where=Page{{#if:{{{Category|}}}|Categories LIKE "%{{{Category}}}%"|{{#if:{{{Where|}}}|{{{Where}}}|Header = "{{{Header}}}"}}}} {{#if:{{{Advanced|}}}|AND Categories LIKE "%Advanced%"|AND (Categories NOT LIKE "%Advanced%" OR Categories = "" OR Categories is null)}}
 
|order by=Name
 
|order by=Name
 
|fields=Name,Categories=Cat,Prerequisites=Prereq,Body
 
|fields=Name,Categories=Cat,Prerequisites=Prereq,Body
 
|format=template
 
|format=template
|template=Talent
+
|template=TalentsList_Item
 
|named args=yes
 
|named args=yes
 
}}</includeonly><!--
 
}}</includeonly><!--

Revision as of 16:19, 23 November 2019

Usage: {TalentsList
|Header=Header
|HeaderSize=Optional, defaults to 2 |HeaderCategory=Alternative to Header, searches by single category. Does not require Header, but can use it for the header of the section
|Where=Replaces Header Search. Still requires header for the header of the section
|Advanced=Advanced(True/Optional)
|Text=Description(Optional)}}