Thread:Extension talk:DataTable2/Using DataTAble2 in Templates

Hello again RV1971,

I am continuing to enjoy your extension and finding it a very powerful tool.

I am now trying to use it to gather up citations used throughout my wiki. I have tried various combinations of the following code added to the template.

table for each call to the template, it only injects, etc. as text in the fields. This occurs when I save the actual template in the Template namespace, and nothing is generated by saving articles.

(As I could not get it to work, I do not know whether the table="cite news" parameter would simply overwrite the same row on each instance the template was called, sometimes multiple times in one article, and I would have to use one of the template parameters to create a unique logical table name.)

I realise that the DataTable2 extension uses the NewRevisionFromEditComplete hook to save data to the database, but with my low/fundamental knowledge was hoping that via substitution/transclusion this technique might be made to work when articles were saved with calls to the template.

Would you please provide me with guidance as to whether the proposed use of the DataTable2 extension might work with some further perserverence, or the concept is fundamentally flawed due to, for instance, the NewRevisionFromEditComplete hook. If the concept is flawed, I will drop my pursuit of this idea.

Thanks in advance.