|
Thanks for using our site! |
Template:SOSPioneersRecipeQuery: Difference between revisions
From ranchstory
Jump to navigationJump to search
imported>Kiwibasket mNo edit summary |
imported>Kiwibasket No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>This is a test of a query.</noinclude><includeonly> | <noinclude>This is a test of a query. | ||
{{#cargo_declare:_table=SOSPioneersRecipeColors | |||
|QueryColors=List (,) of String | |||
}} | |||
</noinclude><includeonly> | |||
{{#cargo_store:_table=SOSPioneersRecipeQuery | |||
|QueryColors={{{COLOR|}}} | |||
}} | |||
{{#cargo_query:table=SOSPioneersRecipes | {{#cargo_query:table=SOSPioneersRecipes | ||
|fields=Name,Category,Level,Flavor,Temperature,Color,Ingredients,Topping | |fields=Name,Category,Level,Flavor,Temperature,Color,Ingredients,Topping | ||
|where=Name LIKE "%{{{NAME|}}}%" {{#if:{{{CAT|}}}|AND Category="{{{CAT|}}}"}} {{#if:{{{LVL|}}}|AND Level={{{LVL}}} }} {{#if:{{{FLAVOR|}}}|AND Flavor HOLDS "{{{FLAVOR}}}" }} {{#if:{{{TEMP|}}}|AND Temperature HOLDS "{{{TEMP}}}" }} | |where=Name LIKE "%{{{NAME|}}}%" {{#if:{{{CAT|}}}|AND Category="{{{CAT|}}}"}} {{#if:{{{LVL|}}}|AND Level={{{LVL}}} }} {{#if:{{{FLAVOR|}}}|AND Flavor HOLDS "{{{FLAVOR}}}" }} {{#if:{{{TEMP|}}}|AND Temperature HOLDS "{{{TEMP}}}" }} {{#if:{{{COLOR|}}}|Color HOLDS LIKE {{#cargo_query:table=SOSPioneersRecipeColors}} }} | ||
|format=table | |format=table | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
Revision as of 19:14, 29 March 2021
This is a test of a query. {{#cargo_declare:_table=SOSPioneersRecipeColors |QueryColors=List (,) of String }}