Topic on Extension talk:DataTable2

dt2-showtable using in template page

4
Sunwui (talkcontribs)

When use dt2-showtable tag in template page, the variables in template could not convert to value.

In the old discussion, I found out that datatable2 tag cannot be used to store data in template. I think it's right.However, it may be work for dt2-showtable tag use in template. Such as add:

$args['where']=$parser->replaceVariables($args['where'], $frame, true )

in '''renderShowTable''' to convert '''where''', '''order-by'''. Is this suitable?

RV1971 (talkcontribs)
Sunwui (talkcontribs)

Thanks! I try to use #tag magic word for dt2-showtable in template, it work!

I try to use for datatable2 also, even if not set variable, such as: {{#tag:datatable2|{{FULLPAGENAME}};interesting page;extension description|table=demo1|class=wikitable|columns=page{{!}}rating{{!}}type|fs=;}}, it can show but no data store to data table, so it only work for show table?

RV1971 (talkcontribs)

Yes, by the way MW works, data can be stored with the tag itself only.

Reply to "dt2-showtable using in template page"