Last modified: 2009-03-17 04:29:18 UTC
I would like to produce templates with lists. E.g. I want to create a page that lists the courses that professors teach. Professor A might have 3 courses, professor B might have 5. It would be easy to have a template that accepts a random number of variables instead of a set number. For example, the template could look like the following: processall x*: '''x*''' a template call such as {{name|x1=IT101|x2=IT114|x3=SLA442|...|xn=??????}} should print out all the variables in bold.
You might be interested in [[m:Template:Foreach]].
*** Bug 6794 has been marked as a duplicate of this bug. ***
A few such extensions exist now: http://www.mediawiki.org/wiki/Extension:ForeachFunction http://www.mediawiki.org/wiki/Extension:LoopFunctions http://www.mediawiki.org/wiki/Extension:Loops