Forum:How to do arrays in a template?

Please examing the template. I would like to simplify calling it. As is, I have to pass a lot of parameters each time. (Please see c:christianmusic:Andrew Peterson/Carried Along/Nothing To Say's source for an example. It is at the end of the page.)

It is a real pain to call and takes too long to write the call. I was thinking of having an intermediate template that would be only passed the equivilent of the existing CurrentTrack parameter. It would then pass elements of an array into the actual Song Indexer template.

Furthermore, I would like to build the links up rather than having the entire link passed in. Each link is in the form Artist/Album/SongName. Rather than pass the entire string for each link, why not build the link up from elements. Will that work? Suppose the array mentioned above contained only song names (no pipes). I could pass the album and artist names seperately. Will 06:52, 1 September 2006 (UTC)