Difference between revisions of "TalentsList"
From Titan's Teeth
Dicemonger (talk | contribs) |
Dicemonger (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#vardefine:header|{{#sub:{{PAGENAME}}|0|-7}} Talents ({{#if:{{{Header|}}}|{{{Header}}}|{{{Category}}}}})}}<!-- |
+ | |||
+ | -->{{HeaderOfSize|{{{HeaderSize|2}}}|{{#var:header}}}} | ||
{{#if:{{{Text|}}}|{{{Text}}} | {{#if:{{{Text|}}}|{{{Text}}} | ||
<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=_pageName = "{{PAGENAME}}/Data" AND {{#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= | + | |template=TalentsList_Item |
|named args=yes | |named args=yes | ||
}}</includeonly><!-- | }}</includeonly><!-- | ||
− | --><noinclude>Usage: <nowiki>{{TalentsList|Header=Header|Category=Alternative to Header, searches by single category|Where= | + | --><noinclude>Usage: <nowiki>{{</nowiki>TalentsList<br> |
+ | |Header=Header<br> | ||
+ | |HeaderSize=Optional, defaults to 2<br> | ||
+ | |Category=Alternative to Header, searches by single category. Does not require Header, but can use it for the header of the section<br> | ||
+ | |Where=Replaces Header Search. Still requires header for the header of the section<br> | ||
+ | |Advanced=Advanced(True/Optional)<br> | ||
+ | |Text=Description(Optional)}}</noinclude> |
Latest revision as of 08:37, 3 July 2021
Usage: {{TalentsList
|Header=Header
|HeaderSize=Optional, defaults to 2
|Category=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)}}