Board Thread:Support Requests - Getting Technical/@comment-5111452-20200912152937

Hi, I'm currently trying to make an infobox on my wiki where a title/header section will appear only if something is written for its parameter.

The intended goal is for it to look like this when the parameter is not filled out: https://imgur.com/a/vuv9Sl3

And like this when it is filled out ("test" being the fill-in text"):

https://imgur.com/a/kJX5HBu

However, I am having an issue right now where despite having the paramter filled in, the blue bar is not showing up whatsoever. I think it may be an error with my if statement but idk how html/whatever code system this works.

This is the code for the if statement/blue box thing I am attempting:

{{{#if:{{{a|}}}| ! colspan="2" style="font-size:100%; padding-top:2px; padding-left:5px; padding-right:5px; background-color:#0000CD; color:white; width:300px;" | Part of the {{{a|}}} This is also my test page for the box. As you can see, the parameter
 * colspan="2" style="padding:2px;" |
 * colspan="2" style="padding:2px;" |
 * }}

|a = test is filled out but the blue box does not show up.

I would appreciate any help, thanks.  