Forum:Infobox question

I have a question about Infoboxes.

I'm editing one of my templates. I feed it several parameters, one of which is called "award". I would like my template to display a Header and some data if "award" is not blank. If "award" is blank, then I would like both the header and the data section after it to not be displayed at all.

Example:

Is this something that is even possible? I've been wracking my brain with conditional statements, and I can't seem to make any sense of it.

DocTrain (talk) 16:25, July 19, 2012 (UTC)


 * Kinda depends on your base Infobox template (or the template itself if it's not based on another infobx). You'll need to use an  somewhere. It needs to be wrapped around everything you need to hide. You'll likely need to escape the pipes (the | character) with template ! to avoid conflicts with the #if. If you give a link, I'm sure someone will help making the changes. - Tjcool007 (Talk) 17:46, July 19, 2012 (UTC)


 * Any help would be massively appreciated. I'm getting less-incompetent with templates, but this is a little bit beyond me. The template in question is http://trainstation.wikia.com/wiki/Template:Infobox_wagon and the reward section is at the very bottom. DocTrain (talk) 20:59, July 19, 2012 (UTC)


 * I made an edit there to show you how it's done. You might need to modify it, because I'm not sure what you want the template to display there. Your description is a bit vague. -- 21:23, July 19, 2012 (UTC)