Forum:Infobox rows invisible if there is no content

How can you make a row of an infobox disappear if the row has no content? For example, (see this page) Somebody entered a bunch of info into the infobox, but left the "Opened" row empty. How can you make that row disappear (other than just deleting the row, of course)? Here is the infobox template page

Dolphanatic  talk   contributions  04:08, March 25, 2011 (UTC)

Use ifs. See here for an example.--


 * The basic syntax for an if is . Note that it's "if string is present", not "if this is true". It won't evaluate a mathematical or boolean expression, eg.   and   will both yield true because both of them are strings. You have to use   to evaluate math or booleans.

Hi! I'm also working on this problem on the same wiki. I'm still having trouble getting the extra rows to disappear. Could anyone actually edit the page for themselves? The page is here. If you can help that would be great! MontagnaMagica|Talk 23:42, March 28, 2011 (UTC)


 * Looks fine to me.

Well yes, it works, but if you take a look at this page, for example, you'll see that the empty rows are still appearing. Do you know how to fix that? MontagnaMagica|Talk 00:42, March 29, 2011 (UTC)


 * The rows aren't actually empty because you filled the all the "Row XX title" parameters, which makes the template display whole rows. You also filled the some "Row XX info" parameters with empty strings which will display a.. empty string instead of the default "No information". I suggest rewriting the template, because not only will it have problems with proper displaying unfilled entries, it will also hide all later parameters if former ones aren't filled i.e if you don't fill out "Row 2 title" then none of the "Row 3-15 title/info" parameters will show. I also suggest not using the default Wikia infobox templates in the future ;)


 * I could rewrite the template for you if you tell me what exactly you want it to do: hide a row if "title" AND "info" are missing, hide a row if just of them is missing, if so - which one? something else? Sovq 07:07, March 29, 2011 (UTC)


 * If you define the row header, it exists and therefore isn't blank. You have to test the value of the row's content as well as the header (since you're defining the header). Something like  Rappy 07:12, March 29, 2011 (UTC)

Sovq, if you could re-write the template, that would be fantastic! It should be able to hide a row if "title", "row", or both are missing. Let me know if you need me to be more specific. Thanks MontagnaMagica|Talk 22:36, March 29, 2011 (UTC)