Actions

Template

Difference between revisions of "TalentsList"

From Titan's Teeth

Line 1: Line 1:
<includeonly>== {{#sub:{{PAGENAME}}|0|-7}} Talents ({{{Cat}}}) ==
+
<includeonly>== {{#sub:{{PAGENAME}}|0|-7}} Talents ({{{Header}}}) ==
 
{{#if:{{{Text|}}}|{{{Text}}}
 
{{#if:{{{Text|}}}|{{{Text}}}
  
 
<wbr>|}}{{#cargo_query:tables=Talents
 
<wbr>|}}{{#cargo_query:tables=Talents
|where=Category ="{{{Cat}}}" AND Adv = "{{{Adv|False}}}"
+
|where=Header = "{{{Header}}}" {{#if:{{Adv|}}|AND Categories LIKE "%Advanced%"|}}
 
|order by=Name
 
|order by=Name
|fields=Name,Prereq,Body
+
|fields=Name,Categories=Cat,Prerequisites=Prereq,Body
 
|format=template
 
|format=template
 
|template=Talent
 
|template=Talent
Line 11: Line 11:
 
}}</includeonly><!--
 
}}</includeonly><!--
  
--><noinclude>Usage: <nowiki>{{TalentsList|Cat=Category|Adv=Advanced(True/Optional)|Text=Description(Optional)}}</nowiki></noinclude>
+
--><noinclude>Usage: <nowiki>{{TalentsList|Header=Header|Adv=Advanced(True/Optional)|Text=Description(Optional)}}</nowiki></noinclude>

Revision as of 17:03, 22 November 2019

Usage: {{TalentsList|Header=Header|Adv=Advanced(True/Optional)|Text=Description(Optional)}}