I'm trying to make a page template with an infobox for some video game recipes. Each recipe can be any combination of the flavors spicy, chilly, salty, sweet, bitter, sour, or umami and these are the only flavors in the game. I would like one infobox row that lists the flavors this dish has, but I cannot seem to get an infobox data source field to take multiple parameters. What's the correct way to handle this?
Here's the template I'm trying to build: Template:Recipe | Cuisineer Wiki | Fandom
And here's an example page using this template: Baked Mushroom | Cuisineer Wiki | Fandom
<templatedata>
{
"params": {
"title": {
"suggested": true,
"type": "wiki-page-name"
},
"spicy": {
"suggested": true,
"type": "string",
"default": "No",
"suggestedvalues": ["No", "Yes"]
},
"salty": {
"suggested": true,
"type": "string",
"default": "No",
"suggestedvalues": ["No", "Yes"]
},
"sweet": {
"suggested": true,
"type": "string",
"default": "No",
"suggestedvalues": ["No", "Yes"]
},
"bitter": {
"suggested": true,
"type": "string",
"default": "No",
"suggestedvalues": ["No", "Yes"]
},
"sour": {
"suggested": true,
"type": "string",
"default": "No",
"suggestedvalues": ["No", "Yes"]
}
}
</templatedata>
</noinclude>
<!-- Build infobox-->
<infobox>
<title source="title" />
<data source="spicy,salty,sweet,bitter,sour">
<label>Flavors</label>
<format>{{#ifeq: {{{spicy}}} | "Yes"
| Spicy
|
}}
{{#ifeq: {{{salty}}} | Yes
| Salty
|
}}
{{#ifeq: {{{sweet}}} | Yes
| Sweet
|
}}
{{#ifeq: {{{bitter}}} | Yes
| Bitter
|
}}
{{#ifeq: {{{sour}}} | Yes
| Sour
|
}}
</data>
</infobox>