Mediawiki: passing advanced values to a #invoke?

40 Views Asked by At

The #invoke takes single values or key value pairs. Is there any way to get something like a key value pair to pass anything more than a single value?

For example, I would like a nested table to be passed, or just a pointer to a table defined in the same page?

{{#invoke:scriptPath|myfunc|<some table?>|tableArg1=???|tableArg2=???}}

I can't seem to figure out how this might be possible.

Perhaps I this might be possible with #vardefine? However I don't think these take anything more than a key value pair.

Perhaps my only option is to put jsonified data and have the func parse the json?

Any pointers would be appreciated.

The #invoke is calling a Lua module

0

There are 0 best solutions below