|
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 6: | Line 6: | ||
|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 LIKE "%{{{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 LIKE "%{{{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= | |format=template | ||
|template=SOSPioneersRecipeQueryRow | |||
|named args=yes | |||
}} | }} | ||
|} | |} | ||
</includeonly> | </includeonly> | ||
Revision as of 13:37, 30 March 2021
This is a test of a query.