Board Thread:Support Requests - Getting Technical/@comment-27075564-20190606183739

So what I'm trying to do is probably complicated but wanted to check if it has a far easier approach and I'm just overthinking it or something. Essentially this is what I'm aiming for:


 * I want to have a page like a "shopping list" to list the total amount a player needs of a certain ingredient (there's about 300 total ingredients in the game). Ideally I'm aiming for something like "Item name that needs the ingredient - amount needed" and then at the top or bottom a sum of all the amounts needed of that particular ingredient.


 * If it makes it easier, I'd like it to call a template I made that's separate from the infobox that lists out the ingredient and the needed amount (with 6 available slots as 6 is the max amount of ingredients for any crafted item in the game). However a particular ingredient doesn't always show up in the same slot depending on the item, so it can show up as ingredient 3 on one, but ingredient 6 on another, so no way to just call a particular row for the ingredient with DPL.


 * If it makes it easier, would there be a way for a player to simply use a search function instead and for the page to populate with the first bullet point info? (if not don't worry about this then)

I was working on some basic template coding but then I realized halfway through that while it could work to list individual pages and the amount needed of each, it'd unfortunately require me to edit it each time for a selected variable and I don't know how to set it to even call the Craft Dismantle template (nor check that Craft Dismantle's header variable isn't set to "dismantle" which is something different from the crafting option I want to output). This is what I'd written so far for the switch (there's no lowercase set as the names are case sensitive):

Thanks! I know that was pretty wordy and probably can't be done but just want to check to make sure. 