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)
 * Also is a little more robust than  -- 05:07, July 23, 2010 (UTC)


 * BulldozerD11, the problem with your recent change to w:c:syrnia:Template:Infobox_location is that is adds an unnecessary vertical spacing...
 * Current


 * The 3rd line is not conditional. I'll make a change to, so the difference can be seen. --  Fandyllic  (talk &middot; contr) 9:50 AM PST 23 Jul 2010
 * Your Route 4 code has one problem, if it exists it will be on the same row as route 5 -- 16:56, July 23, 2010 (UTC)
 * I added to w:c:syrnia:Template:Infobox_location an example of route 9, that both take care of the new row as well as if some types | route 9= or | route9= -- 17:02, July 23, 2010 (UTC)
 * Oh yeah, I forgot about that part. -- Fandyllic  (talk &middot; contr) 10:11 AM PST 23 Jul 2010

I`ve tryed your codes, but the issue is that when i try make a new article using Location template, which automatly imports the location infobox template in it, those rows with if function aren`t displayed.

Any hint about modifing this page: http://syrnia.wikia.com/index.php?title=MediaWiki:Createplate-Location&action=edit ?