|
Thanks for using our site! |
Template:SOSPioneersRecipeQuery: Difference between revisions
From ranchstory
Jump to navigationJump to search
imported>Kiwibasket No edit summary |
imported>Kiwibasket No edit summary |
||
| Line 5: | Line 5: | ||
{{#cargo_query:table=SOSPioneersRecipes | {{#cargo_query:table=SOSPioneersRecipes | ||
|fields=Name=Image,Name,Category,Level,Flavor,Temperature,Color,Ingredient1,Ingredient2,Ingredient3,Ingredient4,Topping | |fields=Name=Image,Name,Category,Level,Flavor,Temperature,Color,Ingredient1,Ingredient2,Ingredient3,Ingredient4,Topping | ||
|where=Name="%{{{NAME|}}}%" {{#if:{{{CAT|}}}|AND Category="{{{CAT|}}}"}} {{#if:{{{LVL|}}}|AND Level={{{LVL}}} }} {{#if:{{{FLAVOR|}}}|AND Flavor HOLDS {{#arraymap:{{{FLAVOR}}}|, |x|"x"| AND Flavor HOLDS}} }} {{#if:{{{TEMP|}}}|AND Temperature HOLDS {{#arraymap:{{{TEMP}}}|, |x|"x"| AND Temperature HOLDS}} }} {{#if:{{{COLOR|}}}|AND Color HOLDS {{#arraymap:{{{COLOR}}}|, |x|"x"| AND Color HOLDS }} }} {{#if:{{{INGREDIENTS|}}}|AND AllIngredients HOLDS LIKE {{#arraymap:{{{INGREDIENTS}}}|, |x|"%x%"| AND AllIngredients HOLDS LIKE}} }} {{#if:{{{TOP|}}}|AND Topping LIKE "%{{{TOP}}}%"}} | |where=Name="%{{ucfirst:{{{NAME|}}} }}%" {{#if:{{{CAT|}}}|AND Category="{{{CAT|}}}"}} {{#if:{{{LVL|}}}|AND Level={{{LVL}}} }} {{#if:{{{FLAVOR|}}}|AND Flavor HOLDS {{#arraymap:{{{FLAVOR}}}|, |x|"x"| AND Flavor HOLDS}} }} {{#if:{{{TEMP|}}}|AND Temperature HOLDS {{#arraymap:{{{TEMP}}}|, |x|"x"| AND Temperature HOLDS}} }} {{#if:{{{COLOR|}}}|AND Color HOLDS {{#arraymap:{{{COLOR}}}|, |x|"x"| AND Color HOLDS }} }} {{#if:{{{INGREDIENTS|}}}|AND AllIngredients HOLDS LIKE {{#arraymap:{{{INGREDIENTS}}}|, |x|"%x%"| AND AllIngredients HOLDS LIKE}} }} {{#if:{{{TOP|}}}|AND Topping LIKE "%{{{TOP}}}%"}} | ||
|format=template | |format=template | ||
|template=SOSPioneersRecipeQueryRow | |template=SOSPioneersRecipeQueryRow | ||
Revision as of 16:48, 4 April 2021
This is a test of a query.