Forum:How do i make an infobox with not all the atributes?

Is there any possibility to create an infobox template which doesn't introduce all the atributes on my article's infobox?

I've tried on this article, using this template.

If i`ve removed routes 2, 3, 4, 5, 6 from the article infobox code, it imported automatly from template the default values, instead of not displaying them.

Could anyone give me a hint, or an advice?


 * That infobox is not coded to hide unassigned values. you might want to examine w:c:templates:Template:Infobox -- 22:41, July 22, 2010 (UTC)


 * Here is an example from the template and the change that would be needed to have the route only appear when it is used:
 * Original


 * Route 2
 * Route 2
 * Only appears when  is given a value
 * In this new wikicode, the  tests to see if a value is in   before displaying anything.


 * Does this make sense? -- Fandyllic  (talk &middot; contr) 3:50 PM PST 22 Jul 2010


 * (edit conflict)
 * i've added to the second route heading line of your infobox so if no data the heading disappears. And updated the data items to  so if they are null they dont show either in the article pages (were x = the item number in the list). If that gives the result you are looking for just repeat in the other rows. (Note  template infobox that Roguefl has linked to has a similar but slightly different method of construction for all the infobox from how your is built) - BulldozerD11 23:03, July 22, 2010 (UTC)