FANDOM


Forums: Index Requested Templates Help with Basic Navbox using Parser Functions

Hello,

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

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

The basic concept is to add a chunk of css to a navbox row according to the value of a parameter.

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

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

I'd appreciate some help with this, thanks!

SerRydian (talk)

Community content is available under CC-BY-SA unless otherwise noted.