Hi,
I am in the process of creating an extension tag to suit my project requirements. Actually, we have an xml structure which should be processed using Templates inside this extension implementation. Briefly, I woud like to create pieces of a table using different templates.
Example :
If I need a HTML Table with header "Agents" as follows : Agents Agent1 Agent2 Agent3 . . AgentN
For the above table with 1 column and N rows, the wiki text would look something like :
{| border="1" cellpadding="2" ! Agents |- | Agent1 |- | Agent2 |- | Agent3 |- . . | AgentN |- |}
In my case, I dont know the value of "N". This depends on the values from XML. So, I would like to create a template to process each row based on the input from XML iteratively for N rows..
Wikitext for this template would look something like :
| {{{parameterName}}} |-
where parameterName's value could be : Agent1, Agent2, ....AgentN.
But the current mediawiki parser wont parse the above template properly because it expects complete table syntax not pieces of it. I am wondering if there is any workaround or way out to achieve this ?
Please let me know if this is not the right place to post questions about mediawiki.
Suresh