Forum:Problem with an AI template

Hi, I'm currently working on an special template on an wiki that will work like an sort of database. One place where all content will be added. This data will be used to auto fill-in the infoboxes. If the data doesn't exist yet in the database than it will still use the data set-in the page. But now comes the problem. I can set-in already outputted data into the parameters what can an real problem. Here's what I currently got:
 * N/AI | N/AI/Dragons | AI | /Dragons (/add) | /stats
 * I | /Dragons

I'm currently on the fase to let the i template work automaticly with the AI. So when I for example put: It will display the two element it exist out: Earth and Fire in picture formate. You currently already can have this result by adding: Someone ideas how to let this work without having to add all previous codes to it?--Jens Ingels (talk) 13:04, September 22, 2012 (UTC)