Board Thread:Support Requests - Getting Technical/@comment-34687880-20180416001141

Hello! I'm trying to design a table template for my wiki, which is for a specific rhythm game series. The table will be used on each page thtat details a song in the game and will provide a number of statistics about it. Below is an example mockup:

Song Table Mockup (MXM)

When a contributor creates a new page for a song, they will need to populate this kind of table with the appropriate information using the template I'm considering. However, the fourth column won't always look like that because certain songs feature a different difficulty name/color, as in the example below:

Song Table Mockup (HVN)

In addition, many songs won't even have a fourth difficulty:

Song Table Mockup (No 4th)

Basically, there will end up being five different versions of this table: one for each possible difficulty in that fourth column, plus one with no fourth difficulty. It's possible to make a template for each version of course, but I wouldn't consider it a very elegant solution...

Which brings me to my main question: is it possible to make a single template for this table that will change how the fourth column looks based on what the contributor enters? For example, if I create a parameter called "difficulty4", they would enter "difficulty4=maximum" to make the fourth column appear like the first mockup, "difficulty4=heavenly" to make it appear like the second mockup, or leave it blank to make it appear like the third mockup. Is such a thing reasonably possible? If so, how would it be done? Any advice you could provide would be greatly appreciated. 