Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators
3,322
edits
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
// Start printing of each query item | // Start printing of each query item | ||
-->{{#arrayprint:$queryitems||@queryitem@|<!-- | -->{{#arrayprint:$queryitems||@queryitem@|<!-- | ||
// Define a variable with all the global ingredients in | |||
-->{{#vardefine:$globalingr|{{#ask:[[@queryitem@]]|?GlobalIngredient=|format=array|pagetitle=hide}}}}<!-- | |||
// Define the array of ingredients to search for based on the items GlobalIngredient properties and its name | // Define the array of ingredients to search for based on the items GlobalIngredient properties and its name | ||
-->{{#arraydefine:$searchingr|{{# | -->{{#arraydefine:$searchingr|{{#if:{{#var:$globalingr}}|{{#var:$globalingr}}<MANY>}}@queryitem@|<MANY>}}<!-- | ||
// Start printing of each ingredient to search for | // Start printing of each ingredient to search for | ||
-->{{#arrayprint:$searchingr||@searchingr@|<!-- | -->{{#arrayprint:$searchingr||@searchingr@|<!-- |