To be clear, I’m talking about the attribute itself, not the value being assigned to it.
I’m working inside <$parameters>
with the $params
attribute (which is a huge leap forward in terms of wikitext production). Having used jsonget
to get the params, is it possible to marshal them into attributes to be passed on to a subsequent outgoing call using $transclude
?
<$transclude $variable=[derived from param[0]] [derived from param[1]]="value1" param[2]= ... />
For a fleeting moment I considered $wikify
… but look…
<$transclude $variable=[derived from param[0]] <<attr1>>="value1" <<attr2>>=... />
non-starter.
So, yes, essentially – and taking this to its logical conclusion – I’m asking for an $eval(...)
widget
Or, failing that, a getsignature[]
operator…
<$let my-proc-signature={{{ [[my-proc]getsignature[]] }}}>` --> "arg1 arg2 ... argN"
and “teach” $transclude
to understand them.
For those born without the JavaScript gene, window.eval(<string> script)
is a way to (re)start a JavaScript engine just to execute a string you built and passed into it for evaluation/execution. If you search for “eval is evil”, you’ll see why I was screaming back there.