Template:Food that grants: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><ul><li>{{#invoke:CargoQuery|main |q?tables=Food, GeneralData |q?join=Food._pageName=GeneralData._pageName |q?fields=PlainName=Page |q?where=CookEffect LIKE '%{{{...")
 
(fix query)
Line 3: Line 3:
|q?join=Food._pageName=GeneralData._pageName
|q?join=Food._pageName=GeneralData._pageName
|q?fields=PlainName=Page
|q?fields=PlainName=Page
|q?where=CookEffect LIKE '%{{{1|}}}%' AND Food._pageNamespace = '0'
|q?where=CookEffect HOLDS LIKE '%{{{1|}}}%' AND Food._pageNamespace = '0'
|template=favilink
|template=favilink
|delimiter=<li>
|delimiter=<li>

Revision as of 01:36, 4 April 2020

Template that returns a bulleted list of all food items that grant the specified cooking effect provided in the first argument. This uses LIKE, so as long as the first argument contains the word, it will return.

Example:

{{Food that grants|Heat}}

Output: