Board Thread:Support Requests - Getting Technical/@comment-40131342-20190827183952

I'd like to create a bottom page navbox for the Doom & Destiny Wiki by using fairly simple parser functions (#if and possibly #switch).

The navbox itself is a collapsible table and I'm trying to have all rows collapsed except for one when the page loads. The basic concept is to add a chunk of css (a class and an id) to the CSS section of a navbox row according to the value of a parameter.

The logic I'm aiming for is: if the parameter exists (is not empty and is not white space) and has value "test", don't insert anything. If not (parameter IS empty or IS white space and doesn't equal value "test"), insert the following chunk of CSS (a class and an id).

I reviewed the help page on parser functions but the template doesn't work as intended.

The syntax example found on that page is:

Using this syntax, what I tried within one of the collapsible table rows was:

| style="(more CSS...)" | (cell content...)

I've tried different combinations and the #if function is simply unresponsive to any of the changes I've tried.

Here is the link to the template I'm working on.

I'd appreciate some help with this, thanks!

SerRydian (talk)  